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.
rans_clip_scalar_variable_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_RANS_CLIP_SCALAR_VARIABLE_PROCESS_H_INCLUDED)
14 #define KRATOS_RANS_CLIP_SCALAR_VARIABLE_PROCESS_H_INCLUDED
15 
16 // System includes
17 #include <string>
18 
19 // External includes
20 
21 // Project includes
22 #include "containers/model.h"
23 
24 // Application includes
26 
27 namespace Kratos
28 {
31 
34 
42 class KRATOS_API(RANS_APPLICATION) RansClipScalarVariableProcess
44 {
45 public:
48 
51 
55 
57 
59  Model& rModel,
60  Parameters rParameters);
61 
63  ~RansClipScalarVariableProcess() override = default;
64 
67 
70 
74 
75  int Check() override;
76 
77  void Execute() override;
78 
80  {
81  Execute();
82  }
83 
84  const Parameters GetDefaultParameters() const override;
85 
89 
91  std::string Info() const override;
92 
94  void PrintInfo(std::ostream& rOStream) const override;
95 
97  void PrintData(std::ostream& rOStream) const override;
98 
100 
101 private:
104 
105  Model& mrModel;
106 
107  std::string mModelPartName;
108  std::string mVariableName;
109  int mEchoLevel;
110 
111  double mMinValue;
112  double mMaxValue;
113 
115 };
116 
120 
122 inline std::ostream& operator<<(
123  std::ostream& rOStream,
124  const RansClipScalarVariableProcess& rThis);
125 
127 
129 
130 } // namespace Kratos.
131 
132 #endif // KRATOS_RANS_CLIP_SCALAR_VARIABLE_PROCESS_H_INCLUDED defined
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
Clips given scalar variable to a range.
Definition: rans_clip_scalar_variable_process.h:44
~RansClipScalarVariableProcess() override=default
Destructor.
RansClipScalarVariableProcess(RansClipScalarVariableProcess const &rOther)=delete
Copy constructor.
RansClipScalarVariableProcess & operator=(RansClipScalarVariableProcess const &rOther)=delete
Assignment operator.
void ExecuteAfterCouplingSolveStep() override
The method is called after executing a coupling solve step.
Definition: rans_clip_scalar_variable_process.h:79
KRATOS_CLASS_POINTER_DEFINITION(RansClipScalarVariableProcess)
Pointer definition of RansClipScalarVariableProcess.
This class is extending standard Process interface.
Definition: rans_formulation_process.h:41
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