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_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_BODY_FORCE_PROCESS_H
15 #define KRATOS_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) PorositySolutionAndBodyForceProcess : 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 
110 
114 
118 
120  std::string Info() const override
121  {
122  std::stringstream buffer;
123  buffer << "PorositySolutionAndBodyForceProcess" ;
124  return buffer.str();
125  }
126 
128  void PrintInfo(std::ostream& rOStream) const override {rOStream << "PorositySolutionAndBodyForceProcess";}
129 
131  void PrintData(std::ostream& rOStream) const override {}
132 
134  double mDensity;
135  double mViscosity;
137  double mAlpha;
138  double mUchar;
141 
142 
146 
147  void CheckDefaultsAndProcessSettings(Parameters &rParameters);
148 
149  const Parameters GetDefaultParameters() const override;
150 
151  void SetInitialBodyForceAndPorosityField();
152 
154 
155  void SetFluidProperties();
159 
161 
162 private:
165 
169 
172 
176 
180 
181 
185 
186 
190 
192 
194 
197 
198 }; // Class PorositySolutionAndBodyForceProcess
199 
203 
207 
209 
211 
212 }; // namespace Kratos.
213 
214 #endif // KRATOS_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
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_body_force_process.h:56
ModelPart & mrModelPart
Definition: porosity_solution_and_body_force_process.h:133
bool mInitialConditions
Definition: porosity_solution_and_body_force_process.h:139
std::string Info() const override
Turn back information as a string.
Definition: porosity_solution_and_body_force_process.h:120
double mAlpha
Definition: porosity_solution_and_body_force_process.h:137
double mPermeability
Definition: porosity_solution_and_body_force_process.h:136
KRATOS_CLASS_POINTER_DEFINITION(PorositySolutionAndBodyForceProcess)
Pointer definition of PorositySolutionAndBodyForceProcess.
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: porosity_solution_and_body_force_process.h:128
double mViscosity
Definition: porosity_solution_and_body_force_process.h:135
bool mAlternativeFormulation
Definition: porosity_solution_and_body_force_process.h:140
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: porosity_solution_and_body_force_process.h:131
~PorositySolutionAndBodyForceProcess() override
Destructor.
Definition: porosity_solution_and_body_force_process.h:84
double mUchar
Definition: porosity_solution_and_body_force_process.h:138
double mDensity
Definition: porosity_solution_and_body_force_process.h:134
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