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.
porosity_solution_and_sinusoidal_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_POROSITY_SOLUTION_AND_SINUSOIDAL_BODY_FORCE_PROCESS_H
15 #define KRATOS_POROSITY_SOLUTION_AND_SINUSOIDAL_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) PorositySolutionAndSinusoidalBodyForceProcess : 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 
92 
93  void Execute() override;
94 
95  void ExecuteInitialize() override;
96 
97  void ExecuteBeforeSolutionLoop() override;
98 
99  void ExecuteInitializeSolutionStep() override;
100 
101  void ExecuteFinalizeSolutionStep() override;
102 
106 
107  void CheckDefaultsAndProcessSettings(Parameters &rParameters);
108 
109  const Parameters GetDefaultParameters() const override;
110 
111  void CalculateKinematicViscosity();
112 
113  void CalculatePermeability(double &dynamic_viscosity);
114 
115  void SetInitialBodyForceAndPorosityField();
116 
117  void SetFluidProperties();
118 
119  bool IsInsideEllipticalSupport(
120  const double x1,
121  const double x2,
122  const double c,
123  const double R);
124 
128 
132 
136 
138  std::string Info() const override
139  {
140  std::stringstream buffer;
141  buffer << "PorositySolutionAndSinusoidalBodyForceProcess" ;
142  return buffer.str();
143  }
144 
146  void PrintInfo(std::ostream& rOStream) const override {rOStream << "PorositySolutionAndSinusoidalBodyForceProcess";}
147 
149  void PrintData(std::ostream& rOStream) const override {}
150 
152  double mDensity;
153  double mViscosity;
155  double mUchar;
156  double mDeltaAlpha;
157  double mLength;
159  double mOmega;
161  double mNSafety;
162  double mX1Origin;
163  double mX2Origin;
171 
173 
174 private:
177 
181 
184 
188 
192 
193 
197 
198 
202 
204 
206 
209 
210 }; // Class PorositySolutionAndSinusoidalBodyForceProcess
211 
215 
219 
221 
223 
224 }; // namespace Kratos.
225 
226 #endif // KRATOS_POROSITY_SOLUTION_AND_SINUSOIDAL_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
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
Definition: porosity_solution_and_sinusoidal_body_force_process.h:56
~PorositySolutionAndSinusoidalBodyForceProcess() override
Destructor.
Definition: porosity_solution_and_sinusoidal_body_force_process.h:84
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: porosity_solution_and_sinusoidal_body_force_process.h:146
double mUchar
Definition: porosity_solution_and_sinusoidal_body_force_process.h:155
std::string Info() const override
Turn back information as a string.
Definition: porosity_solution_and_sinusoidal_body_force_process.h:138
double mLength
Definition: porosity_solution_and_sinusoidal_body_force_process.h:157
double mDamKohlerNumber
Definition: porosity_solution_and_sinusoidal_body_force_process.h:165
double mViscosity
Definition: porosity_solution_and_sinusoidal_body_force_process.h:153
double mDeltaAlpha
Definition: porosity_solution_and_sinusoidal_body_force_process.h:156
double mOmega
Definition: porosity_solution_and_sinusoidal_body_force_process.h:159
double mSqueezeAmplitude
Definition: porosity_solution_and_sinusoidal_body_force_process.h:160
double mPermeability
Definition: porosity_solution_and_sinusoidal_body_force_process.h:154
double mX2Origin
Definition: porosity_solution_and_sinusoidal_body_force_process.h:163
double mNSafety
Definition: porosity_solution_and_sinusoidal_body_force_process.h:161
double mReynoldsNumber
Definition: porosity_solution_and_sinusoidal_body_force_process.h:164
double mDensity
Definition: porosity_solution_and_sinusoidal_body_force_process.h:152
ModelPart & mrModelPart
Definition: porosity_solution_and_sinusoidal_body_force_process.h:151
bool mInitialConditions
Definition: porosity_solution_and_sinusoidal_body_force_process.h:166
double mMaxSqueezeFraction
Definition: porosity_solution_and_sinusoidal_body_force_process.h:158
bool mAlternativeFormulation
Definition: porosity_solution_and_sinusoidal_body_force_process.h:167
double mX1Origin
Definition: porosity_solution_and_sinusoidal_body_force_process.h:162
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: porosity_solution_and_sinusoidal_body_force_process.h:149
KRATOS_CLASS_POINTER_DEFINITION(PorositySolutionAndSinusoidalBodyForceProcess)
Pointer definition of PorositySolutionAndSinusoidalBodyForceProcess.
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
x2
Definition: generate_frictional_mortar_condition.py:122
x1
Definition: generate_frictional_mortar_condition.py:121
c
Definition: generate_weakly_compressible_navier_stokes_element.py:108
R
Definition: isotropic_damage_automatic_differentiation.py:172