An interactive simulator is a simulator that we cannot control step by step (ex: Ansys) Entire simulation is performed and then post-processed. More...
#include <NonInteractiveSimulator.h>
Public Member Functions | |
void | createPml (const char *inputFile, const char *pmlFile) override=0 |
Create a pml file from an imput file. More... | |
virtual bool | doCalc ()=0 |
make entire simulation ans store results of all step More... | |
void | end () override=0 |
end simultor More... | |
virtual int | getMaxStep ()=0 |
get the number of steps after simulation More... | |
void | getPosition (int index, double position[3]) override=0 |
get current position for one atom (use parameters) More... | |
virtual double | getTime (int step)=0 |
get the time of simulation of a given step More... | |
void | init () override=0 |
initialize simulator More... | |
NonInteractiveSimulator (MonitoringManager *monitoringManager) | |
constructor More... | |
NonInteractiveSimulator (MonitoringManager *monitoringManager, const char *file) | |
constructor More... | |
~NonInteractiveSimulator () override=default | |
destructor More... | |
Public Member Functions inherited from Simulator | |
virtual void | getForce (int index, double force[3])=0 |
get current force for one atom 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... | |
An interactive simulator is a simulator that we cannot control step by step (ex: Ansys) Entire simulation is performed and then post-processed.
NonInteractiveSimulator::NonInteractiveSimulator | ( | MonitoringManager * | monitoringManager | ) |
constructor
NonInteractiveSimulator::NonInteractiveSimulator | ( | MonitoringManager * | monitoringManager, |
const char * | file | ||
) |
constructor
|
overridedefault |
destructor
|
overridepure virtual |
Create a pml file from an imput file.
Implements Simulator.
Implemented in ArtisynthSimulator, and AnsysSimulator.
|
pure virtual |
make entire simulation ans store results of all step
Implemented in ArtisynthSimulator, and AnsysSimulator.
Referenced by NonInteractiveMonitoringManager::doCalc().
|
overridepure virtual |
end simultor
Implements Simulator.
Implemented in ArtisynthSimulator, and AnsysSimulator.
Referenced by NonInteractiveMonitoringManager::end().
|
pure virtual |
get the number of steps after simulation
Implemented in ArtisynthSimulator, and AnsysSimulator.
Referenced by NonInteractiveMonitoringManager::init().
|
overridepure virtual |
get current position for one atom (use parameters)
Implements Simulator.
Implemented in ArtisynthSimulator, and AnsysSimulator.
|
pure virtual |
get the time of simulation of a given step
Implemented in ArtisynthSimulator, and AnsysSimulator.
Referenced by NonInteractiveMonitoringManager::doMove().
|
overridepure virtual |
initialize simulator
Implements Simulator.
Implemented in ArtisynthSimulator, and AnsysSimulator.
Referenced by NonInteractiveMonitoringManager::init().