#include "IntVect.H"
#include "RealVect.H"
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Go to the source code of this file.
Typedefs | |
typedef Real(* | AdvectionVelocityFunction )(const RealVect &a_point, const int &a_velComp) |
Velocity function interface. | |
Functions | |
Real | constantAdvection (const RealVect &a_point, const int &a_velComp) |
Constant flow example. | |
Real | rotatingAdvection (const RealVect &a_point, const int &a_velComp) |
Rotating flow example. |
typedef Real(* AdvectionVelocityFunction)(const RealVect &a_point,const int &a_velComp) |
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 |