1
|
*******************************
|
2
|
** TEB simple driver version **
|
3
|
*******************************
|
4
|
|
5
|
METEO-FRANCE / CNRS
|
6
|
|
7
|
Version October 2013
|
8
|
|
9
|
|
10
|
contact : Valéry Masson (valery.masson@meteo.fr)
|
11
|
|
12
|
|
13
|
This simple driver for the TEB model (Building Energy Balance;
|
14
|
Masson 2000 and subsequent papers), is intended to be used by scientists
|
15
|
whishing to implement TEB in their own software. This simple driver
|
16
|
provides all the source code of TEB alone, making it easier to analyse
|
17
|
and to integrate in its own atmospheric model for example.
|
18
|
|
19
|
If you wish to use TEB for physical simulations, wihtout intention to extract
|
20
|
all the TEB routines into another software environment, you could use the
|
21
|
SURFEX platform. It contains TEB and much more, especially the ISBA scheme
|
22
|
for vegetation, or several I/O formats, including Netcdf.
|
23
|
(http://www.cnrm.meteo.fr/surfex/)
|
24
|
|
25
|
Please refer to this website for the complete documentation on TEB.
|
26
|
|
27
|
--------------------------------------------------------------------------------
|
28
|
--------------------------------------------------------------------------------
|
29
|
Physical description of TEB
|
30
|
--------------------------------------------------------------------------------
|
31
|
--------------------------------------------------------------------------------
|
32
|
|
33
|
The present simple "driver" version of TEB is based on :
|
34
|
|
35
|
------------------------------------------------------------
|
36
|
version7_3 of SURFEX code; branch TEB_DEV_1514, release 1550
|
37
|
------------------------------------------------------------
|
38
|
|
39
|
|
40
|
The following physical features are included :
|
41
|
|
42
|
1) Historical version of TEB (Masson 2000) :
|
43
|
- canyon shape geometry
|
44
|
- isotropic direction of roads
|
45
|
- 3 energy balances for roofs, roads and walls layers
|
46
|
- simplified internal temperature evolution (force-restore)
|
47
|
- water reservoirs on roofs and roads
|
48
|
- snow mantel on roofs and roads
|
49
|
|
50
|
2) Building Energy Module (BEM) (Bueno et al 2012 doi:10.5194/gmd-5-433-2012)
|
51
|
- adds Internal Building Energy Balance
|
52
|
- adds floor and building mass energy balances
|
53
|
- windows
|
54
|
- Heat-Ventilation-air-Conditionning (HVAC) systems
|
55
|
- inflitration / ventilation
|
56
|
- solar protections
|
57
|
- natural ventilation (opening of windows)
|
58
|
|
59
|
3) Roads orientation (Lemonsu et al 2012, DOI 10.1007/s10584-012-0521-6)
|
60
|
- possibility to use a specified road orientation
|
61
|
(instead of a genericisotropic roads)
|
62
|
- possibility to separate the 2 facing walls energy balances
|
63
|
(then one have energy balances for walls 'A' and 'wall 'B')
|
64
|
|
65
|
4) Garden (Lemonsu et al 2012, DOI 10.1007/s10584-012-0521-6)
|
66
|
- possibility to add a fraction of gardens inside the canyon itself
|
67
|
(modifies all energetic exchanges within the canyon)
|
68
|
==> The garden needs its own vegetation energy balance. In this driver version,
|
69
|
a simple proxi is used (based on fixed albedo and Bowen ratio)
|
70
|
|
71
|
5) Greenroofs (De Munck et al 2013)
|
72
|
- possibility to add greenroofs on the roofs
|
73
|
==> The greenroof needs its own vegetation energy balance. In this driver version,
|
74
|
a simple proxi is used (based on fixed albedo and Bowen ratio)
|
75
|
|
76
|
6) Irrigation and solar panels (DeMunck 2013 and Masson 2013)
|
77
|
- possibility to have irrigation of greenroofs, gardens and watering of roads
|
78
|
- possibility to have solar panels (hot water and/or photovoltaic)
|
79
|
|
80
|
--------------------------------------------------------------------------------
|
81
|
--------------------------------------------------------------------------------
|
82
|
Technical description of the driver structure
|
83
|
--------------------------------------------------------------------------------
|
84
|
--------------------------------------------------------------------------------
|
85
|
|
86
|
'src_teb' directory contains the physical sources of TEB
|
87
|
==> If you wish to implement TEB into your own software (e.g. atmospheric model)
|
88
|
You only need to use these routines
|
89
|
|
90
|
'src_driver' directory contains the routines of the driver environment
|
91
|
==> Among these routines, you should only look at the driver.F90 program.
|
92
|
This program is the main driver of this driver version of TEB.
|
93
|
You can modify the values of the urban parameters (where indicated,
|
94
|
from line 530 to line 865).
|
95
|
|
96
|
'src_solar' directory contains a simplified sky model, that is in SURFEX, to
|
97
|
estimate the part of the diffuse solar radiation that is near solar direction.
|
98
|
This code is here only in order to retrieve exactly the same forcings data
|
99
|
for TEB that what is in SURFEX (to insure that we have the same results).
|
100
|
|
101
|
'src_proxi-SVAT' directory contains extremely simple vegetation models in case you
|
102
|
use the 'garden' option or the 'greenroof' option.
|
103
|
==> These vegetation models are very crude, and you are invited to use your own
|
104
|
vegetation models instead (or ISBA using SURFEX if you wish). Note that the
|
105
|
physical varaibles that need to be exchanged between TEB and these vegetation
|
106
|
model (either on roofs or gradens) are only those that are in arguments of
|
107
|
the routines in 'src_proxi-SVAT'directory.
|
108
|
|
109
|
'input' directory contains data from the CAPITOUL experiment (Masson et al 2008),
|
110
|
that is used as a test case.
|
111
|
|
112
|
'output' directory contains the results of your run once you have executed driver.exe
|
113
|
|
114
|
'output_ref' contains the results you should obtain, in order to check that everthing
|
115
|
went well when you first ran driver.exe (do not change the urban parameters
|
116
|
and options in driver.F90 if you want to do this).
|
117
|
|
118
|
--------------------------------------------------------------------------------
|
119
|
--------------------------------------------------------------------------------
|
120
|
How to use the TEB driver program ?
|
121
|
--------------------------------------------------------------------------------
|
122
|
--------------------------------------------------------------------------------
|
123
|
|
124
|
1) You first need to create the makefile
|
125
|
-------------------------------------
|
126
|
|
127
|
To do this, you have to:
|
128
|
|
129
|
a) define your fortran compiler options in file gfortran_args
|
130
|
b) run the script this way :
|
131
|
|
132
|
mkmf.pl -t gfortran_args -p driver.exe src_driver src_proxi_SVAT src_solar src_teb
|
133
|
|
134
|
c) You now should have a 'Makefile' file in your directory
|
135
|
|
136
|
Documentation on this mkmf.pl makefile creation tool is provided in mkmf.html
|
137
|
|
138
|
|
139
|
2) Compiling of the code
|
140
|
---------------------
|
141
|
|
142
|
Just use the command :
|
143
|
make
|
144
|
|
145
|
This will compile all the routines and create the executable file driver.exe
|
146
|
|
147
|
3) Running TEB !
|
148
|
-----------
|
149
|
|
150
|
Just use the command :
|
151
|
driver.exe
|
152
|
|
153
|
The driver program should be running and show prints on your window like this:
|
154
|
|
155
|
17994/17999
|
156
|
17995/17999
|
157
|
17996/17999
|
158
|
17997/17999
|
159
|
17998/17999
|
160
|
17999/17999
|
161
|
|
162
|
--------------------------
|
163
|
| DRIVER ENDS CORRECTLY |
|
164
|
--------------------------
|
165
|
|
166
|
4) Looking at the results
|
167
|
----------------------
|
168
|
|
169
|
Just go to the 'output' directory. It contains the temporal evolution of
|
170
|
a few of TEB variables :
|
171
|
|
172
|
RN_TOWN.txt : Net radiation (W/m²)
|
173
|
H_TOWN.txt : sensible heat flux (W/m²)
|
174
|
LE_TOWN.txt : latent heat flux (W/m²)
|
175
|
|
176
|
P_CANYON.txt : pressure at road level (Pa)
|
177
|
Q_CANYON.txt : specific humidity in canyon (kg/kg)
|
178
|
T_CANYON.txt : air temperature in canyon (K)
|
179
|
U_CANYON.txt : Wind strength in canyon (m/s)
|
180
|
|
181
|
TI_BLD.txt : Internal building temperature (K)
|
182
|
T_ROAD1.txt : road surface temperature (K)
|
183
|
T_ROOF1.txt : roof surface temperature (K)
|
184
|
T_WALLA1.txt : wall surface temperature (wall A) (K)
|
185
|
T_WALLB1.txt : wall surface temperature (wall B) (K)
|
186
|
|
187
|
|
188
|
If BEM option is activated, you also have these outputs:
|
189
|
W / m² of buildings ground surface (not by m² of floor)
|
190
|
|
191
|
HVAC_COOL.txt : Cooling Energy Demand
|
192
|
HVAC_HEAT.txt : Heating Energy Demand
|
193
|
|
194
|
|
195
|
5) Enjoy
|
196
|
-----
|
197
|
|
198
|
You can now modify the urban options and parameters in driver.F90 in order
|
199
|
to see their impacts.
|
200
|
|
201
|
|
202
|
6) If you want to change the atmospheric forcing data
|
203
|
--------------------------------------------------
|
204
|
|
205
|
a) change the characteristics of your forcing in driver.F90 (lines 97 to 107)
|
206
|
b) change the forcing data in the 'input' directory, but you should use the same
|
207
|
type of text files
|
208
|
c) run driver.exe
|
209
|
|
210
|
|
211
|
7) If you want to implement TEB in your own software
|
212
|
-------------------------------------------------
|
213
|
|
214
|
All the TEB sources you need are in the 'src_teb' directory.
|
215
|
|
216
|
|
217
|
--------------------------------------------------------------------------------
|
218
|
--------------------------------------------------------------------------------
|
219
|
End. Have fun with TEB.
|
220
|
--------------------------------------------------------------------------------
|
221
|
--------------------------------------------------------------------------------
|