9 #if !defined(KRATOS_TWO_STEP_UPDATED_LAGRANGIAN_ELEMENT_H_INCLUDED)
10 #define KRATOS_TWO_STEP_UPDATED_LAGRANGIAN_ELEMENT_H_INCLUDED
24 #include "utilities/geometry_utilities.h"
61 template <
unsigned int TDim>
205 const ProcessInfo &rCurrentProcessInfo)
override{};
211 KRATOS_THROW_ERROR(std::logic_error,
"TwoStepUpdatedLagrangianElement::CalculateLeftHandSide not implemented",
"");
216 const ProcessInfo &rCurrentProcessInfo)
override{};
227 const ProcessInfo &rCurrentProcessInfo)
const override;
235 const ProcessInfo &rCurrentProcessInfo)
const override;
269 std::string
Info()
const override
271 std::stringstream buffer;
272 buffer <<
"TwoStepUpdatedLagrangianElement #" << this->
Id();
277 void PrintInfo(std::ostream &rOStream)
const override {}
307 const ProcessInfo &rCurrentProcessInfo)
override{};
311 const ProcessInfo &rCurrentProcessInfo)
override{};
315 const ProcessInfo &rCurrentProcessInfo)
override{};
319 std::cout <<
"I SHOULD NOT ENTER HERE!" << std::endl;
325 std::cout <<
"I SHOULD NOT ENTER HERE!" << std::endl;
330 const ProcessInfo &rCurrentProcessInfo)
override{};
335 double &MeanValue)
override;
339 double &MeanValue)
override;
342 const double Density,
344 const double Weight)
override;
349 const double Weight)
override;
352 const double Weight)
override;
355 const double Weight)
override{};
359 const unsigned int g,
363 double &DeviatoricCoeff,
364 double &VolumetricCoeff)
override
395 void save(
Serializer &rSerializer)
const override
445 template <
unsigned int TDim>
453 template <
unsigned int TDim>
458 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_law.h:47
Base class for all Elements.
Definition: element.h:60
std::size_t IndexType
Definition: flags.h:74
This defines the geometrical object, base definition of the element and condition entities.
Definition: geometrical_object.h:58
GeometryType & GetGeometry()
Returns the reference of the geometry.
Definition: geometrical_object.h:158
Geometry base class.
Definition: geometry.h:71
This object defines an indexed object.
Definition: indexed_object.h:54
IndexType Id() const
Definition: indexed_object.h:107
This class defines the node.
Definition: node.h:65
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
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
A stabilized element for the incompressible Navier-Stokes equations.
Definition: two_step_updated_lagrangian_element.h:63
A stabilized element for the incompressible Navier-Stokes equations.
Definition: updated_lagrangian_element.h:64
#define KRATOS_THROW_ERROR(ExceptionType, ErrorMessage, MoreInfo)
Definition: define.h:77
#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
void AddExternalForces(Vector &rRHSVector, const double Density, const ShapeFunctionsType &rN, const double Weight) override
Definition: two_step_updated_lagrangian_element.cpp:171
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition of nodes container type, redefined from GeometryType.
Definition: two_step_updated_lagrangian_element.h:81
void InitializeNonLinearIteration(const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:200
TwoStepUpdatedLagrangianElement(TwoStepUpdatedLagrangianElement const &rOther)
copy constructor
Definition: two_step_updated_lagrangian_element.h:164
TwoStepUpdatedLagrangianElement(IndexType NewId=0)
Default constuctor.
Definition: two_step_updated_lagrangian_element.h:130
virtual void UpdateCauchyStress(unsigned int g, const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:237
BaseType::PropertiesType::Pointer pPropertiesType
Definition: two_step_updated_lagrangian_element.h:116
void ComputeLumpedMassMatrix(Matrix &rMassMatrix, const double Weight, double &MeanValue) override
Definition: two_step_updated_lagrangian_element.cpp:84
virtual void ComputeBulkMatrixRHS(MatrixType &BulkMatrix, const double Weight) override
Definition: two_step_updated_lagrangian_element.h:354
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
It creates a new element pointer and clones the previous element data.
Definition: two_step_updated_lagrangian_element.cpp:21
void InitializeSolutionStep(const ProcessInfo &rCurrentProcessInfo) override
Initializes the element and all geometric information required for the problem.
Definition: two_step_updated_lagrangian_element.h:198
GeometryType::ShapeFunctionsGradientsType ShapeFunctionDerivativesArrayType
Type for an array of shape function gradient matrices.
Definition: two_step_updated_lagrangian_element.h:106
ConstitutiveLaw::Pointer mpConstitutiveLaw
Definition: two_step_updated_lagrangian_element.h:295
PointerVectorSet< Dof< double >, IndexedObject > DofsArrayType
Definition: two_step_updated_lagrangian_element.h:97
virtual ~TwoStepUpdatedLagrangianElement()
Destructor.
Definition: two_step_updated_lagrangian_element.h:167
virtual double GetThetaContinuity() override
Definition: two_step_updated_lagrangian_element.h:323
UpdatedLagrangianElement< TDim > BaseType
Definition: two_step_updated_lagrangian_element.h:72
TwoStepUpdatedLagrangianElement(IndexType NewId, GeometryType::Pointer pGeometry)
Constructor using a geometry object.
Definition: two_step_updated_lagrangian_element.h:148
virtual void CalculateLocalMomentumEquations(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:305
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: two_step_updated_lagrangian_element.h:112
BaseType::PropertiesType PropertiesType
Definition: two_step_updated_lagrangian_element.h:114
virtual void CalculateLocalContinuityEqForPressure(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:309
void ComputeMassMatrix(Matrix &rMassMatrix, const ShapeFunctionsType &rN, const double Weight, double &MeanValue) override
Definition: two_step_updated_lagrangian_element.cpp:139
virtual void CalcElasticPlasticCauchySplitted(ElementalVariables &rElementalVariables, const unsigned int g, const Vector &rN, const ProcessInfo &rCurrentProcessInfo, double &Density, double &DeviatoricCoeff, double &VolumetricCoeff) override
Definition: two_step_updated_lagrangian_element.h:357
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Provides the global indices for each one of this element's local rows.
Definition: two_step_updated_lagrangian_element.cpp:32
BaseType::ElementalVariables ElementalVariables
Definition: two_step_updated_lagrangian_element.h:118
Vector VectorType
Vector type for local contributions to the linear system.
Definition: two_step_updated_lagrangian_element.h:84
std::vector< Dof< double >::Pointer > DofsVectorType
Definition: two_step_updated_lagrangian_element.h:95
ConstitutiveLaw ConstitutiveLawType
Reference type definition for constitutive laws.
Definition: two_step_updated_lagrangian_element.h:109
void GetDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const override
Returns a list of the element's Dofs.
Definition: two_step_updated_lagrangian_element.cpp:58
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(TwoStepUpdatedLagrangianElement)
Pointer definition of TwoStepUpdatedLagrangianElement.
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:207
virtual double GetThetaMomentum() override
Definition: two_step_updated_lagrangian_element.h:317
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, pPropertiesType pProperties) const override
Create a new element of this type.
Definition: two_step_updated_lagrangian_element.h:187
virtual void InitializeElementalVariables(ElementalVariables &rElementalVariables) override
Definition: two_step_updated_lagrangian_element.h:239
Geometry< NodeType > GeometryType
Geometry type (using with given NodeType)
Definition: two_step_updated_lagrangian_element.h:78
std::size_t SizeType
Definition: two_step_updated_lagrangian_element.h:91
Element::PropertiesType PropertiesType
Definition: updated_lagrangian_element.h:142
virtual void CalculateExplicitContinuityEquation(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:313
std::vector< std::size_t > EquationIdVectorType
Definition: two_step_updated_lagrangian_element.h:93
void ComputeBulkMatrixLump(MatrixType &BulkMatrix, const double Weight) override
Definition: two_step_updated_lagrangian_element.cpp:292
Kratos::Vector ShapeFunctionsType
Type for shape function values container.
Definition: two_step_updated_lagrangian_element.h:100
void CalculateMassMatrix(Matrix &rMassMatrix, const ProcessInfo &rCurrentProcessInfo) override
Add integration point contribution to the mass matrix.
Definition: two_step_updated_lagrangian_element.h:329
void Initialize(const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:195
TwoStepUpdatedLagrangianElement(IndexType NewId, GeometryType::Pointer pGeometry, pPropertiesType pProperties)
Constuctor using geometry and properties.
Definition: two_step_updated_lagrangian_element.h:158
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Calculate the element's local contribution to the system for the current step.
Definition: two_step_updated_lagrangian_element.h:203
Matrix MatrixType
Matrix type for local contributions to the linear system.
Definition: two_step_updated_lagrangian_element.h:87
void AddInternalForces(Vector &rRHSVector, const ShapeFunctionDerivativesType &rDN_DX, ElementalVariables &rElementalVariables, const double Weight) override
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: two_step_updated_lagrangian_element.h:277
TwoStepUpdatedLagrangianElement(IndexType NewId, const NodesArrayType &ThisNodes)
Constructor using an array of nodes.
Definition: two_step_updated_lagrangian_element.h:139
Node NodeType
Node type (default is: Node)
Definition: two_step_updated_lagrangian_element.h:75
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: updated_lagrangian_element.hpp:177
Kratos::Matrix ShapeFunctionDerivativesType
Type for a matrix containing the shape function gradients.
Definition: two_step_updated_lagrangian_element.h:103
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Checks the input and that all required Kratos variables have been registered.
Definition: two_step_updated_lagrangian_element.h:258
std::size_t IndexType
Definition: two_step_updated_lagrangian_element.h:89
std::string Info() const override
Turn back information as a string.
Definition: two_step_updated_lagrangian_element.h:269
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: two_step_updated_lagrangian_element.h:215
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
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
Definition: updated_lagrangian_element.h:74