Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Protected Attributes | List of all members
Simulator Class Referenceabstract

A simulator engine is used to compute the displacements of all atoms of the model. More...

#include <Simulator.h>

Inherited by InteractiveSimulator, and NonInteractiveSimulator.

Public Member Functions

virtual void createPml (const char *inputFile, const char *pmlFile)=0
 Create a pml file from a simulator specific imput file. More...
 
virtual void end ()=0
 end simultor More...
 
virtual void getForce (int index, double force[3])=0
 get current force for one atom More...
 
virtual void getPosition (int index, double position[3])=0
 get current position for one atom More...
 
virtual void init ()=0
 initialize the simulator More...
 
 Simulator (MonitoringManager *monitoringManager)
 default constructor build a simulation from context provided by monitoringManager More...
 
 Simulator (MonitoringManager *monitoringManager, const char *file)
 constructor with simulator file build a simulation from context provided by monitoringManager and physical model provided by a simulator specific input file More...
 
void updatePositions ()
 update all current positions and store last positions More...
 
virtual ~Simulator ()=default
 destructor More...
 

Protected Attributes

MonitoringManagermonitoringManager
 monitoring manager More...
 

Detailed Description

A simulator engine is used to compute the displacements of all atoms of the model.

Constructor & Destructor Documentation

◆ Simulator() [1/2]

Simulator::Simulator ( MonitoringManager monitoringManager)

default constructor build a simulation from context provided by monitoringManager

Parameters
monitoringManagermanager provinding context of simulation

References monitoringManager.

◆ Simulator() [2/2]

Simulator::Simulator ( MonitoringManager monitoringManager,
const char *  file 
)

constructor with simulator file build a simulation from context provided by monitoringManager and physical model provided by a simulator specific input file

Parameters
monitoringManagermanager provinding context of simulation
filepath to simulator specific file

References monitoringManager.

◆ ~Simulator()

virtual Simulator::~Simulator ( )
virtualdefault

destructor

Member Function Documentation

◆ createPml()

virtual void Simulator::createPml ( const char *  inputFile,
const char *  pmlFile 
)
pure virtual

Create a pml file from a simulator specific imput file.

Implemented in SofaSimulator, NonInteractiveSimulator, AnsysSimulator, InteractiveSimulator, and ArtisynthSimulator.

Referenced by MonitoringManager::buildPmlAndSimulatorfromSimulator().

◆ end()

virtual void Simulator::end ( )
pure virtual

◆ getForce()

virtual void Simulator::getForce ( int  index,
double  force[3] 
)
pure virtual

get current force for one atom

Implemented in SofaSimulator, AnsysSimulator, and ArtisynthSimulator.

Referenced by MonitorForce::calculate().

◆ getPosition()

virtual void Simulator::getPosition ( int  index,
double  position[3] 
)
pure virtual

get current position for one atom

Implemented in SofaSimulator, AnsysSimulator, ArtisynthSimulator, InteractiveSimulator, and NonInteractiveSimulator.

Referenced by updatePositions().

◆ init()

virtual void Simulator::init ( )
pure virtual

◆ updatePositions()

void Simulator::updatePositions ( )

Member Data Documentation

◆ monitoringManager

MonitoringManager* Simulator::monitoringManager
protected

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