abarret / multiphase-stokes

Solver a mixture of fluids based on IBAMR
1 stars 0 forks source link

3D implementation #39

Open abarret opened 1 year ago

abarret commented 1 year ago

At some point, we will need to implement a 3D solver for these equations. There are a few things that will need to be updated. The main issue is the preconditioner probably won't scale to 3D. We need to switch away from cell-wise Vanka smoothers to larger box Vanka smoothers.

abarret commented 1 year ago

@bindi-nagda it would be very helpful for this if you wrote down the details of the smoother discretization somewhere (maybe your dissertation?)

bindi-nagda commented 1 year ago

Yeah, I've included the details of the smoother discretization in my dissertation. I can send you a copy of it.

abarret commented 1 year ago

Following up on this, initial tests indicate that we spend almost 90% of our time solving the linear system in the smoother. This suggests that this preconditioner definitely won't scale to 3D, as it will only get more expensive (solving a 13 by 13 system on each grid cell as opposed to a 9 by 9).

abarret commented 1 year ago

Because we spend almost 90% of our time in the smoother, we may be able to significantly decrease run time by implementing our own LU or SVD solver in the smoother routine instead of using the lapack implementation. The compiler would then be free to optimize the matrix solve because the system size will be known at compile time.

bindi-nagda commented 1 year ago

Because we spend almost 90% of our time in the smoother, we may be able to significantly decrease run time by implementing our own LU or SVD solver in the smoother routine instead of using the lapack implementation. The compiler would then be free to optimize the matrix solve because the system size will be known at compile time.

Sound good. Can we talk about this on Friday at our meeting so I can try to implement it?

abarret commented 1 year ago

Sound good. Can we talk about this on Friday at our meeting so I can try to implement it?

Sure. We can discuss it on Friday. My suggestion is to finish up convergence testing so we can push out a paper before you try this.