TODO Comment class here. More...
#include <SofaSimulator.h>
Public Member Functions | |
| std::string | getScnFile () |
| SofaSimulator (MonitoringManager *monitoringManager) | |
| SofaSimulator (MonitoringManager *monitoringManager, const char *file) | |
| virtual | ~SofaSimulator () |
Simulator inherited | |
| void | doMove (double dt) |
| ask the simulator do to one step of the simulation More... | |
| void | init () |
| initialize the simulator More... | |
| void | getPosition (int index, double position[3]) |
| get current position for one atom More... | |
| void | getForce (int index, double force[3]) |
| get current force for one atom More... | |
| void | end () |
| end simultor More... | |
| void | createPml (const char *inputFile, const char *pmlFile) |
| Create a pml file from an imput file. More... | |
Public Member Functions inherited from InteractiveSimulator | |
| void | createPml (const char *inputFile, const char *pmlFile) override=0 |
| Create a pml file from an imput file. More... | |
| virtual void | doMove (double dt)=0 |
| ask the simulator do to one step of the simulation More... | |
| void | end () override=0 |
| end simultor More... | |
| void | getPosition (int index, double position[3]) override=0 |
| get current position for one atom More... | |
| void | init () override=0 |
| initialize the simulator More... | |
| InteractiveSimulator (MonitoringManager *monitoringManager) | |
| constructor More... | |
| InteractiveSimulator (MonitoringManager *monitoringManager, const char *file) | |
| constructor More... | |
| ~InteractiveSimulator () override=default | |
| destructor More... | |
Public Member Functions inherited from Simulator | |
| 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... | |
Additional Inherited Members | |
Protected Attributes inherited from Simulator | |
| MonitoringManager * | monitoringManager |
| monitoring manager More... | |
TODO Comment class here.
| SofaSimulator::SofaSimulator | ( | MonitoringManager * | monitoringManager | ) |
References a, StructuralComponent::getAtoms(), PhysicalModel::getAtoms(), Component::getCell(), PhysicalModel::getComponentByName(), Structure::getIndex(), PhysicalModel::getNumberOfAtoms(), Component::getNumberOfCells(), StructuralComponent::getNumberOfStructures(), StructuralComponent::getStructure(), Structure::getType(), StructureProperties::HEXAHEDRON, StructureProperties::QUAD, StructureProperties::TETRAHEDRON, and StructureProperties::TRIANGLE.
| SofaSimulator::SofaSimulator | ( | MonitoringManager * | monitoringManager, |
| const char * | file | ||
| ) |
|
virtual |
|
virtual |
Create a pml file from an imput file.
Implements InteractiveSimulator.
References a, SurfaceExtractor::AddCell(), StructuralComponent::addStructure(), MultiComponent::addSubComponent(), SurfaceExtractor::generateExternalSurface(), PhysicalModel::getAtom(), StructuralComponent::getNumberOfCells(), StructuralComponent::getNumberOfStructures(), StructureProperties::HEXAHEDRON, SurfaceExtractor::init(), StructureProperties::QUAD, PhysicalModel::setAtoms(), Component::setExclusive(), PhysicalModel::setExclusiveComponents(), PhysicalModel::setInformativeComponents(), StructuralComponent::setMode(), PhysicalModel::setName(), StructureProperties::TETRAHEDRON, StructureProperties::TRIANGLE, RenderingMode::WIREFRAME_AND_SURFACE, and PhysicalModel::xmlPrint().
|
virtual |
ask the simulator do to one step of the simulation
| dt | integration step |
Implements InteractiveSimulator.
|
inlinevirtual |
end simultor
Implements InteractiveSimulator.
|
virtual |
get current force for one atom
Implements Simulator.
|
virtual |
get current position for one atom
Implements InteractiveSimulator.
|
inline |
Referenced by SofaWidget::SofaWidget().
|
virtual |
initialize the simulator
Implements InteractiveSimulator.
References MonitoringManager::isLmlPresent(), and Simulator::monitoringManager.