![]() |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Simulator class to use Artisynth as simulation engine. More...
#include <ArtiSynthSimulator.h>
Inherits NonInteractiveSimulator.
Public Member Functions | |
| ArtisynthSimulator (MonitoringManager *monitoringManager) | |
| constructor More... | |
| ArtisynthSimulator (MonitoringManager *monitoringManager, const char *file) | |
| constructor More... | |
| virtual void | createPml (const char *inputFile, const char *pmlFile) |
| Create a pml file from an imput file. More... | |
| bool | doCalc () |
| make entire simulation ans store results of all step More... | |
| void | end () |
| end simultor More... | |
| void | getForce (int index, double force[3]) |
| get current force for one atom More... | |
| int | getMaxStep () |
| get the number of steps after simulation More... | |
| void | getPosition (int index, double position[3]) |
| get current position for one atom (use parameters) More... | |
| double | getTime (int step) |
| get the time of simulation of a given step More... | |
| void | init () |
| initialize simulator More... | |
| ~ArtisynthSimulator () | |
| destructor More... | |
Public Member Functions inherited from NonInteractiveSimulator | |
| NonInteractiveSimulator (MonitoringManager *monitoringManager) | |
| constructor More... | |
| NonInteractiveSimulator (MonitoringManager *monitoringManager, const char *file) | |
| constructor More... | |
| ~NonInteractiveSimulator () override=default | |
| destructor More... | |
Public Member Functions inherited from Simulator | |
| 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... | |
Private Member Functions | |
| void | runArtisynth () |
| start Artisynth calculations More... | |
Private Attributes | |
| std::string | artisynthPath |
| Artisynth binary. More... | |
| std::string | workingDir |
| Artisynth working dir. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Simulator | |
| MonitoringManager * | monitoringManager |
| monitoring manager More... | |
Simulator class to use Artisynth as simulation engine.
| ArtisynthSimulator::ArtisynthSimulator | ( | MonitoringManager * | monitoringManager | ) |
constructor
| ArtisynthSimulator::ArtisynthSimulator | ( | MonitoringManager * | monitoringManager, |
| const char * | file | ||
| ) |
constructor
| ArtisynthSimulator::~ArtisynthSimulator | ( | ) |
destructor
|
virtual |
Create a pml file from an imput file.
Implements NonInteractiveSimulator.
|
virtual |
make entire simulation ans store results of all step
Implements NonInteractiveSimulator.
References runArtisynth().
|
virtual |
end simultor
Implements NonInteractiveSimulator.
|
virtual |
get current force for one atom
Implements Simulator.
|
virtual |
|
virtual |
get current position for one atom (use parameters)
Implements NonInteractiveSimulator.
References MonitoringManager::getCurrentStep(), Simulator::monitoringManager, and workingDir.
|
virtual |
get the time of simulation of a given step
Implements NonInteractiveSimulator.
References workingDir.
|
virtual |
|
private |
start Artisynth calculations
References artisynthPath, PhysicalModel::exportAnsysMesh(), MonitoringManager::getPml(), Simulator::monitoringManager, and workingDir.
Referenced by doCalc().
|
private |
Artisynth binary.
Referenced by runArtisynth().
|
private |
Artisynth working dir.
Referenced by getMaxStep(), getPosition(), getTime(), init(), and runArtisynth().
1.8.13