![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <solver.h>
Public Types | |
typedef void(* | pOutFun )(Solver *Sol, void *OutDat) |
Pointer to output function. | |
Public Member Functions | |
Solver (Domain &Dom, SDPair const &Flags, pOutFun OutFun=NULL, void *OutDat=NULL, pOutFun DbgFun=NULL, void *DbgDat=NULL) | |
Allocate solver object. | |
virtual | ~Solver () |
virtual void | Solve (size_t NInc=1, char const *FileKey=NULL) |
Solve quasi-static problem. | |
virtual void | DynSolve (double tf, double dt, double dtOut, char const *FileKey=NULL) |
Solve dynamic problem. | |
virtual String | Name () const =0 |
double | Timestep (int i, int a=7, double L=100.0, int sch=0, double m=2.0) const |
Calculate nonlinear steps. | |
Public Attributes | |
Domain & | Dom |
Domain. | |
pOutFun | OutFun |
Output function (called during output) | |
void * | OutDat |
Debug data (to be used with either OutFun or DbgFun) | |
pOutFun | DbgFun |
Debug function (called everytime for some internal (update) methods) | |
void * | DbgDat |
Debug data (to be used with either OutFun or DbgFun) |
typedef void(* FEM::Solver::pOutFun)(Solver *Sol, void *OutDat) |
Pointer to output function.
FEM::Solver::Solver | ( | Domain & | Dom, |
SDPair const & | Flags, | ||
pOutFun | OutFun = NULL , |
||
void * | OutDat = NULL , |
||
pOutFun | DbgFun = NULL , |
||
void * | DbgDat = NULL |
||
) | [inline] |
Allocate solver object.
virtual FEM::Solver::~Solver | ( | ) | [inline, virtual] |
virtual void FEM::Solver::DynSolve | ( | double | tf, |
double | dt, | ||
double | dtOut, | ||
char const * | FileKey = NULL |
||
) | [inline, virtual] |
Solve dynamic problem.
Reimplemented in FEM::STDSolver.
virtual String FEM::Solver::Name | ( | ) | const [pure virtual] |
Implemented in FEM::STDSolver, and FEM::UWPSolver.
virtual void FEM::Solver::Solve | ( | size_t | NInc = 1 , |
char const * | FileKey = NULL |
||
) | [inline, virtual] |
Solve quasi-static problem.
Reimplemented in FEM::STDSolver.
double FEM::Solver::Timestep | ( | int | i, |
int | a = 7 , |
||
double | L = 100.0 , |
||
int | sch = 0 , |
||
double | m = 2.0 |
||
) | const [inline] |
Calculate nonlinear steps.
void* FEM::Solver::DbgDat |
Debug data (to be used with either OutFun or DbgFun)
Debug function (called everytime for some internal (update) methods)
void* FEM::Solver::OutDat |
Debug data (to be used with either OutFun or DbgFun)
Output function (called during output)