FEDEM Solver  R8.0
Source code of the dynamics solver
Functions
FFaFunctionProperties Namespace Reference

Explicit function properties. More...

Functions

int getTypeID (const std::string &functionType)
 Returns the function type ID for a given functionType name. More...
 
int getSmartPoints (int funcType, double start, double stop, int extrap, const std::vector< double > &realVars, std::vector< double > &x, std::vector< double > &y)
 Finds the so-called smart points of an explicit function. More...
 
int getValue (int baseID, const std::vector< int > &intVars, const std::vector< double > &realVars, double x, double &value)
 Evaluates an explicit function. More...
 

Detailed Description

Explicit function properties.

Function Documentation

◆ getSmartPoints()

int FFaFunctionProperties::getSmartPoints ( int  funcType,
double  start,
double  stop,
int  extrap,
const std::vector< double > &  realVars,
std::vector< double > &  x,
std::vector< double > &  y 
)

Finds the so-called smart points of an explicit function.

Parameters
[in]funcTypeFunction type identifier
[in]startStart argument value of the function domain to consider
[in]stopStop argument value of the function domain to consider
[in]extrapExtrapolation flag
[in]realVarsReal function parameters
[out]xFunction argument values of the smart points
[out]yFunction values of the smart points

◆ getTypeID()

int FFaFunctionProperties::getTypeID ( const std::string &  functionType)

Returns the function type ID for a given functionType name.

◆ getValue()

int FFaFunctionProperties::getValue ( int  baseID,
const std::vector< int > &  intVars,
const std::vector< double > &  realVars,
double  x,
double &  value 
)

Evaluates an explicit function.

Parameters
[in]baseIDbase ID of the function to be evaluated
[in]intVarsInteger function parameters
[in]realVarsReal function parameters
[in]xFunction argument
[out]valueThe function value