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.
python_function_callback_utility.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ \.
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Riccardo Rossi
11 // Collaborator: Vicente Mataix Ferrandiz
12 //
13 
14 #if !defined(KRATOS_PYTHON_FUNCTION_CALLBACK_UTILITY_H_INCLUDED)
15 #define KRATOS_PYTHON_FUNCTION_CALLBACK_UTILITY_H_INCLUDED
16 
17 // System includes
18 
19 // External includes
20 
21 // Project includes
23 
24 namespace Kratos
25 {
28 
32 
36 
40 
44 
67  : public GenericFunctionUtility
68 {
69 public:
72 
74  typedef std::size_t IndexType;
75 
78 
82 
89  const std::string& rFunctionBody,
90  Parameters LocalSystem = Parameters{}
91  ) : GenericFunctionUtility(rFunctionBody, LocalSystem)
92  {
93  KRATOS_WARNING("PythonGenericFunctionUtility") << "This is a legacy class. Please use GenericFunctionUtility" << std::endl;
94  }
95 
96 };
97 
98 }
99 
100 #endif // KRATOS_PYTHON_FUNCTION_CALLBACK_UTILITY_H_INCLUDED
GenericFunctionUtility.
Definition: function_parser_utility.h:208
GenericFunctionUtility(const std::string &rFunctionBody, Parameters LocalSystem=Parameters{})
Default constructor.
Definition: function_parser_utility.cpp:255
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
This function allows to call a function method of type f(x, y, z, t) implemented in python.
Definition: python_function_callback_utility.h:68
PythonGenericFunctionUtility(const std::string &rFunctionBody, Parameters LocalSystem=Parameters{})
Default constructor.
Definition: python_function_callback_utility.h:88
std::size_t IndexType
The index type definition.
Definition: python_function_callback_utility.h:74
KRATOS_CLASS_POINTER_DEFINITION(PythonGenericFunctionUtility)
Counted pointer of PythonGenericFunctionUtility.
#define KRATOS_WARNING(label)
Definition: logger.h:265
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21