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.
compute_y_plus_process.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Suneth Warnakulasuriya
11 //
12 
13 #if !defined(KRATOS_COMPUTE_Y_PLUS_PROCESS_H_INCLUDED)
14 #define KRATOS_COMPUTE_Y_PLUS_PROCESS_H_INCLUDED
15 
16 // System includes
17 #include <string>
18 
19 // External includes
20 
21 // Project includes
22 #include "containers/model.h"
23 #include "includes/model_part.h"
24 #include "includes/condition.h"
25 #include "processes/process.h"
26 
27 namespace Kratos
28 {
31 
34 
35 class KRATOS_API(FLUID_DYNAMICS_APPLICATION) ComputeYPlusProcess : public Process
36 {
37 public:
40 
41  using IndexType = std::size_t;
42 
44 
46 
48 
51 
55 
58  Model& rModel,
59  Parameters rParameters);
60 
62  ~ComputeYPlusProcess() override = default;
63 
66 
68  ComputeYPlusProcess(ComputeYPlusProcess const& rOther) = delete;
69 
73 
74  int Check() override;
75 
76  void ExecuteInitializeSolutionStep() override;
77 
78  void ExecuteFinalizeSolutionStep() override;
79 
80  const Parameters GetDefaultParameters() const override;
81 
85 
87  std::string Info() const override;
88 
90  void PrintInfo(std::ostream& rOStream) const override;
91 
93  void PrintData(std::ostream& rOStream) const override;
94 
96 
97 private:
100 
101  Model& mrModel;
102 
103  std::string mModelPartName;
104  std::string mOutputVariableName;
105  bool mIsOutputStoredInElements;
106  bool mIsCalculatedEveryTimeStep;
107  int mEchoLevel;
108 
109  bool mIsNormalsCalculated;
110 
112 
113 }; // Class ComputeYPlusProcess
114 
118 
120 inline std::ostream& operator<<(
121  std::ostream& rOStream,
122  const ComputeYPlusProcess& rThis);
123 
125 
127 
128 } // namespace Kratos.
129 
130 #endif // KRATOS_COMPUTE_Y_PLUS_PROCESS_H_INCLUDED defined
void ExecuteFinalizeSolutionStep() override
this function will be executed at every time step AFTER performing the solve phase
Definition: periodic_interface_process.hpp:55
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Definition: compute_y_plus_process.h:36
ComputeYPlusProcess & operator=(ComputeYPlusProcess const &rOther)=delete
Assignment operator.
ComputeYPlusProcess(ComputeYPlusProcess const &rOther)=delete
Copy constructor.
KRATOS_CLASS_POINTER_DEFINITION(ComputeYPlusProcess)
Pointer definition of ComputeYPlusProcess.
ModelPart::ConditionsContainerType ConditionsContainerType
Definition: compute_y_plus_process.h:47
~ComputeYPlusProcess() override=default
Destructor.
Base class for all Conditions.
Definition: condition.h:59
std::size_t IndexType
Definition: flags.h:74
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
Node NodeType
Definition: model_part.h:117
Condition ConditionType
Definition: model_part.h:121
This class defines the node.
Definition: node.h:65
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
The base class for all processes in Kratos.
Definition: process.h:49
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432