85 const double Z = 0.0);
98 template <std::
size_t ArraySize>
99 class VectorFunction :
public std::array<FunctionType::Pointer,ArraySize>
109 for (std::size_t
i=0;
i<ArraySize; ++
i) {
110 const std::string function_string = ExtractFunctionBody(rFunctions.
GetArrayItem(
i));
111 this->at(
i) = std::make_shared<GenericFunctionUtility>(function_string);
117 VectorFunction(
const VectorFunction<ArraySize>& rOther) =
default;
119 array_1d<double,ArraySize> operator()(
const double x,
129 array_1d<double,ArraySize>
output;
131 for (std::size_t
i=0;
i<ArraySize; ++
i) {
132 output[
i] = this->at(
i)->CallFunction(
x,
y,
z,
t, X, Y, Z);
145 VectorFunction<3> mReferencePointFunction;
147 VectorFunction<3> mTranslationVectorFunction;
150 std::function<Quaternion<double>(
const double,
const double,
const double,
const double,
const double,
const double,
const double)> mQuaternionFunction;
153 Quaternion<double> mQuaternion;
GenericFunctionUtility.
Definition: function_parser_utility.h:208
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
Parameters GetArrayItem(const IndexType Index)
This method returns an array item given an index.
Definition: kratos_parameters.cpp:1020
bool IsArray() const
This method checks if the parameter is an array.
Definition: kratos_parameters.cpp:576
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_ERROR_IF_NOT(conditional)
Definition: exception.h:163
z
Definition: GenerateWind.py:163
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
axis
Definition: all_t_win_vs_m_fixed_error.py:239
parameters
Definition: fluid_chimera_analysis.py:35
y
Other simbols definition.
Definition: generate_axisymmetric_navier_stokes_element.py:54
output
Definition: generate_frictional_mortar_condition.py:444
int t
Definition: ode_solve.py:392
x
Definition: sensitivityMatrix.py:49
integer i
Definition: TensorModule.f:17