![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
Bean that represents a simulation in the framework. Many of the attributes of the simulation bean are defined in the Simulation.properties file by the user of the framework. The Controller class uses the simulation bean to control the creation of the correct classes for the simulation. More...
#include <Sfx_Simulation.h>
Classes | |
struct | SimProp |
Property loaded at initialization (from file, user) Struct that hold parameters for the current simulation. At the end of the simulation these parameters will be saved (as a scenario) that could be retrieved later to run the scenario (it's not all clear in mind, but it will be part of the scenario concept). More... |
Public Member Functions | |
std::string | getCalculFFSchemeName () const noexcept |
Numerical algorithm for the current simulation. | |
void | setCalculFFSchemeName (const std::string &aCalculFFSchemeName) noexcept |
Set Numerical flux pointer to function. | |
void | setPerformMeasurement (bool measurement) noexcept |
Flag to set if measure to be taken. | |
void | setNumberMeasurements (uint32 aNumofMeasurements) noexcept |
Set number of measurements. | |
void | setDataStore (const std::string &dataStore) noexcept |
Use this method to specify the DataStore. | |
void | setDataStoreFile (std::string aDataStoreFile) noexcept |
Use this method to specify the DataStoreFile. | |
void | setDoFinalReport (bool doFinalReport) noexcept |
bool | doFinalReport () const noexcept |
void | setFinalReportClass (const std::string &finalReportClass) noexcept |
Use this method to define a class that performs a summary report of the simulation. | |
void | setPhysicalConfigureClass (const std::string &aConfClass) noexcept |
Set configuration class name. | |
void | setPhysicalAlgoClass (const std::string &aAlgoClass) noexcept |
Set algorithm class name. | |
bool | getPerformMeasurement () const noexcept |
Getter. | |
uint32 | getNumberMeasurements () const noexcept |
Getter. | |
std::string | getDataStore () const noexcept |
Getter. | |
const std::string | getDataStoreFile () const noexcept |
Getter. | |
void | setPhysicalMeasurementClass (std::string aPhysicalMeasureClass) |
Set class name. | |
std::string | getPhysicalMeasurementClass () const noexcept |
Use this method to get the PhysicalMeasurementClass. | |
std::string | getPhysicalConfigurationClass () const noexcept |
Use this method to get the PhysicalConfigurationClass. | |
void | setPhysicalConfigurationClass (std::string aPhysicalConfig) noexcept |
Use this method to specify the PhysicalConfigurationClass. | |
std::string | getPhysicalAlgorithmClass () const noexcept |
Get the PhysicalAlgorithmClass name. | |
void | setPhysicalAlgorithmClass (std::string aPhysicalAlgo) noexcept |
Use this method to specify the PhysicalAlgorithmClass. | |
std::string | getFinalReportClass () const noexcept |
Get the class for the final report. | |
void | setPhysicalSystemClass (std::string aPhysicalSystemClass) noexcept |
Use this method to specify the PhysicalSystemClass. | |
std::string | getInitialCnd () const noexcept |
Initial conditon name. | |
void | setBoundaryCnd (std::string aBoundaryCnd) noexcept |
Use this method to specify the Boundary Condition Type. | |
std::string | getBoundaryCnd () noexcept |
boundary condition name | |
void | setNumericalMethod (std::string aNumethod) noexcept |
Use this method to specify the Numerical Method. | |
std::string | getNumericalMethod () const noexcept |
Getter. | |
float64 | getSimulationStartTime () const noexcept |
Getter. | |
void | setSimulationStartTime (float64 aStartTime) noexcept |
Use this method to specify the time at the start of the simulation. | |
void | setSimulationTime (float64 aTime) noexcept |
Use this method to specify the time during any point during the simulation. | |
float64 | getSimulationTime () const noexcept |
Return current time of the simulation. | |
void | setNumTimeStep (uint32 aNumTimeStep) noexcept |
Set the number of time-step. | |
uint32 | getNumTimeStep () noexcept |
Return the number of time step. | |
void | setSimulationTimeStep (const float64 aTimeStep) noexcept |
Use this method to specify the timestep interval to be used to calculate the running time. | |
const float64 | getSimulationTimeStep () const noexcept |
Use this method to get the interval which is usually a timestep. | |
void | updateTime () noexcept |
Use this method to set the time during any point during the simulation. | |
std::string | toString () const noexcept |
string representation of the object | |
Simulation::SimProp | loadPropertyFile (const std::filesystem::path &aFilePropPath) |
load property file of the simulation | |
void | setParamsFileName (std::string aPropFileName) |
Set file name. | |
std::string | getParamsFileName () const |
Getter. |
Public Attributes | |
struct Sfx::Simulation::SimProp | m_simProp |
Protected Member Functions | |
Simulation ()=default | |
prevent client from using it | |
~Simulation ()=default | |
Dtor. | |
Simulation (const Simulation &aOther)=delete | |
Disable copy ctor. | |
Simulation & | operator= (const Simulation &aOther)=delete |
Disable assign ctor. |
Private Types | |
using | ArrayType = std::vector<float64> |
Alias (array type) |
Friends | |
class | Sfx::SfxSingleton< Simulation > |
Declare as friend of the class to access protected default ctor. |
Bean that represents a simulation in the framework. Many of the attributes of the simulation bean are defined in the Simulation.properties file by the user of the framework. The Controller class uses the simulation bean to control the creation of the correct classes for the simulation.
|
private |
Alias (array type)
|
protecteddefault |
prevent client from using it
|
protecteddefault |
Dtor.
|
protecteddelete |
Disable copy ctor.
aOther | object to copy from |
|
inlinenoexcept |
Use this method to query whether to produce a final report or not.
|
inlinenoexcept |
boundary condition name
|
inlinenoexcept |
Numerical algorithm for the current simulation.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Get the class for the final report.
|
inlinenoexcept |
Initial conditon name.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Return the number of time step.
|
inline |
Getter.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Get the PhysicalAlgorithmClass name.
|
inlinenoexcept |
Use this method to get the PhysicalConfigurationClass.
|
inlinenoexcept |
Use this method to get the PhysicalMeasurementClass.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Return current time of the simulation.
|
inlinenoexcept |
Use this method to get the interval which is usually a timestep.
Sfx::Simulation::SimProp Sfx::Simulation::loadPropertyFile | ( | const std::filesystem::path & | aFilePropPath | ) |
|
protecteddelete |
Disable assign ctor.
aOther | object to copy from |
|
inlinenoexcept |
Use this method to specify the Boundary Condition Type.
|
inlinenoexcept |
Set Numerical flux pointer to function.
aCalculFFSchemeName | pointer to function flux algorithm |
|
inlinenoexcept |
Use this method to specify the DataStore.
dataStore | Name of data store |
|
inlinenoexcept |
Use this method to specify the DataStoreFile.
aDataStoreFile | data store file name |
|
inlinenoexcept |
Use this method to indicate a final report should be produced
|
inlinenoexcept |
Use this method to define a class that performs a summary report of the simulation.
finalReportClass | class name |
|
inlinenoexcept |
Set number of measurements.
aNumofMeasurements |
|
inlinenoexcept |
Use this method to specify the Numerical Method.
|
inlinenoexcept |
Set the number of time-step.
aNumTimeStep |
|
inline |
Set file name.
aPropFileName | Simulation property file name |
|
inlinenoexcept |
Flag to set if measure to be taken.
measurement | flag true/false |
|
inlinenoexcept |
Set algorithm class name.
aAlgoClass | algorithm name |
|
inlinenoexcept |
Use this method to specify the PhysicalAlgorithmClass.
|
inlinenoexcept |
Use this method to specify the PhysicalConfigurationClass.
aPhysicalConfig | class name |
|
inlinenoexcept |
Set configuration class name.
aConfClass | class name |
|
inline |
Set class name.
aPhysicalMeasureClass | class name |
|
inlinenoexcept |
Use this method to specify the PhysicalSystemClass.
aPhysicalSystemClass |
|
inlinenoexcept |
Use this method to specify the time at the start of the simulation.
aStartTime | start time |
|
inlinenoexcept |
Use this method to specify the time during any point during the simulation.
aTime | simulation time |
|
inlinenoexcept |
Use this method to specify the timestep interval to be used to calculate the running time.
|
inlinenoexcept |
string representation of the object
|
inlinenoexcept |
Use this method to set the time during any point during the simulation.
|
friend |
Declare as friend of the class to access protected default ctor.
struct Sfx::Simulation::SimProp Sfx::Simulation::m_simProp |