AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
smeteor.h
1#ifndef H_SMETEOR_
2#define H_SMETEOR_
3
4/***********************************************************/
5/***********************************************************/
6/***********************************************************/
7
8typedef struct {
9 int n; /* total number of grid points*/
10 double dt; /* time between snaps */
11 double tprev; /* previous time */
12 double tnext; /* next time */
13 FILE *fin; /* file pointer for meteorologicreads */
15
16/***********************************************************/
17/***********************************************************/
18/***********************************************************/
19
20typedef struct {
21 double x,y; // station location
22 double *node_contrib; // grid interpolation weights
24
25/***********************************************************/
26/***********************************************************/
27/***********************************************************/
28// use winds.stress.x
29typedef struct {
30 SVECT2D stress;
31} SWIND;
32
33/***********************************************************/
34/***********************************************************/
35/***********************************************************/
36// use: wave.rads.xx
37typedef struct {
38 STENSOR2D rads;
39 SVECT2D stress;
40} SWAVE;
41
42/*********************************************************/
43/* struct methods -------------------------------------- */
44
45void smeteor_file_init(SMETEOR_FILE *);
46void smeteor_station_init(SMETEOR_STATION *, int);
47void smeteor_station_alloc(SMETEOR_STATION **, int);
48void smeteor_station_realloc(SMETEOR_STATION **, int, int);
49void smeteor_station_free(SMETEOR_STATION *, int);
50void smeteor_station_copy(SMETEOR_STATION *, SMETEOR_STATION *, int);
51void swind_init(SWIND *);
52void swind_alloc(SWIND **, int);
53void swind_free(SWIND *, int);
54void swave_init(SWAVE *);
55void swave_alloc(SWAVE **, int);
56void swave_free(SWAVE *, int);
57void swave_elem2d_local_init(SWAVE *);
58void swind_elem2d_local_init(SWIND *);
59void swind_elem2d_get_local(SWIND *, SWIND *, int *);
60void swave_elem2d_get_local(SWAVE *, SWAVE *, int *);
61void swave_realloc(SWAVE **, int, int);
62void swind_realloc(SWIND **, int, int);
63//void swave_renumber(SWAVE *, int, int *, int *);
64//void swind_renumber(SWIND *, int, int *, int *, SVECT2D *);
65
66//SVECT2D swave_elem2d_get_local_stress(int ndim, int CSTORM_WSID, SWAVE *waves, SELEM_2D elem2d, int *grid2d_nodeIDs);
67//SVECT2D swind_elem2d_get_local_stress(int ndim, SWIND *winds, SELEM_2D *elem2d, int *grid2d_nodeIDs, double elem_depth_avg, double gravity, double density, double windatt, int wind_flag, int WIND_LIBRARY, int NWS);
68
69
70#endif
71
Definition: smeteor.h:8
Definition: smeteor.h:20
Definition: stensor.h:13
Definition: svect2d.h:4
Definition: smeteor.h:37
Definition: smeteor.h:29