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.
bump_transient_porosity_solution_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_BUMP_TRANSIENT_POROSITY_SOLUTION_BODY_FORCE_PROCESS_H
15 #define KRATOS_BUMP_TRANSIENT_POROSITY_SOLUTION_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) BumpTransientPorositySolutionBodyForceProcess : 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 mDeltaAlpha;
94  double mLength;
96  double mOmega;
98  double mNSafety;
99  double mX1Origin;
100  double mX2Origin;
106 
109 
110  void Execute() override;
111 
112  void ExecuteInitialize() override;
113 
114  void ExecuteBeforeSolutionLoop() override;
115 
116  void ExecuteInitializeSolutionStep() override;
117 
118  void ExecuteFinalizeSolutionStep() override;
119 
123 
124  void CheckDefaultsAndProcessSettings(Parameters &rParameters);
125 
126  const Parameters GetDefaultParameters() const override;
127 
128  void CalculateKinematicViscosity();
129 
130  void CalculatePermeability(double &dynamic_viscosity);
131 
132  void SetInitialBodyForceAndPorosityField();
133 
134  void SetBodyForceAndPorosityField();
135 
136  void SetFluidProperties();
137 
138  bool IsInsideEllipticalSupport(
139  const double x1,
140  const double x2,
141  const double c,
142  const double R);
143 
147 
151 
155 
157  std::string Info() const override
158  {
159  std::stringstream buffer;
160  buffer << "BumpBumpTransientPorositySolutionBodyForceProcess" ;
161  return buffer.str();
162  }
163 
165  void PrintInfo(std::ostream& rOStream) const override {rOStream << "BumpTransientPorositySolutionBodyForceProcess";}
166 
168  void PrintData(std::ostream& rOStream) const override {}
169 
170 
174 
176 
177 private:
180 
184 
187 
191 
195 
196 
200 
201 
205 
207 
209 
212 
213 }; // Class BumpBumpTransientPorositySolutionBodyForceProcess
214 
218 
222 
224 
226 
227 }; // namespace Kratos.
228 
229 #endif // KRATOS_BUMP_TRANSIENT_POROSITY_SOLUTION_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: bump_transient_porosity_solution_body_force_process.h:56
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: bump_transient_porosity_solution_body_force_process.h:165
double mDamKohlerNumber
Definition: bump_transient_porosity_solution_body_force_process.h:102
~BumpTransientPorositySolutionBodyForceProcess() override
Destructor.
Definition: bump_transient_porosity_solution_body_force_process.h:84
bool mInitialConditions
Definition: bump_transient_porosity_solution_body_force_process.h:103
double mMaxSqueezeFraction
Definition: bump_transient_porosity_solution_body_force_process.h:95
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: bump_transient_porosity_solution_body_force_process.h:168
double mSqueezeAmplitude
Definition: bump_transient_porosity_solution_body_force_process.h:97
double mOmega
Definition: bump_transient_porosity_solution_body_force_process.h:96
ModelPart & mrModelPart
Definition: bump_transient_porosity_solution_body_force_process.h:88
double mDensity
Definition: bump_transient_porosity_solution_body_force_process.h:89
double mNSafety
Definition: bump_transient_porosity_solution_body_force_process.h:98
double mX2Origin
Definition: bump_transient_porosity_solution_body_force_process.h:100
double mReynoldsNumber
Definition: bump_transient_porosity_solution_body_force_process.h:101
KRATOS_CLASS_POINTER_DEFINITION(BumpTransientPorositySolutionBodyForceProcess)
Pointer definition of BumpTransientPorositySolutionBodyForceProcess.
double mPermeability
Definition: bump_transient_porosity_solution_body_force_process.h:91
std::string Info() const override
Turn back information as a string.
Definition: bump_transient_porosity_solution_body_force_process.h:157
double mLength
Definition: bump_transient_porosity_solution_body_force_process.h:94
double mDeltaAlpha
Definition: bump_transient_porosity_solution_body_force_process.h:93
double mViscosity
Definition: bump_transient_porosity_solution_body_force_process.h:90
double mX1Origin
Definition: bump_transient_porosity_solution_body_force_process.h:99
bool mAlternativeFormulation
Definition: bump_transient_porosity_solution_body_force_process.h:104
double mUchar
Definition: bump_transient_porosity_solution_body_force_process.h:92
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
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