Chombo + EB + MF  3.2
Macros | Typedefs | Functions
AdvectionFunctions.H File Reference
#include "IntVect.H"
#include "RealVect.H"
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Include dependency graph for AdvectionFunctions.H:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ _ADVECTIONFUNCTIONS_H_

#define _ADVECTIONFUNCTIONS_H_

Typedef Documentation

◆ AdvectionVelocityFunction

typedef Real(* AdvectionVelocityFunction) (const RealVect &a_point, const int &a_velComp)

Velocity function interface.

Function Documentation

◆ constantAdvection()

Real constantAdvection ( const RealVect a_point,
const int &  a_velComp 
)

Constant flow example.

Return 1.

Parameters
a_pointlocation of the function evaluation
a_velCompvelocity component

◆ rotatingAdvection()

Real rotatingAdvection ( const RealVect a_point,
const int &  a_velComp 
)

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.

Parameters
a_pointlocation of the function evaluation
a_velCompvelocity component