![]() |
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.
|
This function applies a givn function to its nodes calling GenericFunctionUtility. More...
#include <apply_function_to_nodes_utility.h>
Public Member Functions | |
Life Cycle | |
| ApplyFunctionToNodesUtility (ModelPart::NodesContainerType &rNodes, GenericFunctionUtility::Pointer pFunction) | |
| Default constructor. More... | |
Operations | |
| void | ApplyFunction (const Variable< double > &rVariable, const double t) |
| This method applies the function for a given variable at a certain time. More... | |
| std::vector< double > | ReturnFunction (const double t) |
| This method returns all the evaluated values in a given time. More... | |
Type definitions | |
| typedef std::size_t | IndexType |
| The index type definition. More... | |
| KRATOS_CLASS_POINTER_DEFINITION (ApplyFunctionToNodesUtility) | |
| Counted pointer of ApplyFunctionToNodesUtility. More... | |
This function applies a givn function to its nodes calling GenericFunctionUtility.
The functions can be constructed by providing a python-defined method of the type
| typedef std::size_t Kratos::ApplyFunctionToNodesUtility::IndexType |
The index type definition.
|
inline |
Default constructor.
| rNodes | The nodes where to set the values |
| pFunction | The function to set |
| void Kratos::ApplyFunctionToNodesUtility::ApplyFunction | ( | const Variable< double > & | rVariable, |
| const double | t | ||
| ) |
This method applies the function for a given variable at a certain time.
| rVariable | The variable type |
| t | The time variable |
| Kratos::ApplyFunctionToNodesUtility::KRATOS_CLASS_POINTER_DEFINITION | ( | ApplyFunctionToNodesUtility | ) |
Counted pointer of ApplyFunctionToNodesUtility.
This method returns all the evaluated values in a given time.
| t | The time variable |