AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
sdt.h
1// An AdH SuperModel
2#ifndef H_SDT_
3#define H_SDT_
4
5/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
6/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
7typedef struct {
8 double dt, dt_old, dt_err, dt_prev;
9 double t_init, t_prev, t_final;
10 double tau_temporal;
11 double time;
12 int nt; // current time-step
13 int t_adpt_flag;
14 int ientry_out;
15 bool green_ampt;
16} SDT;
17
18/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
19/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
20// Methods
21void sdt_init(SDT *t);
22void sdt_check_units(int uin, int uout);
23int sdt_get_conversion_factor(int units,int direct);
24
25/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
26/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
27#endif
void sdt_init(SDT *t)
Intializes a SDT structure.
Definition: sdt.c:20
int sdt_get_conversion_factor(int units, int direct)
Calculated time-unit conversation factor.
Definition: sdt.c:50
void sdt_check_units(int uin, int uout)
Checks user input/output time units.
Definition: sdt.c:109
Definition: sdt.h:7