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.
codina_manufactured_field.h
Go to the documentation of this file.
1 #ifndef KRATOS_CODINA_MANUFACTURED_FIELD_H
2 #define KRATOS_CODINA_MANUFACTURED_FIELD_H
3 
4 #include "real_functions.h"
5 #include "real_field.h"
6 
7 namespace Kratos
8 {
10 {
11 public:
12 
14 
16 
18 
20 
22 
23 //***************************************************************************************************************
24 //***************************************************************************************************************
25 
26 double Evaluate(const double time, const array_1d<double, 3>& coor)
27 {
28  return 0.0;
29 }
30 
31 //***************************************************************************************************************
32 //***************************************************************************************************************
33 
34 double CalculateTimeDerivative(const double time, const array_1d<double, 3>& coor)
35 {
36  return 0.0;
37 }
38 
39 //***************************************************************************************************************
40 //***************************************************************************************************************
41 
42 void CalculateGradient(const double time, const array_1d<double, 3>& coor, array_1d<double, 3>& gradient){}
43 void CalculateLaplacian(const double time, const array_1d<double, 3>& coor, array_1d<double, 3>& laplacian){}
44 
45 //***************************************************************************************************************
46 //***************************************************************************************************************
47 
51 
52 
56 
58 
59 virtual std::string Info() const
60 {
61 return "";
62 }
63 
65 
66 virtual void PrintInfo(std::ostream& rOStream) const
67 {
68 }
69 
71 
72 virtual void PrintData(std::ostream& rOStream) const
73 {
74 }
75 
76 
80 
82 
83 protected:
86 
87 
91 
92 
96 
97 
101 
102 
106 
110 
111 
115 
116 
118 
119 private:
120 
123 
124 
128 RealFunction mF;
129 RealFunction mG;
130 RealField& mAlpha;
134 
138 
139 
143 
144 
148 
149 
153 
155 CodinaManufacturedField & operator=(CodinaManufacturedField const& rOther);
156 
157 
159 
160 }; // Class CodinaManufacturedField
161 
163 
166 
167 
171 
172 } // namespace Kratos.
173 
174 
175 #endif // KRATOS_CODINA_MANUFACTURED_FIELD_H
Definition: codina_manufactured_field.h:10
virtual ~CodinaManufacturedField()
Destructor.
Definition: codina_manufactured_field.h:21
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: codina_manufactured_field.h:72
void CalculateLaplacian(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &laplacian)
Definition: codina_manufactured_field.h:43
KRATOS_CLASS_POINTER_DEFINITION(CodinaManufacturedField)
CodinaManufacturedField(const RealField &alpha)
Default constructor.
Definition: codina_manufactured_field.h:17
double CalculateTimeDerivative(const double time, const array_1d< double, 3 > &coor)
Definition: codina_manufactured_field.h:34
void CalculateGradient(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &gradient)
Definition: codina_manufactured_field.h:42
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: codina_manufactured_field.h:66
virtual std::string Info() const
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: codina_manufactured_field.h:59
double Evaluate(const double time, const array_1d< double, 3 > &coor)
Definition: codina_manufactured_field.h:26
Definition: real_field.h:29
Definition: real_functions.h:27
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
time
Definition: face_heat.py:85
alpha
Definition: generate_convection_diffusion_explicit_element.py:113
def Alpha(n, j)
Definition: quadrature.py:93