Data Structures

All data structures are identified in the header file vic2l_def.h. The following tables detail the structures, and the variables they contain:


struct infiles_struct:

Variable TypeVariable Name Description
FILE *soilparamSoil parameters file.
FILE *vegparamVegitation parameters file.
FILE *snowoutSnow model output file.
FILE *snowinSnow model input file.
FILE *globalparamGlobal parameters file.

struct outfiles_struct:

Variable TypeVariable Name Description
FILE *moist1Moisture content for first layer
FILE *moist2Moisture content for second layer
FILE *evapEvaporation output file.
FILE *runoffRunoff output file.
FILE *baseflowBaseflow output file.

struct filenames_struct:

Variable TypeVariable Name Description
char *snowoutFilename for snow model output file.
char *snowinFilename for snow model input file.
char *globalFilename for global parameter input file.
char *soilFilename for soil input file.
char *vegFilename for vegetation input file
char *result_dirPathname for result files.
char *moist1Filename for first layer output file
char *moist2Filename for second layer output file.
char *evapFilename for evaporation output file.
char *runoffFilename for runoff output file.
char *baseflowFilename for baseflow output file.

struct global_param_struct:

Variable TypeVariable Name Description
intmodel_typeUnused at this time
floatresolutionGrid cell resolution in degrees.
intstartyearYear of start of simulation
intstartmonthMonth of start of simulation.
intstartdayDay of start of simulation
intnrecsNumber of records (or time steps) in simulation.
doublewind_hHeight at which wind was measured
doublemeasure_hHeight of surface measurements

struct soil_con_struct:

Variable TypeVariable Name Description
intgridcelGrid cell number
floatlatLatitude of current grid cell.
floatlngLongitude of current grid cell.
doubleb_infiltInfiltration parameter
doublemax_moist_tot Maximum total moisture content.
doubleDsSubsurface flow rate
doubleDsmaxMaximum subsurface flow rate
doubleWsSoil moisture content
doublec
doublemaxsoilmoist2factor Maximum soil moisture content of layer 2
doubleexptExponent
doubleKsatSaturated hydraulic conductivity
doubleinit_top_moist Initial moisture content of top layer
doubleinit_bottom_moist Initial moisture content of bottom layer
doubleevapfactorEvaporation factor
floatelevationElevation of grid cell
doublemax_moist1Maximum moisture content of layer 1
doublemax_moist2Maximum moisture content of layer 2
doublemax_infilMaximum infiltration rate
doubleWcr1Critical moisture content of first layer
doubleWcr2Critical moisture content of second layer
double Wpwp1
doubleWpwp2
doubleroughRoughness

struct veg_con_struct:

Variable TypeVariable Name Description
intvegetat_type_num Number of vegetation types in grid cell
intveg_classVegitation class number
doubleCvSpecific heat of plant
doubleCv_sum
doublerarcArchitectual roughness
double rsStomatal roughness
doubleroot1Percentage of roots in first layer
doubleroot2Percentage of roots in second layer
doubleLAI[12]Monthly leaf area index for vegetation type
doubleroughRoughness
double displacement
doubleWdmax[12]

struct atmos_data_struct:

Variable TypeVariable Name Description
doublemeltAmount of snow melt in grid cell
doubleprecAmount of precipitation in grid cell
doubleair_tempCurrent air temperature in grid cell
doublepan_evapPan evaporation rate in grid cell
doublerain_plus_snow
doublerainonly
doublewindCurrent wind
doublesun_hrSolar hour, for use in computing incoming solar radiation
doubleradCurrent radiation
doublevpdVapor pressure deficit
doublepressureAtmospheric pressure at surface
doublerel_humidRelative humidity
doubletminMinimum daily temperature
doubletmaxMaximum daily temperature
doublepriestEvaporation calculated by preistly method
doubletransAtmospheric transmissivity
doubleshortwaveIncoming shortwave radiation calculated using aurad subroutine (Used for calculation of vpd)
double shortwave2Incoming shortwave radiation used for energy balance (more believable than shortwave)
doublelongwaveNet longwave radiation
doublenet_shortNet shortwave radiation
double albedoSurface albedo

struct dmy_struct:

Variable TypeVariable Name Description
intdayDay of current time step
intmonthMonth of current time step
intyearYear of current time step
int day_in_monthYearly Julian date (1-365/366)

struct soil_var_struct:

Variable TypeVariable Name Description
doublemoist1[2]Moisture layer 1
([0] = current time step, [1] = next time step)
doublemoist2[2]Moisture layer 2
([0] = current time step, [1] = next time step)
doublebaseflowComputed baseflow within grid cell
doubleQ12Infiltration from first to second layer
doublerunoffCalculated runoff from grid cell
doubleevap1Calculated evaporation from first layer
doubleevap2Calculated evaporation from second layer

struct veg_var_struct:

Variable TypeVariable Name Description
doublecanopyevapCalculated canopy evaporation
doubleWdew[2]Calculated amount of dew trapped on plants ([0] = current time step, [1] = next time step)
doublethroughfallCalculated amount of water that falls through vegetation

struct out_data_struct:

Variable TypeVariable Name Description
double evapFinal calculated evaporation
doublerunoffFinal calculated runoff
doublebaseflowFinal calculated baseflow
doublemoist1Final calculated moisture content of first layer
double moist2Final calculated moisture content of second layer


Return to VIC Water Balance Model Contents
Hydrology Homepage / University of Washington / VIC Administrator