An abstract class representing a simulation method. More...
#include <IrpsWLSimuMethod.h>
Public Member Functions | |
virtual bool | OnInitialSetting (const WindLabSimulationData &Data)=0 |
Allows to do any initial taks before any of the other methods is called. | |
virtual bool | Simulate (const WindLabSimulationData &Data, mat &dVelocityArray)=0 |
Generate random wind velocity. | |
virtual bool | SimulateInLargeScaleMode (const WindLabSimulationData &Data, QString &strFileName)=0 |
Generate random wind velocity in large scale simulation mode. | |
virtual | ~IrpsWLSimuMethod () |
Virtual destructor for IrpsWLSimuMethod class. | |
![]() | |
virtual const char * | getViewProviderName () const |
WindLabFeatureSimulationMethod (void) | |
Constructor. | |
virtual | ~WindLabFeatureSimulationMethod () |
virtual short | mustExecute () const override |
![]() | |
WindLabFeature (void) | |
Constructor. | |
virtual | ~WindLabFeature () |
destructor | |
Additional Inherited Members | |
![]() | |
virtual App::DocumentObjectExecReturn * | recompute () override |
recompute only this object | |
virtual App::DocumentObjectExecReturn * | execute () override |
recalculate the feature | |
virtual void | onChanged (const App::Property *prop) override |
![]() | |
virtual PyObject * | getPyObject () override |
![]() | |
Py::SmartPtr | PythonObject |
An abstract class representing a simulation method.
This is a pure virtual class (interface) that defines the interface for all simulation methods. Simulation methods refer to simulation algorithms which provide powerful tools for modeling complex systems that involve uncertainty, randomness, or fluctuating behavior, allowing researchers, engineers, and analysts to study and predict the behavior of these systems in a computationally efficient manner. Various simulations methods can be found in LabRPS for the simulation of various random phenomena. Derived classes must implement all its methods. During the implementation of this interface you have to consider stationarity depending on how your feature varies in time to capture these three situation that may come from the user's inputs (requirements):
1-The user is willing to simulate stationary wind velocity. f = f(w)
2-The user is willing to simulate non-stationary wind velocity and has also created a modulation function in the simulation. f = f(w,t) = G(w) * M(t)
3-The user is willing to simulate non-stationary wind velocity without creating any modulation function in the simulation. f = f(w,t)
|
virtual |
Virtual destructor for IrpsWLSimuMethod class.
Provides proper cleanup in case a derived class object is destroyed.
|
pure virtual |
Allows to do any initial taks before any of the other methods is called.
Data | the simulation data containing all the simulation parameters input by the user. |
|
pure virtual |
Generate random wind velocity.
Data | the simulation data containing all the simulation parameters input by the user. |
dVelocityArray | a matrix to be updated. This is generated random wind velocity matrix. Its first column contains the time increments. |
|
pure virtual |
Generate random wind velocity in large scale simulation mode.
Data | the simulation data containing all the simulation parameters input by the user. |
strFileName | In large scale mode, the generated wind velocity is not save in memory. It should be written to computer disc to avoid memory usage overflow. This is the name of the file in which the generated wind speed values will be written. You can get the working directory that from the simulation Data in order to create the full path of the file. |