100 return Kratos::make_shared<BasicGenericFunctionUtility>(*
this);
118 return mDependsOnSpace;
125 std::string FunctionBody();
137 virtual double RotateAndCallFunction(
142 const double X = 0.0,
143 const double Y = 0.0,
162 const double X = 0.0,
163 const double Y = 0.0,
175 std::vector<te_expr*> mpTinyExpr = std::vector<te_expr*>(1,
nullptr);
178 bool mDependsOnSpace =
true;
187 void InitializeParser();
229 const std::string& rFunctionBody,
249 return Kratos::make_shared<GenericFunctionUtility>(*
this);
258 return mUseLocalSystem;
271 double RotateAndCallFunction(
276 const double X = 0.0,
277 const double Y = 0.0,
288 bool mUseLocalSystem =
false;
312 : mParser(rFunctionBody)
327 return [&](
const double x,
const double y,
const double z) ->
double {
return mParser.CallFunction(
x,
y,
z,0.0);};
337 return [&](
const double x,
const double y,
const double z,
const double t) ->
double {
return mParser.CallFunction(
x,
y,
z,
t);};
347 return [&](
const double x,
const double y,
const double z,
const double t,
const double X,
const double Y,
const double Z) ->
double {
return mParser.CallFunction(
x,
y,
z,
t,
X,
Y,
Z);};;
This function allows to call a function method of type f(x, y, z, t) implemented in python style.
Definition: function_parser_utility.h:63
bool DependsOnSpace()
This method returns if it depends on space.
Definition: function_parser_utility.h:116
std::size_t IndexType
The index type definition.
Definition: function_parser_utility.h:69
std::string mFunctionBody
The function parser.
Definition: function_parser_utility.h:176
KRATOS_CLASS_POINTER_DEFINITION(BasicGenericFunctionUtility)
Counted pointer of BasicGenericFunctionUtility.
virtual bool UseLocalSystem()
This method returns if it depends on space.
Definition: function_parser_utility.h:107
Pointer Clone()
This method clones the current function instance.
Definition: function_parser_utility.h:98
GenericFunctionUtility.
Definition: function_parser_utility.h:302
std::function< double(const double, const double, const double, const double, const double, const double, const double)> GetFunctionInitialCoordinates()
This method parses a string into a std::function.
Definition: function_parser_utility.h:345
FunctionParser(const std::string &rFunctionBody)
Default constructor.
Definition: function_parser_utility.h:311
std::function< double(const double, const double, const double)> GetFunctionSpace()
This method parses a string into a std::function.
Definition: function_parser_utility.h:325
std::function< double(const double, const double, const double, const double)> GetFunction()
This method parses a string into a std::function.
Definition: function_parser_utility.h:335
GenericFunctionUtility.
Definition: function_parser_utility.h:208
std::size_t IndexType
The index type definition.
Definition: function_parser_utility.h:214
KRATOS_CLASS_POINTER_DEFINITION(GenericFunctionUtility)
Counted pointer of GenericFunctionUtility.
~GenericFunctionUtility() override
Destructor.
Definition: function_parser_utility.h:237
bool UseLocalSystem() override
This method returns if it depends on space.
Definition: function_parser_utility.h:256
Pointer Clone()
This method clones the current function instance.
Definition: function_parser_utility.h:247
Definition: amatrix_interface.h:41
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
z
Definition: GenerateWind.py:163
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
TABLE_NUMBER_ANGULAR_VELOCITY TABLE_NUMBER_MOMENT I33 BEAM_INERTIA_ROT_UNIT_LENGHT_Y KRATOS_DEFINE_APPLICATION_VARIABLE(DEM_APPLICATION, double, BEAM_INERTIA_ROT_UNIT_LENGHT_Z) typedef std double
Definition: DEM_application_variables.h:182
y
Other simbols definition.
Definition: generate_axisymmetric_navier_stokes_element.py:54
int t
Definition: ode_solve.py:392
x
Definition: sensitivityMatrix.py:49