File cyclic_laplace.hxx¶
-
class LaplaceCyclic : public Laplacian¶
- #include <cyclic_laplace.hxx>
Solves the 2D Laplacian equation using the CyclicReduce class.
Public Functions
-
LaplaceCyclic(Options *opt = nullptr, const CELL_LOC loc = CELL_CENTRE, Mesh *mesh_in = nullptr, Solver *solver = nullptr, Datafile *dump = nullptr)¶
-
~LaplaceCyclic()¶
-
inline virtual void setCoefA(const Field2D &val) override¶
Set coefficients for inversion. Re-builds matrices if necessary.
-
virtual Field3D solve(const Field3D &b, const Field3D &x0) override¶
Performs the laplacian inversion y-slice by y-slice
- Parameters
b – [in] All the y-slices of b_slice, which is the right hand side of the equation A*x_slice = b_slice
x0 – [in] All the y-slices of the variable eventually used to set BC
- Returns
x All the y-slices of x_slice in the equation A*x_slice = b_slice
-
LaplaceCyclic(Options *opt = nullptr, const CELL_LOC loc = CELL_CENTRE, Mesh *mesh_in = nullptr, Solver *solver = nullptr, Datafile *dump = nullptr)¶