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.
hyperbolic_tangential_porosity_solution_and_body_force_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: Joaquin Gonzalez-Usua
11 //
12 //
13 
14 #ifndef KRATOS_HYPERBOLIC_TANGENTIAL_POROSITY_SOLUTION_AND_BODY_FORCE_PROCESS_H
15 #define KRATOS_HYPERBOLIC_TANGENTIAL_POROSITY_SOLUTION_AND_BODY_FORCE_PROCESS_H
16 
17 // System includes
18 #include <string>
19 #include <iostream>
20 
21 // External includes
22 
23 // Project includes
24 #include "includes/define.h"
25 #include "processes/process.h"
27 
28 // Application includes
29 
30 
31 namespace Kratos
32 {
35 
38 
42 
46 
50 
54 
55 class KRATOS_API(SWIMMING_DEM_APPLICATION) HyperbolicTangentialPorositySolutionAndBodyForceProcess : public Process
56 {
57 public:
60 
63 
67 
71  ModelPart& rModelPart);
72 
75  ModelPart& rModelPart,
76  Parameters& rParameters);
77 
80  Model& rModel,
81  Parameters& rParameters);
82 
85 
87 
89  double mDensity;
90  double mViscosity;
91  double mPermeability;
92  double mUchar;
93  double mLength;
94  double mMeanAlpha;
95  double mMinAlpha;
96  double mHeight;
99  double mMaxGradAlpha;
105 
108 
109  void Execute() override;
110 
111  void ExecuteInitialize() override;
112 
113  void ExecuteBeforeSolutionLoop() override;
114 
115  void ExecuteInitializeSolutionStep() override;
116 
117  void ExecuteFinalizeSolutionStep() override;
118 
122 
123  void CheckDefaultsAndProcessSettings(Parameters &rParameters);
124 
125  const Parameters GetDefaultParameters() const override;
126 
127  void CalculatePermeability(double &dynamic_viscosity);
128 
129  void CalculateFunctionParameters();
130 
131  void SetInitialBodyForceAndPorosityField();
132 
133  void SetFluidProperties();
134 
138 
142 
146 
148  std::string Info() const override
149  {
150  std::stringstream buffer;
151  buffer << "HyperbolicTangentialPorositySolutionAndBodyForceProcess" ;
152  return buffer.str();
153  }
154 
156  void PrintInfo(std::ostream& rOStream) const override {rOStream << "HyperbolicTangentialPorositySolutionAndBodyForceProcess";}
157 
159  void PrintData(std::ostream& rOStream) const override {}
160 
161 
165 
167 
168 private:
171 
175 
178 
182 
186 
187 
191 
192 
196 
198 
200 
203 
204 }; // Class HyperbolicTangentialPorositySolutionAndBodyForceProcess
205 
209 
213 
215 
217 
218 }; // namespace Kratos.
219 
220 #endif // KRATOS_HYPERBOLIC_TANGENTIAL_POROSITY_SOLUTION_AND_BODY_FORCE_PROCESS_H
void ExecuteFinalizeSolutionStep() override
this function will be executed at every time step AFTER performing the solve phase
Definition: periodic_interface_process.hpp:55
void ExecuteInitialize() override
Definition: periodic_interface_process.hpp:37
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:56
std::string Info() const override
Turn back information as a string.
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:148
bool mAlternativeFormulation
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:103
double mMeanAlpha
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:94
double mViscosity
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:90
double mPermeability
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:91
double mDamKohlerNumber
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:98
double mFirstParameter
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:100
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:159
double mDensity
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:89
double mSecondParameter
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:101
double mReynoldsNumber
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:97
double mMaxGradAlpha
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:99
double mMinAlpha
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:95
double mUchar
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:92
double mLength
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:93
bool mInitialConditions
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:102
ModelPart & mrModelPart
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:88
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:156
KRATOS_CLASS_POINTER_DEFINITION(HyperbolicTangentialPorositySolutionAndBodyForceProcess)
Pointer definition of HyperbolicTangentialPorositySolutionAndBodyForceProcess.
double mHeight
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:96
~HyperbolicTangentialPorositySolutionAndBodyForceProcess() override
Destructor.
Definition: hyperbolic_tangential_porosity_solution_and_body_force_process.h:84
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
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