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_transient_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_TRANSIENT_BODY_FORCE_PROCESS_H
15 #define KRATOS_HYPERBOLIC_TANGENTIAL_POROSITY_SOLUTION_TRANSIENT_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) HyperbolicTangentialPorositySolutionTransientBodyForceProcess : 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 SetBodyForceAndPorosityField();
134 
135  void SetFluidProperties();
136 
140 
144 
148 
150  std::string Info() const override
151  {
152  std::stringstream buffer;
153  buffer << "HyperbolicTangentialPorositySolutionTransientBodyForceProcess" ;
154  return buffer.str();
155  }
156 
158  void PrintInfo(std::ostream& rOStream) const override {rOStream << "HyperbolicTangentialPorositySolutionTransientBodyForceProcess";}
159 
161  void PrintData(std::ostream& rOStream) const override {}
162 
163 
167 
169 
170 private:
173 
177 
180 
184 
188 
189 
193 
194 
198 
200 
202 
205 
206 }; // Class HyperbolicTangentialPorositySolutionTransientBodyForceProcess
207 
211 
215 
217 
219 
220 }; // namespace Kratos.
221 
222 #endif // KRATOS_HYPERBOLIC_TANGENTIAL_POROSITY_SOLUTION_TRANSIENT_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_transient_body_force_process.h:56
~HyperbolicTangentialPorositySolutionTransientBodyForceProcess() override
Destructor.
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:84
double mHeight
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:96
double mMinAlpha
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:95
double mViscosity
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:90
double mDamKohlerNumber
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:98
double mMaxGradAlpha
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:99
bool mAlternativeFormulation
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:103
double mDensity
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:89
double mUchar
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:92
ModelPart & mrModelPart
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:88
double mLength
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:93
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:158
double mPermeability
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:91
std::string Info() const override
Turn back information as a string.
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:150
double mFirstParameter
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:100
double mMeanAlpha
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:94
double mReynoldsNumber
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:97
double mSecondParameter
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:101
KRATOS_CLASS_POINTER_DEFINITION(HyperbolicTangentialPorositySolutionTransientBodyForceProcess)
Pointer definition of HyperbolicTangentialPorositySolutionTransientBodyForceProcess.
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:161
bool mInitialConditions
Definition: hyperbolic_tangential_porosity_solution_transient_body_force_process.h:102
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