PhyStar  v0.0.0 thu24
smart::FluidVelGradSensor Class Reference

#include <FluidVelGradSensor.hpp>

Inheritance diagram for smart::FluidVelGradSensor:
Collaboration diagram for smart::FluidVelGradSensor:

Public Member Functions

virtual int dim () const
 get the dimension of the state (the size of the pfield.state) More...
 
virtual void getState (dmdyn::ParticleField< 2 > &pfield, const dmdyn::ParticleModel *pmodel)
 calculate state More...
 
virtual void getState (dmdyn::ParticleField< 3 > &pfield, const dmdyn::ParticleModel *pmodel)
 
virtual void initialize (tml::table *config, tml::table *subconfig)
 initialize the sensor More...
 
 FluidVelGradSensor ()
 

Public Attributes

int N_dim
 

Constructor & Destructor Documentation

◆ FluidVelGradSensor()

smart::FluidVelGradSensor::FluidVelGradSensor ( )
inline

Member Function Documentation

◆ dim()

virtual int smart::FluidVelGradSensor::dim ( ) const
inlinevirtual

get the dimension of the state (the size of the pfield.state)

Returns
int dimension

Implements smart::Sensor.

References N_dim.

Here is the caller graph for this function:

◆ getState() [1/2]

virtual void smart::FluidVelGradSensor::getState ( dmdyn::ParticleField< 2 > &  pfield,
const dmdyn::ParticleModel pmodel 
)
inlinevirtual

calculate state

Parameters
pfieldparticle field
pmodelparticle model

Implements smart::Sensor.

References dim(), dmdyn::ParticleField< N_dim >::fdata, and dmdyn::SmartData< N_dim >::state.

Here is the call graph for this function:

◆ getState() [2/2]

virtual void smart::FluidVelGradSensor::getState ( dmdyn::ParticleField< 3 > &  pfield,
const dmdyn::ParticleModel pmodel 
)
inlinevirtual

Implements smart::Sensor.

References dim(), dmdyn::ParticleField< N_dim >::fdata, and dmdyn::SmartData< N_dim >::state.

Here is the call graph for this function:

◆ initialize()

virtual void smart::FluidVelGradSensor::initialize ( tml::table *  config,
tml::table *  subconfig 
)
inlinevirtual

initialize the sensor

Parameters
configtoml node

Implements smart::Sensor.

References N_dim.

Member Data Documentation

◆ N_dim

int smart::FluidVelGradSensor::N_dim

The documentation for this class was generated from the following file: