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.
List of all members
Kratos::ApplyFunctionToNodesUtility Class Reference

This function applies a givn function to its nodes calling GenericFunctionUtility. More...

#include <apply_function_to_nodes_utility.h>

Collaboration diagram for Kratos::ApplyFunctionToNodesUtility:

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< doubleReturnFunction (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...
 

Detailed Description

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

Author
Riccardo Rossi

Member Typedef Documentation

◆ IndexType

The index type definition.

Constructor & Destructor Documentation

◆ ApplyFunctionToNodesUtility()

Kratos::ApplyFunctionToNodesUtility::ApplyFunctionToNodesUtility ( ModelPart::NodesContainerType rNodes,
GenericFunctionUtility::Pointer  pFunction 
)
inline

Default constructor.

Parameters
rNodesThe nodes where to set the values
pFunctionThe function to set

Member Function Documentation

◆ ApplyFunction()

void Kratos::ApplyFunctionToNodesUtility::ApplyFunction ( const Variable< double > &  rVariable,
const double  t 
)

This method applies the function for a given variable at a certain time.

Parameters
rVariableThe variable type
tThe time variable

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::ApplyFunctionToNodesUtility::KRATOS_CLASS_POINTER_DEFINITION ( ApplyFunctionToNodesUtility  )

Counted pointer of ApplyFunctionToNodesUtility.

◆ ReturnFunction()

std::vector< double > Kratos::ApplyFunctionToNodesUtility::ReturnFunction ( const double  t)

This method returns all the evaluated values in a given time.

Parameters
tThe time variable

The documentation for this class was generated from the following files: