10 #if !defined(KRATOS_STATIC_STEP_METHOD_H_INCLUDED)
11 #define KRATOS_STATIC_STEP_METHOD_H_INCLUDED
49 template<
class TVariableType,
class TValueType>
83 mpStepVariable =
nullptr;
89 mpStepVariable =
nullptr;
93 StaticStepMethod(
const TVariableType& rVariable,
const TVariableType& rFirstDerivative,
const TVariableType& rSecondDerivative) :
DerivedType(rVariable,rFirstDerivative,rSecondDerivative)
95 mpStepVariable =
nullptr;
99 StaticStepMethod(
const TVariableType& rVariable,
const TVariableType& rFirstDerivative,
const TVariableType& rSecondDerivative,
const TVariableType& rPrimaryVariable) :
DerivedType(rVariable,rFirstDerivative,rSecondDerivative,rPrimaryVariable)
101 mpStepVariable =
nullptr;
107 ,mpStepVariable(rOther.mpStepVariable)
137 mpStepVariable = &rStepVariable;
145 this->PredictStepVariable(rNode);
146 this->PredictVariable(rNode);
156 this->PredictStepVariable(rNode);
157 this->PredictVariable(rNode);
167 this->UpdateStepVariable(rNode);
168 this->UpdateVariable(rNode);
183 ErrorCode = BaseType::Check(rCurrentProcessInfo);
186 if( this->mpStepVariable ==
nullptr ){
187 KRATOS_ERROR <<
" time integration method Step Variable not set " <<std::endl;
209 std::string
Info()
const override
211 std::stringstream buffer;
212 buffer <<
"StaticStepMethod";
219 rOStream <<
"StaticStepMethod";
225 rOStream <<
"StaticStepMethod Data";
264 PreviousVariable = CurrentVariable;
279 CurrentStepVariable = CurrentVariable-PreviousVariable;
295 CurrentStepVariable += CurrentVariable-PreviousVariable;
308 PreviousVariable = CurrentVariable;
353 void save(
Serializer& rSerializer)
const override
387 template<
class TVariableType,
class TValueType>
393 template<
class TVariableType,
class TValueType>
396 return rOStream << rThis.
Info();
This class defines the node.
Definition: node.h:65
TVariableType::Type & FastGetSolutionStepValue(const TVariableType &rThisVariable)
Definition: node.h:435
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Short class definition.
Definition: static_method.hpp:51
BaseType::VariablePointer VariablePointer
KratosVariable or KratosVariableComponent.
Definition: static_method.hpp:67
BaseType::Pointer BasePointerType
BasePointerType.
Definition: static_method.hpp:61
Short class definition.
Definition: static_step_method.hpp:51
void Assign(NodeType &rNode) override
Definition: static_step_method.hpp:141
StaticStepMethod(StaticStepMethod &rOther)
Copy Constructor.
Definition: static_step_method.hpp:105
KRATOS_CLASS_POINTER_DEFINITION(StaticStepMethod)
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: static_step_method.hpp:217
StaticStepMethod(const TVariableType &rVariable)
Constructor.
Definition: static_step_method.hpp:87
~StaticStepMethod() override
Destructor.
Definition: static_step_method.hpp:118
VariablePointer mpStepVariable
Definition: static_step_method.hpp:246
void SetStepVariable(const TVariableType &rStepVariable) override
Definition: static_step_method.hpp:135
TimeIntegrationMethod< TVariableType, TValueType > BaseType
BaseType.
Definition: static_step_method.hpp:58
BaseType::NodeType NodeType
NodeType.
Definition: static_step_method.hpp:64
StaticStepMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative)
Constructor.
Definition: static_step_method.hpp:93
bool HasStepVariable() override
Definition: static_step_method.hpp:129
std::string Info() const override
Turn back information as a string.
Definition: static_step_method.hpp:209
BasePointerType Clone() override
Clone.
Definition: static_step_method.hpp:112
BaseType::Pointer BasePointerType
BasePointerType.
Definition: static_step_method.hpp:61
void PredictVariable(NodeType &rNode) override
Definition: static_step_method.hpp:256
void Update(NodeType &rNode) override
Definition: static_step_method.hpp:163
StaticStepMethod()
Default Constructor.
Definition: static_step_method.hpp:81
void UpdateVariable(NodeType &rNode) override
Definition: static_step_method.hpp:300
void Predict(NodeType &rNode) override
Definition: static_step_method.hpp:152
BaseType::VariablePointer VariablePointer
KratosVariable or KratosVariableComponent.
Definition: static_step_method.hpp:67
virtual void UpdateStepVariable(NodeType &rNode)
Definition: static_step_method.hpp:285
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: static_step_method.hpp:223
StaticMethod< TVariableType, TValueType > DerivedType
DerivedType.
Definition: static_step_method.hpp:70
int Check(const ProcessInfo &rCurrentProcessInfo) override
This function is designed to be called once to perform all the checks needed.
Definition: static_step_method.hpp:177
StaticStepMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative, const TVariableType &rPrimaryVariable)
Constructor.
Definition: static_step_method.hpp:99
virtual void PredictStepVariable(NodeType &rNode)
Definition: static_step_method.hpp:269
Short class definition.
Definition: time_integration_method.hpp:55
const TVariableType * VariablePointer
KratosVariable or KratosVariableComponent.
Definition: time_integration_method.hpp:65
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
#define KRATOS_ERROR
Definition: exception.h:161
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307