BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef CONTINUUM_INTERFACE_H_
16 #define CONTINUUM_INTERFACE_H_
168 #endif // CONTINUUM_INTERFACE_H_
BDM_CLASS_DEF_OVERRIDE(VectorField, 1)
std::string continuum_name_
Name of the continuum.
VectorField(const TRootIOCtor *)
virtual void Step(real_t dt)=0
int continuum_id_
Id of the continuum.
ScalarField(const TRootIOCtor *)
BDM_CLASS_DEF(Continuum, 1)
real_t time_to_simulate_
Time that the continuum (still) has to integrate.
Continuum class to interface with BioDynaMo for hybrid simulations.
virtual ~Continuum()=default
const std::string & GetContinuumName() const
Returns the name of the continuum.
~VectorField() override=default
virtual Real3 GetGradient(const Real3 &position) const =0
Returns the gradient of the scalar field at the given position.
real_t simulated_time_
Passed simulation time for the continuum.
Interface for vector fields. See Continuum for more information.
void IntegrateTimeAsynchronously(real_t dt)
real_t GetTimeStep() const
Returns the time step for the continuum.
void SetTimeStep(real_t dt)
virtual void Initialize()=0
void SetContinuumId(int id)
Sets the ID of the continuum.
int GetContinuumId() const
Returns the ID of the continuum.
Continuum(const TRootIOCtor *)
Interface for scalar fields. See Continuum for more information.
virtual real_t GetDiv(const Real3 &position) const =0
Returns the divergence of the vector field at the given position.
virtual real_t GetValue(const Real3 &position) const =0
Returns the value of the scalar field at the given position.
virtual Real3 GetValue(const Real3 &position) const =0
Returns the value of the vector field at the given position.
void SetContinuumName(const std::string &name)
Sets the name of the continuum.
BDM_CLASS_DEF_OVERRIDE(ScalarField, 1)
real_t GetSimulatedTime() const
Returns the time simulated by the continuum.
~ScalarField() override=default
virtual real_t GetCurl(const Real3 &position) const =0
Returns the curl of the vector field at the given position.