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.
constant_velocity_field.h
Go to the documentation of this file.
1 #if !defined(KRATOS_CONSTANT_VELOCITY_FIELD_H)
2 #define KRATOS_CONSTANT_VELOCITY_FIELD_H
3 
4 // /* External includes */
5 
6 // System includes
7 
8 // Project includes
9 #include "includes/variables.h"
10 
11 /* System includes */
12 #include <limits>
13 #include <iostream>
14 #include <iomanip>
15 
16 /* External includes */
17 #ifdef _OPENMP
18 #include <omp.h>
19 #endif
20 
21 /* Project includes */
22 #include "includes/define.h"
23 #include "utilities/openmp_utils.h"
24 #include "real_functions.h"
25 #include "velocity_field.h"
26 
27 
28 namespace Kratos
29 {
30 class KRATOS_API(SWIMMING_DEM_APPLICATION) ConstantVelocityField : public VelocityField
31 {
32 public:
33 
35 
37 
38 ConstantVelocityField():VelocityField(), mVx(0.0), mVy(0.0), mVz(0.0) {}
39 
40 ConstantVelocityField(const double vx, const double vy, const double vz):VelocityField(), mVx(vx), mVy(vy), mVz(vz) {}
41 
42 
45 
46 
47 void Evaluate(const double time, const array_1d<double, 3>& coor, array_1d<double, 3>& vector, const int i_thread) override;
48 
49 
50 virtual std::string Info() const override
51 {
52  return "";
53 }
54 
56 virtual void PrintInfo(std::ostream& rOStream) const override {}
57 
59 virtual void PrintData(std::ostream& rOStream) const override {}
60 
61 
62 
63 protected:
64 
65 
66 
67 private:
68 
69 double mVx;
70 double mVy;
71 double mVz;
72 
75 
76 }; // Class ConstantVelocityField
77 
78 
79 } // namespace Kratos.
80 
81 #endif // KRATOS_CONSTANT_VELOCITY_FIELD_H defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constant_velocity_field.h:31
ConstantVelocityField()
Default constructor.
Definition: constant_velocity_field.h:38
virtual ~ConstantVelocityField()
Destructor.
Definition: constant_velocity_field.h:44
virtual std::string Info() const override
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: constant_velocity_field.h:50
KRATOS_CLASS_POINTER_DEFINITION(ConstantVelocityField)
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: constant_velocity_field.h:56
ConstantVelocityField(const double vx, const double vy, const double vz)
Definition: constant_velocity_field.h:40
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: constant_velocity_field.h:59
Definition: velocity_field.h:32
double Evaluate(const PolynomialType &rPolynomial, double x)
Definition: polynomial_utilities.cpp:77
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
time
Definition: face_heat.py:85