#include <ctlinterface.h>
Public Member Functions | |
| Ctlinterface (const std::string &input, const std::vector< double > ¶ms) | |
| Constructor. | |
| Ctlinterface (const std::string &input) | |
| Constructor. | |
| Ctlinterface () | |
| void | get_residual (const std::vector< double > ¶ms, const std::vector< double > &state, const unsigned int niter, std::vector< double > &residual) const |
| Method to get the residual. | |
| void | get_state (std::vector< double > &state) const |
| Method to get state/result/response (after method "solve"). | |
| void | set_params (const std::vector< double > ¶ms) |
| Method to set parameters. | |
| int | solve () |
| Method to solve/simulate the specified problem. | |
| ~Ctlinterface () | |
Definition at line 8 of file ctlinterface.h.
| Ctlinterface | ( | ) |
Definition at line 12 of file connectsifel.cpp.
| Ctlinterface | ( | const std::string & | input | ) |
| Ctlinterface | ( | const std::string & | input, | |
| const std::vector< double > & | params | |||
| ) |
Constructor.
| input | path to input file. | |
| params | parameters. |
Definition at line 66 of file ctlinterface.cpp.
| ~Ctlinterface | ( | ) |
The function performs a cleanup of the TRFEL global variables and it closes opened files.
Created 6.12.2012 by Tomas Koudelka, koudelka@cml.fsv.cvut.cz
Definition at line 72 of file connectsifel.cpp.
References Outt.
| void get_residual | ( | const std::vector< double > & | params, | |
| const std::vector< double > & | state, | |||
| const unsigned int | niter, | |||
| std::vector< double > & | residual | |||
| ) | const |
Method to get the residual.
| params | parameters. these parameters come form outside, e.g. material parameters | |
| state | state. comes from outside, it contains e.g. displacements, temperatures, | |
| niter | number of iterations for preconditioned residual (0=residual). | |
| residual | residual. |
Definition at line 216 of file ctlinterface.cpp.
References timecontr::endtime(), lhsrhst::give_lhs(), stochdrivert::importvalues(), timecontr::initialtimeincr(), Lsrst, Ndoft, residuum(), timecontr::starttime(), Stt, subv(), probdesct::timecont, and Tp.
| void get_state | ( | std::vector< double > & | state | ) | const |
Method to get state/result/response (after method "solve").
| state | state/result/response. |
Definition at line 176 of file connectsifel.cpp.
| void set_params | ( | const std::vector< double > & | params | ) |
Method to set parameters.
| params | parameters. |
Definition at line 110 of file connectsifel.cpp.
| int solve | ( | ) |
Method to solve/simulate the specified problem.
| nstep | - number of performed steps |
adaptivity
Definition at line 121 of file connectsifel.cpp.
References timecontr::actualbacktimeincr(), probdesct::adaptivityflag, Adat, approximation(), timecontr::endtime(), timecontr::initialtimeincr(), np_glob_vec::istep, timecontr::newtime(), nonlinear_nonstationary_problem, nonstat_solver_init(), nonstationary_problem, one_step_linear(), one_step_nonlinear(), adaptivityt::run(), probdesct::time, probdesct::timecont, Tp, and probdesct::tprob.
1.6.2