PhyStar  v0.0.0 thu24
dmdyn::init Namespace Reference

Classes

struct  ConstraintFunction
 
struct  CFunData
 
class  InitPartData
 

Typedefs

template<int N_dim>
using pCFun = bool(*)(blin::Vecr< N_dim > &, std::vector< Real > &, InsideOutside)
 

Enumerations

enum class  CFunTag { None , Box , Sphere }
 
enum  InsideOutside { In = 1 , Out = 0 }
 
enum class  OverlapTag { OverLap = 1 , NoOverLap = 0 }
 
enum class  InitTag {
  Random , Local , Value , FromFile ,
  FromFun , LocalFluidRotation , None = 999
}
 

Functions

static CFunTag vConfigCFunTag (std::string type)
 
static InsideOutside vConfigInsideOutside (std::string type)
 
template<int N_dim>
bool None (blin::Vecr< N_dim > &pos, std::vector< Real > &params, InsideOutside flag=InsideOutside::In)
 
template<int N_dim>
bool Box (blin::Vecr< N_dim > &pos, std::vector< Real > &params, InsideOutside flag=InsideOutside::In)
 Constraint function of box. More...
 
template<int N_dim>
bool Sphere (blin::Vecr< N_dim > &pos, std::vector< Real > &params, InsideOutside flag=InsideOutside::In)
 Constraint function of Sphere(3D) or Circ (2D) More...
 
static InitTag vConfigInitTag (std::string type)
 

Typedef Documentation

◆ pCFun

template<int N_dim>
using dmdyn::init::pCFun = typedef bool (*)(blin::Vecr<N_dim> &, std::vector<Real> &, InsideOutside)

Enumeration Type Documentation

◆ CFunTag

enum dmdyn::init::CFunTag
strong
Enumerator
None 
Box 
Sphere 

◆ InitTag

enum dmdyn::init::InitTag
strong
Enumerator
Random 
Local 
Value 
FromFile 
FromFun 
LocalFluidRotation 
None 

◆ InsideOutside

Enumerator
In 
Out 

◆ OverlapTag

Enumerator
OverLap 
NoOverLap 

Function Documentation

◆ Box()

template<int N_dim>
bool dmdyn::init::Box ( blin::Vecr< N_dim > &  pos,
std::vector< Real > &  params,
InsideOutside  flag = InsideOutside::In 
)
inline

Constraint function of box.

Template Parameters
N_dim
Parameters
pos
paramsfor 2D, [xc,yc,lx,ly]; for 3D, [xc,yc,zc,lx,ly,lz]
Returns
true inside
false outside

◆ None()

template<int N_dim>
bool dmdyn::init::None ( blin::Vecr< N_dim > &  pos,
std::vector< Real > &  params,
InsideOutside  flag = InsideOutside::In 
)
inline
Here is the caller graph for this function:

◆ Sphere()

template<int N_dim>
bool dmdyn::init::Sphere ( blin::Vecr< N_dim > &  pos,
std::vector< Real > &  params,
InsideOutside  flag = InsideOutside::In 
)
inline

Constraint function of Sphere(3D) or Circ (2D)

Template Parameters
N_dim
Parameters
pos
paramsfor 2D, [xc,yc,r]; for 3D, [xc,yc,zc,r]
Returns
true inside
false outside

◆ vConfigCFunTag()

static CFunTag dmdyn::init::vConfigCFunTag ( std::string  type)
inlinestatic

References Box, None, and Sphere.

Here is the caller graph for this function:

◆ vConfigInitTag()

static InitTag dmdyn::init::vConfigInitTag ( std::string  type)
inlinestatic

References FromFile, Local, LocalFluidRotation, None, Random, and Value.

Here is the caller graph for this function:

◆ vConfigInsideOutside()

static InsideOutside dmdyn::init::vConfigInsideOutside ( std::string  type)
inlinestatic

References In, and Out.

Here is the caller graph for this function: