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::FunctionParser Class Reference

GenericFunctionUtility. More...

#include <function_parser_utility.h>

Collaboration diagram for Kratos::FunctionParser:

Public Member Functions

Life Cycle
 FunctionParser (const std::string &rFunctionBody)
 Default constructor. More...
 
Operations
std::function< double(const double, const double, const double)> GetFunctionSpace ()
 This method parses a string into a std::function. More...
 
std::function< double(const double, const double, const double, const double)> GetFunction ()
 This method parses a string into a std::function. More...
 
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. More...
 

Detailed Description

GenericFunctionUtility.

This class parses a string as a std::function

Author
Vicente Mataix Ferrandiz

Constructor & Destructor Documentation

◆ FunctionParser()

Kratos::FunctionParser::FunctionParser ( const std::string &  rFunctionBody)
inline

Default constructor.

Parameters
rFunctionBodyThe string defining the function

Member Function Documentation

◆ GetFunction()

std::function<double(const double, const double, const double, const double)> Kratos::FunctionParser::GetFunction ( )
inline

This method parses a string into a std::function.

This is the version with 4 arguments (x,y,z,t)

Parameters
rFunctionBodyThe string defining the function

◆ GetFunctionInitialCoordinates()

std::function<double(const double, const double, const double, const double, const double, const double, const double)> Kratos::FunctionParser::GetFunctionInitialCoordinates ( )
inline

This method parses a string into a std::function.

This is the version with 7 arguments (x,y,z,t)

Parameters
rFunctionBodyThe string defining the function

◆ GetFunctionSpace()

std::function<double(const double, const double, const double)> Kratos::FunctionParser::GetFunctionSpace ( )
inline

This method parses a string into a std::function.

This is the version with 3 arguments (x,y,z)

Parameters
rFunctionBodyThe string defining the function

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