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.
deactivate_conditions_on_inactive_elements_process.hpp
Go to the documentation of this file.
1 // KRATOS___
2 // // ) )
3 // // ___ ___
4 // // ____ //___) ) // ) )
5 // // / / // // / /
6 // ((____/ / ((____ ((___/ / MECHANICS
7 //
8 // License: geo_mechanics_application/license.txt
9 //
10 // Main authors: Vahid Galavi
11 //
12 
13 #pragma once
14 
15 // Project includes
16 #include "includes/model_part.h"
17 #include "processes/process.h"
18 
19 namespace Kratos
20 {
23 
24 
28 
36 class KRATOS_API(GEO_MECHANICS_APPLICATION) DeactivateConditionsOnInactiveElements
37  : public Process
38 {
39 public:
42 
45 
49 
51 
55  mrModelPart(rModelPart)
56  {
57  }
58 
62 
66 
68  void operator()()
69  {
70  Execute();
71  }
72 
76 
78  void Execute() override;
79 
83 
84 
88 
89 
93 
95  std::string Info() const override
96  {
97  return "DeactivateConditionsOnInactiveElements";
98  }
99 
101  void PrintData(std::ostream& rOStream) const override
102  {
103  this->PrintInfo(rOStream);
104  }
105 
106 
110 
112 
113 private:
116 
120 
121  ModelPart& mrModelPart;
122 
126 
130 
132 
133 }; // Class Process
134 
136 
139 
143 
144 
146 inline std::istream& operator >> (std::istream& rIStream,
148 
150 inline std::ostream& operator << (std::ostream& rOStream,
152 {
153  rThis.PrintInfo(rOStream);
154  rOStream << std::endl;
155  rThis.PrintData(rOStream);
156 
157  return rOStream;
158 }
160 
161 }
Deactivate a condition if all elements attached to that are inactive.
Definition: deactivate_conditions_on_inactive_elements_process.hpp:38
std::string Info() const override
Turn back information as a string.
Definition: deactivate_conditions_on_inactive_elements_process.hpp:95
DeactivateConditionsOnInactiveElements(ModelPart &rModelPart)
Constructor for DeactivateConditionsOnInactiveElements Process.
Definition: deactivate_conditions_on_inactive_elements_process.hpp:54
~DeactivateConditionsOnInactiveElements() override=default
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: deactivate_conditions_on_inactive_elements_process.hpp:101
DeactivateConditionsOnInactiveElements(const DeactivateConditionsOnInactiveElements &)=delete
KRATOS_CLASS_POINTER_DEFINITION(DeactivateConditionsOnInactiveElements)
Pointer definition of Process.
void operator()()
This operator is provided to call the process as a function and simply calls the Execute method.
Definition: deactivate_conditions_on_inactive_elements_process.hpp:68
DeactivateConditionsOnInactiveElements & operator=(DeactivateConditionsOnInactiveElements &)=delete
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
The base class for all processes in Kratos.
Definition: process.h:49
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: process.h:204
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