File serial_tri.hxx¶
-
class
LaplaceSerialTri
: public Laplacian¶ Public Functions
-
LaplaceSerialTri
(Options *opt = nullptr, const CELL_LOC loc = CELL_CENTRE, Mesh *mesh_in = nullptr)¶
-
~LaplaceSerialTri
()¶
-
FieldPerp
solve
(const FieldPerp &b, const FieldPerp &x0)¶ Solve Ax=b for x given b
This function will
- Take the fourier transform of the y-slice given in the input
- For each fourier mode a) Set up the tridiagonal matrix b) Call the solver which inverts the matrix Ax_mode = b_mode
- Collect all the modes in a 2D array
- Back transform the y-slice
Input:
- Return
- The inverted variable.
- Parameters
b
: A 2D variable that will be fourier decomposed, each fourier mode of this variable is going to be the right hand side of the equation Ax = bx0
: Variable used to set BC (if the right flags are set, see the user manual)
-