1 #if !defined(KRATOS_ETHIR_FLOW_FIELD_H)
2 #define KRATOS_ETHIR_FLOW_FIELD_H
51 KRATOS_ERROR_IF(period <= 0.0) <<
"The period must be non-negative." << std::endl;
87 virtual std::string
Info()
const override
94 virtual void PrintInfo(std::ostream& rOStream)
const override
100 virtual void PrintData(std::ostream& rOStream)
const override
128 double U0(
const int i_thread = 0)
override;
132 double U0D0(
const int i_thread = 0)
override;
133 double U0D1(
const int i_thread = 0)
override;
134 double U0D2(
const int i_thread = 0)
override;
138 double U0D0D0(
const int i_thread = 0)
override;
139 double U0D0D1(
const int i_thread = 0)
override;
140 double U0D0D2(
const int i_thread = 0)
override;
141 double U0D1D1(
const int i_thread = 0)
override;
142 double U0D1D2(
const int i_thread = 0)
override;
143 double U0D2D2(
const int i_thread = 0)
override;
176 std::vector<int> mCoordinatesAreUpToDate;
177 std::vector<double> mSin0;
178 std::vector<double> mCos0;
179 std::vector<double> mSin1;
180 std::vector<double> mCos1;
181 std::vector<double> mSin2;
182 std::vector<double> mCos2;
Definition: amatrix_interface.h:41
static int GetNumThreads()
Returns the current number of threads.
Definition: parallel_utilities.cpp:34
Definition: product_of_sines_field.h:32
double U0D0(const int i_thread=0) override
Definition: product_of_sines_field.cpp:73
double U0D1(const int i_thread=0) override
Definition: product_of_sines_field.cpp:77
void LockCoordinates(const int i_thread=0) override
Definition: product_of_sines_field.cpp:54
double U0D2D2(const int i_thread=0) override
Definition: product_of_sines_field.cpp:107
ProductOfSines()
Default constructor.
Definition: product_of_sines_field.h:39
ProductOfSines(const double period)
Definition: product_of_sines_field.h:46
double U0D1D1(const int i_thread=0) override
Definition: product_of_sines_field.cpp:99
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: product_of_sines_field.h:100
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: product_of_sines_field.h:94
double U0D0D1(const int i_thread=0) override
Definition: product_of_sines_field.cpp:91
virtual ~ProductOfSines()
Destructor.
Definition: product_of_sines_field.h:59
void UnlockCoordinates(const int i_thread=0) override
Definition: product_of_sines_field.cpp:59
void UpdateCoordinates(const double time, const array_1d< double, 3 > &coor, const int i_thread=0) override
Definition: product_of_sines_field.cpp:20
double U0D1D2(const int i_thread=0) override
Definition: product_of_sines_field.cpp:103
virtual std::string Info() const override
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: product_of_sines_field.h:87
void ResizeVectorsForParallelism(const int n_threads) override
Definition: product_of_sines_field.cpp:6
double U0(const int i_thread=0) override
Definition: product_of_sines_field.cpp:66
double U0D0D2(const int i_thread=0) override
Definition: product_of_sines_field.cpp:95
double U0D2(const int i_thread=0) override
Definition: product_of_sines_field.cpp:81
double U0D0D0(const int i_thread=0) override
Definition: product_of_sines_field.cpp:87
KRATOS_CLASS_POINTER_DEFINITION(ProductOfSines)
Definition: velocity_field.h:32
#define KRATOS_ERROR_IF(conditional)
Definition: exception.h:162
constexpr double Pi
Definition: global_variables.h:25
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
time
Definition: face_heat.py:85