#include "math.h"#include "mex.h"#include "string.h"#include "hydro_source/hydro_includes.h"#include "CVODEincludes.h"#include "f.h"Include dependency graph for f.cpp:

Go to the source code of this file.
Defines | |
| #define | pi 3.141592653589793 |
| #define | PI 3.141592653589793 |
| #define | Ith(v, i) NV_Ith_S(v,i-1) |
| #define | IJth(A, i, j) DENSE_ELEM(A,i-1,j-1) |
| #define | NEQ 12 |
| #define | T0 RCONST(0.0) |
Functions | |
| static int | f (realtype t, N_Vector y, N_Vector ydot, void *f_data) |
Wrap function for solver f for computing of in . | |
| void | solver_init (ODE_data *f_dat) |
| Solver initialisation. | |
| void | solve_ODE (ODE_data *f_dat, realtype tout) |
| ODE solving. | |
| void | solver_free (ODE_data *f_dat) |
| Free solver memory. | |
in
and stuff related to the ODE solver (initialisation, solving, closing)
Definition in file f.cpp.
|
|
|
|
|
Definition at line 39 of file f.cpp. Referenced by f(), solver_init(), and store_state(). |
|
|
Definition at line 44 of file f.cpp. Referenced by solver_init(). |
|
|
|
|
|
Definition at line 32 of file f.cpp. Referenced by aero_coeff_control(), data_init(), data_update_param(), fillWaveLuts(), wave_z_compute(), Wcos(), and Wsin(). |
|
|
|
|
||||||||||||||||||||
|
Wrap function for solver f for computing of This function makes the bridge between the Sundials ODE-solver and the evaluation function compute_state_dot()
Definition at line 63 of file f.cpp. References compute_state_dot(), ODE_data::d, data_update_state(), datas::ddq, datas::dphi, datas::dpsi, datas::dtheta, datas::dx, datas::dy, datas::dz, Ith, ODE_data::P, and ODE_data::state. Referenced by Draw_sea(), DrawGLScene(), fillWaveLuts(), Girouette_draw(), HSlider_draw(), InitGL(), joystick_getXYZR(), one_normal(), RelativeWind_draw(), ReSizeGLScene(), Sail_create_and_draw(), Target_draw(), toc(), VSlider_draw(), wave_z_compute(), and Wsin(). |
|
||||||||||||
|
ODE solving.
Solve the ODE from current time up to
Definition at line 233 of file f.cpp. References ODE_data::CumulNumOfSteps, ODE_data::cvode_mem, ODE_data::d, ODE_data::flag, store_state(), datas::t, ODE_data::time_param, and ODE_data::y. Referenced by mexFunction(). |
|
|
Free solver memory. Free solver memory
Definition at line 255 of file f.cpp. References ODE_data::cvode_mem, and ODE_data::y. Referenced by mexFunction(). |
|
|
Solver initialisation.
Solver initialisation
Definition at line 154 of file f.cpp. References ODE_data::abstol, ODE_data::cvode_mem, Ith, NEQ, ODE_data::state, and ODE_data::y. Referenced by mexFunction(). |
1.4.6-NO