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.
large_displacement_beam_emc_element.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: August 2017 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_LARGE_DISPLACEMENT_BEAM_EMC_ELEMENT_H_INCLUDED)
11 #define KRATOS_LARGE_DISPLACEMENT_BEAM_EMC_ELEMENT_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 
21 namespace Kratos
22 {
37 
39 
47 class KRATOS_API(SOLID_MECHANICS_APPLICATION) LargeDisplacementBeamEMCElement
49 {
50 public:
51 
57  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
70 
73 
77 
79  LargeDisplacementBeamEMCElement(IndexType NewId, GeometryType::Pointer pGeometry);
80 
81  LargeDisplacementBeamEMCElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
82 
85 
88 
89 
93 
94 
102  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
103 
104 
105  //************* STARTING - ENDING METHODS
106 
111  void Initialize(const ProcessInfo& rCurrentProcessInfo) override;
112 
116  void InitializeSolutionStep(const ProcessInfo& rCurrentProcessInfo) override;
117 
118 
119  //************************************************************************************
120  //************************************************************************************
128  int Check(const ProcessInfo& rCurrentProcessInfo) const override;
129 
133 
141  std::string Info() const override
142  {
143  std::stringstream buffer;
144  buffer << "Large Displacement Beam EMC Element #" << Id();
145  return buffer.str();
146  }
147 
149  void PrintInfo(std::ostream& rOStream) const override
150  {
151  rOStream << "Large Displacement Beam EMC Element #" << Id();
152  }
153 
155  void PrintData(std::ostream& rOStream) const override
156  {
157  GetGeometry().PrintData(rOStream);
158  }
163 
164 protected:
165 
171 
172 
176  std::vector<Vector> mCurrentStrainResultantsVector;
177 
181  std::vector<Vector> mPreviousStrainResultantsVector;
182 
183 
188 
192 
193 
197  void InitializeElementData(ElementDataType & rVariables,
198  const ProcessInfo& rCurrentProcessInfo) override;
199 
200 
204  void MapToSpatialFrame(const ElementDataType& rVariables, Matrix& rVariable) override;
205 
206 
210  void CalculateKinematics(ElementDataType& rVariables,
211  const unsigned int& rPointNumber) override;
212 
216  Matrix& CalculatePreviousDeltaPosition(Matrix & rDeltaPosition);
217 
218 
222  void CalculateFrameMapping(ElementDataType& rVariables,
223  const unsigned int& rPointNumber) override;
224 
225 
229  void UpdateStrainVariables(ElementDataType& rVariables,
230  const unsigned int& rPointNumber) override;
231 
232 
236  void CalculateAlphaRotationMatrix( const Matrix& rPreviousRotationMatrix,
237  const Matrix& rCurrentRotationMatrix,
238  Matrix& rAlphaRotationMatrix,
239  Matrix& rAlphaRotationMatrixAsterisk,
240  double Alpha);
241 
242 
246  virtual void CalculateCurrentStrainResultantsVector(ElementDataType& rVariables,
247  Vector& rCurrentStrainResultantsVector,
248  double Alpha);
249 
253  virtual void CalculateCurrentCurvatureVector(ElementDataType& rVariables,
254  Vector& rCurrentCurvatureVector,
255  double Alpha);
256 
260  void CalculateConstitutiveMatrix(ElementDataType& rVariables) override;
261 
265  virtual void CalculateStrainResultants(Vector& rStrainResultants, ElementDataType& rVariables, double alpha);
266 
270  virtual void CalculateStrainCouples(Vector& rStrainCouples, ElementDataType& rVariables, double alpha);
271 
272 
276  void CalculateStressResultants(ElementDataType& rVariables, const unsigned int& rPointNumber) override;
277 
278 
282  void CalculateAndAddKuug(MatrixType& rLeftHandSideMatrix,
283  ElementDataType& rVariables,
284  double& rIntegrationWeight) override;
285 
286 
290  void CalculateAndAddKuuf(MatrixType& rLeftHandSideMatrix,
291  ElementDataType& rVariables,
292  double& rIntegrationWeight) override;
293 
294 
295 
299  void CalculateAndAddFollowerForces(VectorType& rRightHandSideVector,
300  ElementDataType& rVariables,
301  double& rIntegrationWeight) override;
302 
303 
307  void CalculateAndAddInertiaLHS(MatrixType& rLeftHandSideMatrix,
308  ElementDataType& rVariables,
309  const ProcessInfo& rCurrentProcessInfo,
310  double& rIntegrationWeight) override;
311 
312 
316  void CalculateAndAddInertiaRHS(VectorType& rRightHandSideVector,
317  ElementDataType& rVariables,
318  const ProcessInfo& rCurrentProcessInfo,
319  double& rIntegrationWeight) override;
320 
324  void CalculateDifferentialOperator(MatrixType& rDifferentialOperator,
325  ElementDataType& rVariables,
326  const int& rNode,
327  double alpha) override;
328 
332  void CalculateRotationLinearPartTensor(Vector& rRotationVector, Matrix& rRotationTensor) override;
333 
334 
338  void CalculateStrainEnergy(double& rEnergy, ElementDataType& rVariables, const ProcessInfo& rCurrentProcessInfo, double& rIntegrationWeight) override;
339 
350 
351 private:
352 
371  friend class Serializer;
372 
373 
374  // A private default constructor necessary for serialization
375 
376 
377  void save(Serializer& rSerializer) const override;
378 
379  void load(Serializer& rSerializer) override;
380 
387 
388 
389 }; // Class LargeDisplacementBeamEMCElement
390 
391 } // namespace Kratos.
392 #endif // KRATOS_LARGE_DISPLACEMENT_BEAM_EMC_ELEMENT_H_INCLUDED defined
Definition: beam_math_utilities.hpp:31
Definition: constitutive_law.h:47
StressMeasure
Definition: constitutive_law.h:69
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
std::size_t SizeType
Definition: geometry_data.h:173
Beam Element for 3D space dimension.
Definition: large_displacement_beam_emc_element.hpp:49
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: large_displacement_beam_emc_element.hpp:59
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: large_displacement_beam_emc_element.hpp:155
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: large_displacement_beam_emc_element.hpp:57
Quaternion< double > QuaternionType
Type definition for quaternion.
Definition: large_displacement_beam_emc_element.hpp:65
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(LargeDisplacementBeamEMCElement)
Counted pointer of LargeDisplacementBeamEMCElement.
BeamMathUtils< double > BeamMathUtilsType
Type definition for beam utilities.
Definition: large_displacement_beam_emc_element.hpp:63
std::vector< Vector > mCurrentStrainResultantsVector
Definition: large_displacement_beam_emc_element.hpp:176
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: large_displacement_beam_emc_element.hpp:149
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: large_displacement_beam_emc_element.hpp:61
LargeDisplacementBeamElement::ElementDataType ElementDataType
Type for element variables.
Definition: large_displacement_beam_emc_element.hpp:69
ConstitutiveLaw ConstitutiveLawType
Definition: large_displacement_beam_emc_element.hpp:55
GeometryData::SizeType SizeType
Type for size.
Definition: large_displacement_beam_emc_element.hpp:67
LargeDisplacementBeamEMCElement()
Definition: large_displacement_beam_emc_element.hpp:187
std::vector< Vector > mPreviousStrainResultantsVector
Definition: large_displacement_beam_emc_element.hpp:181
std::string Info() const override
Turn back information as a string.
Definition: large_displacement_beam_emc_element.hpp:141
Beam Element for 3D space dimension Simo Displacement-Rotation Geometrically Exact Rod element.
Definition: large_displacement_beam_element.hpp:48
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
Matrix MatrixType
Definition: geometrical_transformation_utilities.h:55
double CalculateStrainEnergy(Element &rElement)
Definition: mpm_energy_calculation_utility.cpp:89
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
void InitializeSolutionStep(ConstructionUtility &rThisUtil, std::string ThermalSubModelPartName, std::string MechanicalSubModelPartName, std::string HeatFluxSubModelPartName, std::string HydraulicPressureSubModelPartName, bool thermal_conditions, bool mechanical_conditions, int phase)
Definition: add_custom_utilities_to_python.cpp:45
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
alpha
Definition: generate_convection_diffusion_explicit_element.py:113
def load(f)
Definition: ode_solve.py:307
def Alpha(n, j)
Definition: quadrature.py:93
Definition: beam_element.hpp:123