KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
axisym_updated_lagrangian_U_J_wP_element.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Last modified by: $Author: LMonforte $
4 // Date: $Date: July 2015 $
5 // Revision: $Revision: -0.1 $
6 //
7 //
8 
9 #if !defined(KRATOS_AXISYM_UPDATED_LAGRANGIAN_U_J_wP_ELEMENT_H_INCLUDED )
10 #define KRATOS_AXISYM_UPDATED_LAGRANGIAN_U_J_wP_ELEMENT_H_INCLUDED
11 
12 // System includes
13 
14 // External includes
15 
16 // Project includes
18 
19 
20 namespace Kratos
21 {
36 
38 
39 
40  class KRATOS_API(PFEM_SOLID_MECHANICS_APPLICATION) AxisymUpdatedLagrangianUJwPElement
42  {
43  public:
44 
50  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
55 
59 
62 
65 
67  AxisymUpdatedLagrangianUJwPElement(IndexType NewId, GeometryType::Pointer pGeometry);
68 
69  AxisymUpdatedLagrangianUJwPElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
70 
73 
74 
77 
81 
84 
85 
89 
100  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
101 
109  Element::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
110 
115  void CalculateOnIntegrationPoints(const Variable<Vector>& rVariable, std::vector<Vector>& rValues, const ProcessInfo& rCurrentProcessInfo) override;
116 
117  //************* STARTING - ENDING METHODS
118 
122  void GetDofList(DofsVectorType& rElementalDofList, ProcessInfo& rCurrentProcessInfo) override;
123 
127  void EquationIdVector(EquationIdVectorType& rResult, ProcessInfo& rCurrentProcessInfo) override;
128 
132  void GetValuesVector(Vector& rValues, int Step = 0) const override;
133 
137  void GetFirstDerivativesVector(Vector& rValues, int Step = 0) const override;
138 
142  void GetSecondDerivativesVector(Vector& rValues, int Step = 0) const override;
143 
144 
145  //************************************************************************************
146  //************************************************************************************
154  int Check(const ProcessInfo& rCurrentProcessInfo) override;
155 
159 
170  protected:
176 
177  double mTimeStep; // because I don't kwnow how to do it better
178 
182 
186 
191  void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
192  ElementDataType& rVariables,
193  double& rIntegrationWeight) override;
194 
199  void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
200  ElementDataType& rVariables,
201  Vector& rVolumeForce,
202  double& rIntegrationWeight) override;
203 
207  void InitializeElementData(ElementDataType & rVariables, const ProcessInfo& rCurrentProcessInfo) override;
208 
209 
213  void InitializeSystemMatrices(MatrixType& rLeftHandSideMatrix,
214  VectorType& rRightHandSideVector,
215  Flags& rCalculationFlags) override;
216 
227 
228  private:
229 
235 
236 
240 
241 
245 
246 
251 
255  friend class Serializer;
256 
257  // A private default constructor necessary for serialization
258 
259  void save(Serializer& rSerializer) const override;
260 
261  void load(Serializer& rSerializer) override;
262 
263 
270 
271 
272 }; // Class AxisymUpdatedLagrangianUJwPElement
273 
274 
275 
276 } // namespace Kratos
277 #endif // KRATOS_UPDATED_LAGRANGIAN_U_J_wP_ELEMENT_H_INCLUDED
278 
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: axisym_updated_lagrangian_U_J_element.hpp:40
Updated Lagrangian Large Displacement Lagrangian U-wP Element for 3D and 2D geometries....
Definition: axisym_updated_lagrangian_U_J_wP_element.hpp:42
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: axisym_updated_lagrangian_U_J_wP_element.hpp:52
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(AxisymUpdatedLagrangianUJwPElement)
Counted pointer of LargeDisplacementUPElement.
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: axisym_updated_lagrangian_U_J_wP_element.hpp:54
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: axisym_updated_lagrangian_U_J_wP_element.hpp:50
double mTimeStep
Definition: axisym_updated_lagrangian_U_J_wP_element.hpp:177
ConstitutiveLaw ConstitutiveLawType
Definition: axisym_updated_lagrangian_U_J_wP_element.hpp:48
Definition: constitutive_law.h:47
StressMeasure
Definition: constitutive_law.h:69
std::vector< DofType::Pointer > DofsVectorType
Definition: element.h:100
std::vector< std::size_t > EquationIdVectorType
Definition: element.h:98
Definition: flags.h:58
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.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
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
pybind11::list CalculateOnIntegrationPoints(TObject &dummy, const Variable< TDataType > &rVariable, const ProcessInfo &rProcessInfo)
Definition: add_mesh_to_python.cpp:142
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307
Definition: solid_element.hpp:83
Definition: solid_element.hpp:233