|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Explicit function manager. More...
Typedefs | |
| using | IntVec = std::vector< int > |
| Convenience type alias. More... | |
| using | RealVec = std::vector< double > |
| Convenience type alias. More... | |
Functions | |
| double | getValue (int baseID, const IntVec &intVars, const RealVec &realVars, const double x, int &ierr) |
| Evaluates an explicit function. More... | |
| double | getValue (int baseID, int fType, int extrap, const RealVec &realVars, const double x, int &ierr) |
| Evaluates an explicit function. More... | |
| double | getDerivative (int baseID, int fType, int extrap, const RealVec &realVars, const double x, int &ierr) |
| Evaluates the derivative of an explicit function. More... | |
| int | getSmartPoints (int funcType, int extrap, const double start, const double stop, const RealVec &realVars, RealVec &xtofill, RealVec &ytofill) |
| Finds the so-called smart points of an explicit function. More... | |
| int | getTypeID (const std::string &functionType) |
| Returns the function type ID for a given functionType name. More... | |
| bool | initWaveFunction (const std::string &fileName, const int nWave, const int rSeed, RealVec &realVars) |
| Initializes parameters for a wave function from given file. More... | |
| bool | initWaveFunction (const int iop, const int nWave, const int nDir, const int sprExp, const int rSeed, RealVec &realVars) |
| Initializes parameters for a wave function from a wave spectrum. More... | |
| bool | initWaveFunction (const int iop, const double g, double d, RealVec &realVars) |
| Initializes parameters for a non-linear wave function. More... | |
| bool | initWaveFunction (const int iop, const int nWave, const int rSeed, const double g, const double d, IntVec &intVars, RealVec &realVars) |
| Initializes parameters for an embedded non-linear wave function. More... | |
| double | getWaveValue (const RealVec &realVars, const double g, const double d, const FaVec3 &x, const double t, int iop=0) |
| Evaluates a wave profile function. More... | |
| double | getWaveValue (const IntVec &intVars, const RealVec &realVars, const double g, const double d, const FaVec3 &x, const double t, int iop=0) |
| Evaluates a wave profile function. More... | |
| double | getWaveValue (const IntVec &intVars, const RealVec &realVars, const double g, const double d, const FaVec3 &x, const double t, FaVec3 &v, FaVec3 &a, int iop=0) |
| Evaluates a wave profile including velocity and acceleration. More... | |
Explicit function manager.
| using FFaFunctionManager::IntVec = typedef std::vector<int> |
Convenience type alias.
| using FFaFunctionManager::RealVec = typedef std::vector<double> |
Convenience type alias.
| double FFaFunctionManager::getDerivative | ( | int | baseID, |
| int | fType, | ||
| int | extrap, | ||
| const RealVec & | realVars, | ||
| const double | x, | ||
| int & | ierr | ||
| ) |
Evaluates the derivative of an explicit function.
| [in] | baseID | base ID of the function to be evaluated |
| [in] | fType | Function type identifier |
| [in] | extrap | Extrapolation flag |
| [in] | realVars | Real function parameters |
| [in] | x | Function argument |
| [out] | ierr | Error flag |
| int FFaFunctionManager::getSmartPoints | ( | int | funcType, |
| int | extrap, | ||
| const double | start, | ||
| const double | stop, | ||
| const RealVec & | realVars, | ||
| RealVec & | xtofill, | ||
| RealVec & | ytofill | ||
| ) |
Finds the so-called smart points of an explicit function.
| [in] | funcType | Function type identifier |
| [in] | extrap | Extrapolation flag |
| [in] | start | Start argument value of the function domain to consider |
| [in] | stop | Stop argument value of the function domain to consider |
| [in] | realVars | Real function parameters |
| [out] | xtofill | Function argument values of the smart points |
| [out] | ytofill | Function values of the smart points |
| int FFaFunctionManager::getTypeID | ( | const std::string & | functionType | ) |
Returns the function type ID for a given functionType name.
| double FFaFunctionManager::getValue | ( | int | baseID, |
| const IntVec & | intVars, | ||
| const RealVec & | realVars, | ||
| const double | x, | ||
| int & | ierr | ||
| ) |
Evaluates an explicit function.
| [in] | baseID | base ID of the function to be evaluated |
| [in] | intVars | Integer function parameters |
| [in] | realVars | Real function parameters |
| [in] | x | Function argument |
| [out] | ierr | Error flag |
| double FFaFunctionManager::getValue | ( | int | baseID, |
| int | fType, | ||
| int | extrap, | ||
| const RealVec & | realVars, | ||
| const double | x, | ||
| int & | ierr | ||
| ) |
Evaluates an explicit function.
| [in] | baseID | base ID of the function to be evaluated |
| [in] | fType | Function type identifier |
| [in] | extrap | Extrapolation flag |
| [in] | realVars | Real function parameters |
| [in] | x | Function argument |
| [out] | ierr | Error flag |
| double FFaFunctionManager::getWaveValue | ( | const IntVec & | intVars, |
| const RealVec & | realVars, | ||
| const double | g, | ||
| const double | d, | ||
| const FaVec3 & | x, | ||
| const double | t, | ||
| FaVec3 & | v, | ||
| FaVec3 & | a, | ||
| int | iop = 0 |
||
| ) |
Evaluates a wave profile including velocity and acceleration.
| [in] | intVars | Integer wave function parameters |
| [in] | realVars | Real wave function parameters |
| [in] | g | Gravity constant |
| [in] | d | Water depth |
| [in] | x | Position to evaluate wave profile at |
| [in] | t | Time to evaluate wave profile at |
| [out] | v | Water particle velocity |
| [out] | a | Water particle acceleration |
| [in] | iop | Wave model option |
| double FFaFunctionManager::getWaveValue | ( | const IntVec & | intVars, |
| const RealVec & | realVars, | ||
| const double | g, | ||
| const double | d, | ||
| const FaVec3 & | x, | ||
| const double | t, | ||
| int | iop = 0 |
||
| ) |
Evaluates a wave profile function.
| [in] | intVars | Integer wave function parameters |
| [in] | realVars | Real wave function parameters |
| [in] | g | Gravity constant |
| [in] | d | Water depth |
| [in] | x | Position to evaluate wave profile at |
| [in] | t | Time to evaluate wave profile at |
| [in] | iop | Wave model option |
| double FFaFunctionManager::getWaveValue | ( | const RealVec & | realVars, |
| const double | g, | ||
| const double | d, | ||
| const FaVec3 & | x, | ||
| const double | t, | ||
| int | iop = 0 |
||
| ) |
Evaluates a wave profile function.
| [in] | realVars | Real wave function parameters |
| [in] | g | Gravity constant |
| [in] | d | Water depth |
| [in] | x | Position to evaluate wave profile at |
| [in] | t | Time to evaluate wave profile at |
| [in] | iop | Wave model option |
| bool FFaFunctionManager::initWaveFunction | ( | const int | iop, |
| const double | g, | ||
| double | d, | ||
| RealVec & | realVars | ||
| ) |
Initializes parameters for a non-linear wave function.
| [in] | iop | Wave model option |
| [in] | g | Gravity constant |
| [in] | d | Water depth |
| [out] | realVars | Real wave function parameters |
| bool FFaFunctionManager::initWaveFunction | ( | const int | iop, |
| const int | nWave, | ||
| const int | nDir, | ||
| const int | sprExp, | ||
| const int | rSeed, | ||
| RealVec & | realVars | ||
| ) |
Initializes parameters for a wave function from a wave spectrum.
| [in] | iop | Wave spectrum model |
| [in] | nWave | Number of wave components to generate |
| [in] | nDir | Number of wave directions |
| [in] | sprExp | Wave spreading exponent |
| [in] | rSeed | Seed for (pseudo-)random phase shift |
| [out] | realVars | Real wave function parameters |
| bool FFaFunctionManager::initWaveFunction | ( | const int | iop, |
| const int | nWave, | ||
| const int | rSeed, | ||
| const double | g, | ||
| const double | d, | ||
| IntVec & | intVars, | ||
| RealVec & | realVars | ||
| ) |
Initializes parameters for an embedded non-linear wave function.
| [in] | iop | Wave model option |
| [in] | nWave | Number of wave components |
| [in] | rSeed | Seed for (pseudo-)random phase shift |
| [in] | g | Gravity constant |
| [in] | d | Water depth |
| [out] | intVars | Integer wave function parameters |
| [out] | realVars | Real wave function parameters |
| bool FFaFunctionManager::initWaveFunction | ( | const std::string & | fileName, |
| const int | nWave, | ||
| const int | rSeed, | ||
| RealVec & | realVars | ||
| ) |
Initializes parameters for a wave function from given file.
| [in] | fileName | Name of file to read parameters from |
| [in] | nWave | Number of wave components to read |
| [in] | rSeed | Seed for (pseudo-)random phase shift |
| [out] | realVars | Real wave function parameters |