Chombo + EB + MF
3.2
|
#include "IntVect.H"
#include "RealVect.H"
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Go to the source code of this file.
Macros | |
#define | _ADVECTIONFUNCTIONS_H_ |
Typedefs | |
typedef Real(* | AdvectionVelocityFunction) (const RealVect &a_point, const int &a_velComp) |
Velocity function interface. More... | |
Functions | |
Real | constantAdvection (const RealVect &a_point, const int &a_velComp) |
Constant flow example. More... | |
Real | rotatingAdvection (const RealVect &a_point, const int &a_velComp) |
Rotating flow example. More... | |
#define _ADVECTIONFUNCTIONS_H_ |
Velocity function interface.
Constant flow example.
Return 1.
a_point | location of the function evaluation |
a_velComp | velocity component |
Rotating flow example.
At point (x, y, z), set d = (x - 1/2)^2 + (y - 1/2)^2 + (z - 1/2)^2.
If d < 1/2, then return velocity ((y - 1/2)/d, -(x - 1/2)/d, 0).
Otherwise, return velocity zero.
a_point | location of the function evaluation |
a_velComp | velocity component |