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.
alm_fast_init_process.h
Go to the documentation of this file.
1 // KRATOS ______ __ __ _____ __ __ __
2 // / ____/___ ____ / /_____ ______/ /_/ ___// /________ _______/ /___ ___________ _/ /
3 // / / / __ \/ __ \/ __/ __ `/ ___/ __/\__ \/ __/ ___/ / / / ___/ __/ / / / ___/ __ `/ /
4 // / /___/ /_/ / / / / /_/ /_/ / /__/ /_ ___/ / /_/ / / /_/ / /__/ /_/ /_/ / / / /_/ / /
5 // \____/\____/_/ /_/\__/\__,_/\___/\__//____/\__/_/ \__,_/\___/\__/\__,_/_/ \__,_/_/ MECHANICS
6 //
7 // License: BSD License
8 // license: ContactStructuralMechanicsApplication/license.txt
9 //
10 // Main authors: Vicente Mataix Ferrandiz
11 //
12 
13 #pragma once
14 
15 // System includes
16 
17 // External includes
18 
19 // Project includes
20 #include "processes/process.h"
21 #include "includes/model_part.h"
22 
23 namespace Kratos
24 {
27 
31 
35 
39 
55 class KRATOS_API(CONTACT_STRUCTURAL_MECHANICS_APPLICATION) ALMFastInit
56  : public Process
57 {
58 public:
61 
64 
67 
70 
73 
77 
79  ALMFastInit( ModelPart& rThisModelPart):mrThisModelPart(rThisModelPart)
80  {
81  KRATOS_TRY;
82 
83  KRATOS_CATCH("");
84  }
85 
87  ~ALMFastInit() override = default;
88 
92 
96 
100 
104 
108 
109  void operator()()
110  {
111  Execute();
112  }
113 
117 
118  void Execute() override;
119 
123 
127 
131 
133  std::string Info() const override
134  {
135  return "ALMFastInit";
136  }
137 
139  void PrintInfo(std::ostream& rOStream) const override
140  {
141  rOStream << "ALMFastInit";
142  }
143 
145  void PrintData(std::ostream& rOStream) const override
146  {
147  }
148 
150 private:
153 
154 
158 
159  ModelPart& mrThisModelPart;
160 
164 
168 
172 
176 
180 
182  ALMFastInit& operator=(ALMFastInit const& rOther) = delete;
183 
185  //ALMFastInit(ALMFastInit const& rOther);
186 
188 
189 }; // Class ALMFastInit
190 
192 
195 
199 
201 inline std::istream& operator >> (std::istream& rIStream,
202  ALMFastInit& rThis);
203 
205 inline std::ostream& operator << (std::ostream& rOStream,
206  const ALMFastInit& rThis)
207 {
208  rThis.PrintInfo(rOStream);
209  rOStream << std::endl;
210  rThis.PrintData(rOStream);
211 
212  return rOStream;
213 }
214 
215 }
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
This process initializes the variables related with the ALM.
Definition: alm_fast_init_process.h:57
KRATOS_CLASS_POINTER_DEFINITION(ALMFastInit)
Pointer definition of ALMFastInit.
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: alm_fast_init_process.h:139
void operator()()
Definition: alm_fast_init_process.h:109
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: alm_fast_init_process.h:145
~ALMFastInit() override=default
Destructor.
std::string Info() const override
Turn back information as a string.
Definition: alm_fast_init_process.h:133
ModelPart::ConditionsContainerType ConditionsArrayType
Conditions array type definition.
Definition: alm_fast_init_process.h:72
ModelPart::NodesContainerType NodesArrayType
Nodes array type definition.
Definition: alm_fast_init_process.h:69
ALMFastInit(ModelPart &rThisModelPart)
Default constructor.
Definition: alm_fast_init_process.h:79
Geometry base class.
Definition: geometry.h:71
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
The base class for all processes in Kratos.
Definition: process.h:49
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
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