AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
sseries.h
1#ifndef H_SSERIES_
2#define H_SSERIES_
3
4/***********************************************************/
5/***********************************************************/
6/* stores wind time-series data */
7typedef struct {
8 double time; /* time */
9 double *area; /* an array of nvalue areas */
10 double *slope; /* an array of nvalue slope */
11 double *value; /* an array of nvalue values */
13
14/***********************************************************/
15/***********************************************************/
16
17/* an xy time-series node for a linked list */
18typedef struct sts {
19 int id; /* series id */
20 int size; /* the number of items in the series */
21 int type; /* the type of series */
22 int nvalues; /* the number of values on entry line */
23 int nnodes; /* the number of 2d grid nodes for node contribution */
24 int mat_id; /* material id associated with series (for water sourcing in 2d) */
25 double infact; /* conversion factor to seconds */
26 double outfact; /* conversion factor from seconds */
27 double tol; /* the tolerance of the series */
28 double *ivalue; /* current interpolation values */
29 SMETEOR_STATION *station; /* meteorologic station tied to the series if there is one */
30 SSERIES_ENTRY *entry; /* an array of series entries */
31 struct sts *next; /* next item in linked list */
32 struct sts *prev; /* previous item in linked list */
33
34} SSERIES;
35
36/*********************************************************/
37/* struct methods -------------------------------------- */
38
39
40void sseries_entry_init(SSERIES_ENTRY *);
41void sseries_init(SSERIES *);
42void sseries_alloc(SSERIES **, int, int, int);
43void sseries_free(SSERIES *);
44void sseries_cpy(SSERIES *, SSERIES *);
45void sseries_copy_entry(SSERIES_ENTRY *, SSERIES_ENTRY, int);
46void sseries_check(SSERIES);
47void sseries_checklist(int, SSERIES *);
48void sseries_printScreen(SSERIES, int);
49void sseries_printScreen_list(int, SSERIES *);
50SSERIES *sseries_create_list(SSERIES *, SSERIES **, SSERIES **);
51SSERIES *sseries_add(SSERIES *, SSERIES **, SSERIES **, bool);
52SSERIES *sseries_search(int, SSERIES **, SSERIES *);
53int sseries_delete(int, SSERIES **, SSERIES **);
54void sseries_free_list(SSERIES **);
55double sseries_get_value(int, SSERIES *, int);
56void sseries_set_values(SSERIES *, double);
57void sseries_setall_ts_values(SSERIES *, double);
58void sseries_set_values_average(SSERIES *, double, double);
59void sseries_setall_ts_valuesAVG(SSERIES *, double, double);
60SSERIES *sseries_extract(SSERIES *, int);
61//int sseries_read_id(SIO io, char **data, int);
62//int sseries_set_type(SMODEL_SUPER *, char **, int);
63void sseries_set_type(SSERIES *series_head, int iseries, char **subdata, int type);
64int sseries_get_interval(SSERIES, double);
65int series_get_type_count(SSERIES *, int);
66void sseries_set_meteor_stations(SSERIES *, SGRID *, int);
67void series_list_update_values(SSERIES *series_head, double t_prev);
68double series_list_get_value_from_mat(SSERIES *, int);
69SSERIES *sseries_read_allocate(SSERIES *head, SSERIES *curr, int type, char **token, int nnodes);
70
71/***********************************************************/
72/***********************************************************/
73/***********************************************************/
74
75#endif
76
Definition: sgrid.h:28
Definition: smeteor.h:20
Definition: sseries.h:7
Definition: sseries.h:18