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.

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 Documentation

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

Velocity function interface.


Function Documentation

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

Constant flow example.

Return 1.

Parameters:
a_point  location of the function evaluation
a_velComp  velocity component

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_point  location of the function evaluation
a_velComp  velocity component


Generated on Tue Mar 19 03:17:24 2019 for Chombo + EB + MF by  doxygen 1.5.5