Alpine3D  Alpine3D-3.2.0
EBStruct.h
Go to the documentation of this file.
1 /***********************************************************************************/
2 /* Copyright 2009-2015 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
3 /***********************************************************************************/
4 /* This file is part of Alpine3D.
5  Alpine3D is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Alpine3D is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Alpine3D. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef EBSTRUCT_H
19 #define EBSTRUCT_H
20 
21 // Ssolar contains the information for sun position
22  typedef struct
23  {
24 
25  double ecc_corr; // correction due to the eccentricity of the earth's orbit
26  double decl; // solar declination: angle between the vector earth/sun
27  // and the equatorial plane
28  double eq_time; // equation of time
29  double azi; // solar azimuth
30  double elev; // solar elevation
31  double toa_h; // incoming irradiance on horizontal area on top of the atmosphere
32  double solar_time; // true solar time
33  double hr_angle;
34 
35 } Ssolar;
36 
37 // Smeteo contains the meteo input information as well as time information and atmosphere correction factors
38  typedef struct
39  {
40  int hh; // actual hour
41  double gr; // incoming global radiation
42  double ea; // atmospheric emissivity (longwave radiation, cloud cover)
43  double tdirhor; // at station or biggest theoretical incident direct solar radiation on a flat field
44  double tdiff; // at station or biggest theoretical clear sky diffuse radiation
45  double Md; // splitting coefficient for direct and diffuse solar radiation
46 
47  } Smeteo;
48 
49  #endif
double decl
Definition: EBStruct.h:26
double toa_h
Definition: EBStruct.h:31
double Md
Definition: EBStruct.h:45
double tdiff
Definition: EBStruct.h:44
double azi
Definition: EBStruct.h:29
double solar_time
Definition: EBStruct.h:32
double gr
Definition: EBStruct.h:41
double tdirhor
Definition: EBStruct.h:43
double eq_time
Definition: EBStruct.h:28
Definition: EBStruct.h:38
double elev
Definition: EBStruct.h:30
double ea
Definition: EBStruct.h:42
double ecc_corr
Definition: EBStruct.h:25
Definition: EBStruct.h:22
int hh
Definition: EBStruct.h:40
double hr_angle
Definition: EBStruct.h:33