|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef SIMULATOR_SIMULATORS_ANSYS_ANSYSSIMULATOR_H
27 #define SIMULATOR_SIMULATORS_ANSYS_ANSYSSIMULATOR_H
54 void getForce(
int index,
double force[3]);
61 virtual void createPml(
const char* inputFile,
const char* pmlFile);
78 #endif // SIMULATOR_SIMULATORS_ANSYS_ANSYSSIMULATOR_H
A factory to create Simulator.
Definition: SimulatorFactory.h:40
void runAnsys()
start ansys with created batch file
Definition: AnsysSimulator.cpp:113
void end()
end simultor
Definition: AnsysSimulator.cpp:83
~AnsysSimulator()
destructor
Definition: AnsysSimulator.cpp:68
std::string getFileName()
return batch file's name
Definition: AnsysBatch.cpp:110
int getMaxStep()
get the number of steps after simulation
Definition: AnsysSimulator.cpp:156
virtual void createPml(const char *inputFile, const char *pmlFile)
Create a pml file from an imput file.
Definition: AnsysSimulator.cpp:98
double getCurrentStep()
Definition: MonitoringManager.cpp:242
#define MML_DECL_CLASS(name)
needed in files to register into factories (because of static lib and windows linking problems)
Definition: Macros.h:31
void init()
initialize simulator
Definition: AnsysSimulator.cpp:75
void write()
write entire batch file if file do not exist
Definition: AnsysBatch.cpp:65
bool ansysRegistered
Definition: AnsysSimulator.cpp:42
AnsysSimulator(MonitoringManager *monitoringManager)
constructor
Definition: AnsysSimulator.cpp:45
double getTime(int step)
get the time of simulation of a given step
Definition: AnsysSimulator.cpp:167
bool doCalc()
make entire simulation ans store results of all step
Definition: AnsysSimulator.cpp:105
Simulator class to use Ansys as simulation engine.
Definition: AnsysSimulator.h:40
MonitoringManager * monitoringManager
monitoring manager
Definition: Simulator.h:107
void getForce(int index, double force[3])
get current force for one atom
Definition: AnsysSimulator.cpp:150
std::string ansysPath
Ansys binary.
Definition: AnsysSimulator.h:90
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
Ansys batch file handler.
Definition: AnsysBatch.h:44
void getPosition(int index, double position[3])
get current position for one atom (use parameters)
Definition: AnsysSimulator.cpp:119
std::string getBatchFile()
get path to batch file
Definition: AnsysSimulator.cpp:180
AnsysBatch * batch
Ansys batch file creator.
Definition: AnsysSimulator.h:94
An interactive simulator is a simulator that we cannot control step by step (ex: Ansys) Entire simula...
Definition: NonInteractiveSimulator.h:38
std::string workingDir
Ansys working dir.
Definition: AnsysSimulator.h:92