13 #if !defined(KRATOS_TEMPORAL_METHOD_H_INCLUDED)
14 #define KRATOS_TEMPORAL_METHOD_H_INCLUDED
37 namespace TemporalMethods
46 : mrModelPart(rModelPart), mEchoLevel(
EchoLevel)
56 KRATOS_ERROR <<
"Calling base class InitializeStatisticsVariables. "
57 "Please implement it in derrived class.\n";
64 mIntegrationStartTime = IntegrationStartTime;
66 if (!r_process_info[IS_RESTARTED])
76 KRATOS_ERROR <<
"Calling base class CalculateStatistics. "
77 "Please implement it in derrived class.\n";
92 const double current_time = r_process_info[TIME];
93 const double total_time = current_time - mIntegrationStartTime;
96 <<
"Total integration time should be greater than or equal to "
99 << total_time <<
", TIME = " << current_time <<
" ].\n";
109 return r_process_info[DELTA_TIME];
120 double mIntegrationStartTime;
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ProcessInfo & GetProcessInfo()
Definition: model_part.h:1746
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Definition: temporal_method.h:40
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_ERROR
Definition: exception.h:161
#define KRATOS_ERROR_IF(conditional)
Definition: exception.h:162
TemporalMethod(ModelPart &rModelPart, const int EchoLevel)
Definition: temporal_method.h:45
virtual void InitializeStatisticsVariables()
Definition: temporal_method.h:52
double GetDeltaTime() const
Definition: temporal_method.h:106
int GetEchoLevel() const
Definition: temporal_method.h:112
KRATOS_CLASS_POINTER_DEFINITION(TemporalMethod)
Pointer definition of RansApplyFlagProcess.
ModelPart & GetModelPart() const
Definition: temporal_method.h:82
virtual ~TemporalMethod()=default
virtual void CalculateStatistics()
Definition: temporal_method.h:72
double GetTotalTime() const
Definition: temporal_method.h:87
virtual void InitializeStatisticsMethod(double IntegrationStartTime)
Definition: temporal_method.h:62
static int EchoLevel
Definition: co_sim_EMPIRE_API.h:42
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21