ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
IBSEBParams Struct Reference

#include <ERF_IBSEBParams.H>

Collaboration diagram for IBSEBParams:

Public Member Functions

void init_params ()
 

Public Attributes

bool enable = false
 Master switch. More...
 
int n_slab_layers = 4
 Conduction layers per face. More...
 
amrex::Real T_skin_init = 300.0
 Initial skin temperature [K]. More...
 
amrex::Real T_interior = 293.0
 Interior (deep) temperature [K]. More...
 
std::string csv_file = "ibseb_buildings.csv"
 Per-building report. More...
 
int csv_int = 100
 Steps between report rows; <= 0 disables. More...
 
bool debug = false
 [IBSEB DEBUG] prints: set description at build, per-step summary, per-building rows More...
 
std::string dump_faces_file
 Per-rank face dump at report time (empty = off); a refined level N adds ".levN". More...
 
bool dump_faces_tag_step = false
 Name each dump by its step (keeps every one) instead of overwriting. More...
 
std::string radiation = "prescribed"
 
std::string sun_mode = "fixed"
 
amrex::Real sun_zenith_deg = 45.0
 fixed: zenith angle [deg] More...
 
amrex::Real sun_azimuth_deg = 180.0
 fixed: azimuth clockwise from north [deg]; 180 = sun in the south More...
 
amrex::Real sw_direct_normal = 800.0
 fixed: direct-normal irradiance [W/m2] More...
 
amrex::Real sw_diffuse = 100.0
 fixed: diffuse irradiance on a horizontal surface [W/m2] More...
 
amrex::Real latitude_deg = 40.0
 solar: site latitude, north positive More...
 
amrex::Real longitude_deg = -105.0
 solar: site longitude, east positive More...
 
amrex::Real day_of_year = 172.0
 solar: day of year More...
 
amrex::Real time_zero_utc_s = 12.0 * 3600.0
 solar: seconds after 00:00 UTC at simulation time zero (the sun follows UTC and the longitude) More...
 
amrex::Real solar_constant = 1361.0
 solar: [W/m2] More...
 
amrex::Real sw_transmission = 0.7
 solar, two_stream: bulk clear-sky transmission (Bird) More...
 
amrex::Real sw_diffuse_coeff = 0.5
 solar, two_stream: share of the attenuated beam that arrives as diffuse light More...
 
amrex::Real sun_min_elev_deg = 2.0
 
amrex::Real albedo = 0.3
 Face shortwave albedo. More...
 
amrex::Real albedo_ground = 0.2
 Ground albedo for the reflected diffuse term. More...
 
amrex::Real emissivity = 0.9
 Face longwave emissivity. More...
 
amrex::Real emissivity_ground = 0.95
 Ground emissivity for the ground term. More...
 
bool ground_view_shadow = false
 
bool ground_sky_view = false
 
bool two_stream_roofs = false
 
int view_n_az = 16
 
int view_n_el = 8
 
std::string lw_mode = "gray"
 
bool two_stream_buildings = true
 
bool two_stream_buildings_given = false
 Whether the deck sets it (start-up checks) More...
 
amrex::Real lw_down = 300.0
 fixed: sky longwave [W/m2] More...
 
amrex::Real sky_emissivity = 0.83
 gray: effective clear-sky emissivity More...
 
amrex::Real T_ground = 300.0
 Ground temperature for the ground term [K]. More...
 
amrex::Real z0_wall = 0.01
 Momentum roughness of the faces [m]. More...
 
amrex::Real z0h_wall = 0.001
 Heat roughness of the faces [m]. More...
 
bool stability_correction = false
 
std::string stability_scheme = "iterative"
 "iterative" or "louis" (with stability_correction) More...
 
bool couple_heat = true
 Add the face flux to the temperature equation. More...
 
std::string material_file
 
int material_default = 1
 
std::vector< int > material_by_building
 
amrex::Real k_therm = 1.0
 Uniform conductivity [W/m/K]. More...
 
amrex::Real rho_cp = 1.6e6
 Uniform volumetric heat capacity [J/m3/K]. More...
 
amrex::Real thickness = 0.3
 Uniform slab thickness [m]. More...
 
bool prognostic = true
 
amrex::Real T_skin_min = 260.0
 Lower bound of the skin temperature [K]. More...
 
amrex::Real T_skin_max = 380.0
 Upper bound [K]; raise it for faces under a fire. More...
 
int newton_max_iter = 20
 Newton iteration cap per face and step. More...
 
amrex::Real newton_tol_K = 1.0e-3
 Newton stops when a step changes T_skin by less than this [K]. More...
 
amrex::Real newton_max_step_K = 20.0
 Largest Newton step [K]. More...
 
amrex::Real Q_ext_uniform = 0.0
 Uniform external incident flux on every face [W/m2] (test hook) More...
 
std::string obukhov_seed = "ground"
 "ground" or "neutral" More...
 
std::string convective_velocity = "none"
 "none" or "deardorff" More...
 
amrex::Real beta_conv = 1.2
 Gustiness factor on w*. More...
 
std::string z_i_mode = "bulk_ri"
 "bulk_ri", "pblh" or "fixed" More...
 
amrex::Real z_i = 1000.0
 Fixed mixed-layer depth [m] (z_i_mode = fixed, and the fallback) More...
 
amrex::Real ri_crit = 0.25
 Critical bulk Richardson number of the diagnostic. More...
 
amrex::Real obukhov_relax = 0.5
 Under-relaxation of the roof's u*, theta* iteration (1 = none), as erf-model #3486. More...
 

Member Function Documentation

◆ init_params()

void IBSEBParams::init_params ( )
inline

Read the erf.ibseb.* inputs and validate them.

Only queried, never required: a deck without any erf.ibseb key gets the defaults above with the balance off. Validation is skipped when the balance is off so an unrelated deck cannot abort on an unused key.

209  {
210  amrex::ParmParse pp("erf.ibseb");
211  pp.query("enable", enable);
212  pp.query("n_slab_layers", n_slab_layers);
213  pp.query("T_skin_init", T_skin_init);
214  pp.query("T_interior", T_interior);
215  pp.query("csv_file", csv_file);
216  pp.query("csv_int", csv_int);
217  pp.query("debug", debug);
218  pp.query("dump_faces_file", dump_faces_file);
219  pp.query("dump_faces_tag_step", dump_faces_tag_step);
220  pp.query("radiation", radiation);
221  pp.query("sun_mode", sun_mode);
222  pp.query("sun_zenith_deg", sun_zenith_deg);
223  pp.query("sun_azimuth_deg", sun_azimuth_deg);
224  pp.query("sw_direct_normal", sw_direct_normal);
225  pp.query("sw_diffuse", sw_diffuse);
226  pp.query("latitude_deg", latitude_deg);
227  pp.query("longitude_deg", longitude_deg);
228  pp.query("day_of_year", day_of_year);
229  pp.query("time_zero_utc_s", time_zero_utc_s);
230  pp.query("solar_constant", solar_constant);
231  pp.query("sw_transmission", sw_transmission);
232  pp.query("sw_diffuse_coeff", sw_diffuse_coeff);
233  pp.query("sun_min_elev_deg", sun_min_elev_deg);
234  pp.query("albedo", albedo);
235  pp.query("albedo_ground", albedo_ground);
236  pp.query("emissivity", emissivity);
237  pp.query("emissivity_ground", emissivity_ground);
238  pp.query("ground_view_shadow", ground_view_shadow);
239  pp.query("ground_sky_view", ground_sky_view);
240  pp.query("two_stream_roofs", two_stream_roofs);
241  pp.query("view_n_az", view_n_az);
242  pp.query("view_n_el", view_n_el);
243  pp.query("lw_mode", lw_mode);
244  two_stream_buildings_given = pp.contains("two_stream_buildings");
245  pp.query("two_stream_buildings", two_stream_buildings);
246  pp.query("lw_down", lw_down);
247  pp.query("sky_emissivity", sky_emissivity);
248  pp.query("T_ground", T_ground);
249  pp.query("z0_wall", z0_wall);
250  pp.query("z0h_wall", z0h_wall);
251  pp.query("stability_correction", stability_correction);
252  pp.query("stability_scheme", stability_scheme);
253  pp.query("couple_heat", couple_heat);
254  pp.query("material_file", material_file);
255  pp.query("material_default", material_default);
256  pp.queryarr("material_by_building", material_by_building);
257  pp.query("k_therm", k_therm);
258  pp.query("rho_cp", rho_cp);
259  pp.query("thickness", thickness);
260  pp.query("prognostic", prognostic);
261  pp.query("T_skin_min", T_skin_min);
262  pp.query("T_skin_max", T_skin_max);
263  pp.query("newton_max_iter", newton_max_iter);
264  pp.query("newton_tol_K", newton_tol_K);
265  pp.query("newton_max_step_K", newton_max_step_K);
266  pp.query("Q_ext_uniform", Q_ext_uniform);
267  pp.query("obukhov_seed", obukhov_seed);
268  pp.query("convective_velocity", convective_velocity);
269  pp.query("beta_conv", beta_conv);
270  pp.query("z_i_mode", z_i_mode);
271  pp.query("z_i", z_i);
272  pp.query("ri_crit", ri_crit);
273  pp.query("obukhov_relax", obukhov_relax);
274  if (enable) {
275  if (radiation != "prescribed" && radiation != "two_stream") {
276  amrex::Abort("erf.ibseb.radiation must be \"prescribed\" or \"two_stream\"");
277  }
278  // The column's longwave goes with its shortwave unless the deck says otherwise.
279  if (radiation == "two_stream" && !pp.contains("lw_mode")) { lw_mode = "two_stream"; }
280  // The columns bring the irradiances and the ground's reflection; the
281  // clear-sky formulas and the uniform ground albedo are not used.
282  if (radiation == "two_stream") {
283  for (const char* k : {"sw_direct_normal", "sw_diffuse", "sw_transmission", "sw_diffuse_coeff",
284  "solar_constant", "albedo_ground"}) {
285  if (pp.contains(k)) {
286  amrex::Abort(std::string("erf.ibseb.") + k + " is not used with erf.ibseb.radiation = two_stream:"
287  " the faces take the two-stream columns' irradiances and the ground's reflection;"
288  " remove it");
289  }
290  }
291  }
292  if (sun_mode != "fixed" && sun_mode != "solar" && sun_mode != "two_stream") {
293  amrex::Abort("erf.ibseb.sun_mode must be \"fixed\", \"solar\" or \"two_stream\"");
294  }
295  // The two-stream sun brings its own position, site, date and irradiance.
296  if (sun_mode == "two_stream") {
297  for (const char* k : {"latitude_deg", "longitude_deg", "day_of_year", "time_zero_utc_s", "solar_constant",
298  "sun_zenith_deg", "sun_azimuth_deg", "sw_direct_normal", "sw_diffuse"}) {
299  if (pp.contains(k)) {
300  amrex::Abort(std::string("erf.ibseb.") + k + " is not used with erf.ibseb.sun_mode = two_stream:"
301  " the faces take the two-stream sun (start_datetime, erf.rad_cons_lat / lon,"
302  " erf.fixed_total_solar_irradiance); remove it");
303  }
304  }
305  }
306  if (sun_zenith_deg < 0.0 || sun_zenith_deg > 180.0) { amrex::Abort("erf.ibseb.sun_zenith_deg must be in [0, 180]"); }
307  if (latitude_deg < -90.0 || latitude_deg > 90.0) { amrex::Abort("erf.ibseb.latitude_deg must be in [-90, 90]"); }
308  if (longitude_deg < -180.0 || longitude_deg > 180.0) { amrex::Abort("erf.ibseb.longitude_deg must be in [-180, 180]"); }
309  if (day_of_year < 1.0 || day_of_year > 366.0) { amrex::Abort("erf.ibseb.day_of_year must be in [1, 366]"); }
310  // The sun is computed from UTC (time_zero_utc_s) and the longitude; a
311  // time-zone offset has no place in that and used to cancel silently.
312  if (pp.contains("utc_offset_hours")) {
313  amrex::Abort("erf.ibseb.utc_offset_hours is not an input: the sun follows time_zero_utc_s (UTC) and longitude_deg; remove it");
314  }
315  if (sw_direct_normal < 0.0 || sw_diffuse < 0.0) { amrex::Abort("erf.ibseb.sw_direct_normal and sw_diffuse must be >= 0"); }
316  if (sw_transmission <= 0.0 || sw_transmission > 1.0) { amrex::Abort("erf.ibseb.sw_transmission must be in (0, 1]"); }
317  if (sw_diffuse_coeff < 0.0 || sw_diffuse_coeff > 1.0) { amrex::Abort("erf.ibseb.sw_diffuse_coeff must be in [0, 1]"); }
318  if (solar_constant <= 0.0) { amrex::Abort("erf.ibseb.solar_constant must be > 0"); }
319  if (sun_min_elev_deg <= 0.0 || sun_min_elev_deg >= 90.0) {
320  amrex::Abort("erf.ibseb.sun_min_elev_deg must be in (0, 90) [deg]");
321  }
322  if (albedo < 0.0 || albedo > 1.0 || albedo_ground < 0.0 || albedo_ground > 1.0) {
323  amrex::Abort("erf.ibseb.albedo and albedo_ground must be in [0, 1]");
324  }
325  if (emissivity <= 0.0 || emissivity > 1.0 || emissivity_ground <= 0.0 || emissivity_ground > 1.0 ||
326  sky_emissivity <= 0.0 || sky_emissivity > 1.0) {
327  amrex::Abort("erf.ibseb emissivities must be in (0, 1]");
328  }
329  if (view_n_az < 1 || view_n_el < 1) { amrex::Abort("erf.ibseb.view_n_az and view_n_el must be >= 1"); }
330  if (lw_mode != "fixed" && lw_mode != "gray" && lw_mode != "two_stream") {
331  amrex::Abort("erf.ibseb.lw_mode must be \"fixed\", \"gray\" or \"two_stream\"");
332  }
333  if (lw_mode == "two_stream" && radiation != "two_stream") {
334  amrex::Abort("erf.ibseb.lw_mode = two_stream needs erf.ibseb.radiation = two_stream");
335  }
336  if (lw_mode == "two_stream") {
337  for (const char* k : {"lw_down", "sky_emissivity", "T_ground", "emissivity_ground"}) {
338  if (pp.contains(k)) {
339  amrex::Abort(std::string("erf.ibseb.") + k + " is not used with erf.ibseb.lw_mode = two_stream:"
340  " the faces take the two-stream columns' longwave down and the ground's longwave up;"
341  " remove it");
342  }
343  }
344  }
345  if (lw_down < 0.0 || T_ground <= 0.0) { amrex::Abort("erf.ibseb.lw_down must be >= 0 and T_ground > 0"); }
346  if (z0_wall <= 0.0 || z0h_wall <= 0.0) { amrex::Abort("erf.ibseb.z0_wall and z0h_wall must be positive [m]"); }
347  if (k_therm <= 0.0 || rho_cp <= 0.0 || thickness <= 0.0) { amrex::Abort("erf.ibseb.k_therm, rho_cp and thickness must be positive"); }
348  if (n_slab_layers > 32) { amrex::Abort("erf.ibseb.n_slab_layers must be <= 32 (the slab kernels keep their layers on the stack)"); }
349  if (n_slab_layers < 1) { amrex::Abort("erf.ibseb.n_slab_layers must be >= 1"); }
350  if (T_skin_init <= 0.0 || T_interior <= 0.0) {
351  amrex::Abort("erf.ibseb.T_skin_init and T_interior must be positive [K]");
352  }
353  if (T_skin_min <= 0.0 || T_skin_max <= T_skin_min) {
354  amrex::Abort("erf.ibseb.T_skin_min must be positive and below T_skin_max");
355  }
356  if (prognostic && (T_skin_init < T_skin_min || T_skin_init > T_skin_max)) {
357  amrex::Abort("erf.ibseb.T_skin_init must lie within [T_skin_min, T_skin_max]");
358  }
359  if (newton_max_iter < 1 || newton_tol_K <= 0.0 || newton_max_step_K <= 0.0) {
360  amrex::Abort("erf.ibseb.newton_max_iter must be >= 1, newton_tol_K and newton_max_step_K positive");
361  }
362  if (Q_ext_uniform < 0.0) { amrex::Abort("erf.ibseb.Q_ext_uniform must be >= 0"); }
363  if (obukhov_seed != "ground" && obukhov_seed != "neutral") { amrex::Abort("erf.ibseb.obukhov_seed must be \"ground\" or \"neutral\""); }
364  if (convective_velocity != "none" && convective_velocity != "deardorff") {
365  amrex::Abort("erf.ibseb.convective_velocity must be \"none\" or \"deardorff\"");
366  }
367  if (z_i_mode != "bulk_ri" && z_i_mode != "pblh" && z_i_mode != "fixed") {
368  amrex::Abort("erf.ibseb.z_i_mode must be \"bulk_ri\", \"pblh\" or \"fixed\"");
369  }
370  if (beta_conv <= 0.0 || z_i <= 0.0 || ri_crit <= 0.0) { amrex::Abort("erf.ibseb.beta_conv, z_i and ri_crit must be positive"); }
371  if (obukhov_relax <= 0.0 || obukhov_relax > 1.0) { amrex::Abort("erf.ibseb.obukhov_relax must be in (0, 1]"); }
372  if (stability_scheme != "iterative" && stability_scheme != "louis") {
373  amrex::Abort("erf.ibseb.stability_scheme must be \"iterative\" or \"louis\"");
374  }
375  if (pp.contains("stability_scheme") && !stability_correction) {
376  amrex::Abort("erf.ibseb.stability_scheme selects the roofs' stability correction; set erf.ibseb.stability_correction = true or remove it");
377  }
378  if (stability_scheme == "louis" && (pp.contains("obukhov_seed") || pp.contains("obukhov_relax"))) {
379  amrex::Abort("erf.ibseb.obukhov_seed and obukhov_relax belong to stability_scheme = \"iterative\"; remove them with \"louis\"");
380  }
381  }
382  }
ParmParse pp("prob")
amrex::Real newton_max_step_K
Largest Newton step [K].
Definition: ERF_IBSEBParams.H:177
std::string csv_file
Per-building report.
Definition: ERF_IBSEBParams.H:30
amrex::Real T_interior
Interior (deep) temperature [K].
Definition: ERF_IBSEBParams.H:29
std::string sun_mode
Definition: ERF_IBSEBParams.H:56
std::string convective_velocity
"none" or "deardorff"
Definition: ERF_IBSEBParams.H:194
std::string stability_scheme
"iterative" or "louis" (with stability_correction)
Definition: ERF_IBSEBParams.H:145
amrex::Real T_ground
Ground temperature for the ground term [K].
Definition: ERF_IBSEBParams.H:129
amrex::Real Q_ext_uniform
Uniform external incident flux on every face [W/m2] (test hook)
Definition: ERF_IBSEBParams.H:178
amrex::Real day_of_year
solar: day of year
Definition: ERF_IBSEBParams.H:63
bool prognostic
Definition: ERF_IBSEBParams.H:172
int material_default
Definition: ERF_IBSEBParams.H:158
bool two_stream_buildings
Definition: ERF_IBSEBParams.H:125
amrex::Real newton_tol_K
Newton stops when a step changes T_skin by less than this [K].
Definition: ERF_IBSEBParams.H:176
amrex::Real obukhov_relax
Under-relaxation of the roof's u*, theta* iteration (1 = none), as erf-model #3486.
Definition: ERF_IBSEBParams.H:199
amrex::Real z0_wall
Momentum roughness of the faces [m].
Definition: ERF_IBSEBParams.H:142
amrex::Real k_therm
Uniform conductivity [W/m/K].
Definition: ERF_IBSEBParams.H:160
amrex::Real sw_transmission
solar, two_stream: bulk clear-sky transmission (Bird)
Definition: ERF_IBSEBParams.H:66
bool enable
Master switch.
Definition: ERF_IBSEBParams.H:26
int n_slab_layers
Conduction layers per face.
Definition: ERF_IBSEBParams.H:27
amrex::Real rho_cp
Uniform volumetric heat capacity [J/m3/K].
Definition: ERF_IBSEBParams.H:161
std::string z_i_mode
"bulk_ri", "pblh" or "fixed"
Definition: ERF_IBSEBParams.H:196
amrex::Real thickness
Uniform slab thickness [m].
Definition: ERF_IBSEBParams.H:162
std::string material_file
Definition: ERF_IBSEBParams.H:157
int view_n_az
Definition: ERF_IBSEBParams.H:104
amrex::Real sky_emissivity
gray: effective clear-sky emissivity
Definition: ERF_IBSEBParams.H:128
amrex::Real sun_min_elev_deg
Definition: ERF_IBSEBParams.H:75
bool couple_heat
Add the face flux to the temperature equation.
Definition: ERF_IBSEBParams.H:146
amrex::Real ri_crit
Critical bulk Richardson number of the diagnostic.
Definition: ERF_IBSEBParams.H:198
amrex::Real longitude_deg
solar: site longitude, east positive
Definition: ERF_IBSEBParams.H:62
int view_n_el
Definition: ERF_IBSEBParams.H:105
std::vector< int > material_by_building
Definition: ERF_IBSEBParams.H:159
std::string lw_mode
Definition: ERF_IBSEBParams.H:114
amrex::Real albedo_ground
Ground albedo for the reflected diffuse term.
Definition: ERF_IBSEBParams.H:78
bool dump_faces_tag_step
Name each dump by its step (keeps every one) instead of overwriting.
Definition: ERF_IBSEBParams.H:34
amrex::Real emissivity_ground
Ground emissivity for the ground term.
Definition: ERF_IBSEBParams.H:80
std::string radiation
Definition: ERF_IBSEBParams.H:46
bool ground_view_shadow
Definition: ERF_IBSEBParams.H:89
int csv_int
Steps between report rows; <= 0 disables.
Definition: ERF_IBSEBParams.H:31
amrex::Real beta_conv
Gustiness factor on w*.
Definition: ERF_IBSEBParams.H:195
bool debug
[IBSEB DEBUG] prints: set description at build, per-step summary, per-building rows
Definition: ERF_IBSEBParams.H:32
amrex::Real solar_constant
solar: [W/m2]
Definition: ERF_IBSEBParams.H:65
amrex::Real sw_direct_normal
fixed: direct-normal irradiance [W/m2]
Definition: ERF_IBSEBParams.H:59
std::string dump_faces_file
Per-rank face dump at report time (empty = off); a refined level N adds ".levN".
Definition: ERF_IBSEBParams.H:33
amrex::Real albedo
Face shortwave albedo.
Definition: ERF_IBSEBParams.H:77
bool ground_sky_view
Definition: ERF_IBSEBParams.H:94
amrex::Real T_skin_min
Lower bound of the skin temperature [K].
Definition: ERF_IBSEBParams.H:173
amrex::Real time_zero_utc_s
solar: seconds after 00:00 UTC at simulation time zero (the sun follows UTC and the longitude)
Definition: ERF_IBSEBParams.H:64
amrex::Real sun_zenith_deg
fixed: zenith angle [deg]
Definition: ERF_IBSEBParams.H:57
amrex::Real lw_down
fixed: sky longwave [W/m2]
Definition: ERF_IBSEBParams.H:127
amrex::Real z_i
Fixed mixed-layer depth [m] (z_i_mode = fixed, and the fallback)
Definition: ERF_IBSEBParams.H:197
amrex::Real z0h_wall
Heat roughness of the faces [m].
Definition: ERF_IBSEBParams.H:143
amrex::Real sw_diffuse
fixed: diffuse irradiance on a horizontal surface [W/m2]
Definition: ERF_IBSEBParams.H:60
amrex::Real sun_azimuth_deg
fixed: azimuth clockwise from north [deg]; 180 = sun in the south
Definition: ERF_IBSEBParams.H:58
bool stability_correction
Definition: ERF_IBSEBParams.H:144
amrex::Real T_skin_init
Initial skin temperature [K].
Definition: ERF_IBSEBParams.H:28
bool two_stream_buildings_given
Whether the deck sets it (start-up checks)
Definition: ERF_IBSEBParams.H:126
amrex::Real latitude_deg
solar: site latitude, north positive
Definition: ERF_IBSEBParams.H:61
bool two_stream_roofs
Definition: ERF_IBSEBParams.H:99
std::string obukhov_seed
"ground" or "neutral"
Definition: ERF_IBSEBParams.H:193
amrex::Real sw_diffuse_coeff
solar, two_stream: share of the attenuated beam that arrives as diffuse light
Definition: ERF_IBSEBParams.H:67
amrex::Real T_skin_max
Upper bound [K]; raise it for faces under a fire.
Definition: ERF_IBSEBParams.H:174
amrex::Real emissivity
Face longwave emissivity.
Definition: ERF_IBSEBParams.H:79
int newton_max_iter
Newton iteration cap per face and step.
Definition: ERF_IBSEBParams.H:175
Here is the call graph for this function:

Member Data Documentation

◆ albedo

amrex::Real IBSEBParams::albedo = 0.3

Face shortwave albedo.

Referenced by init_params().

◆ albedo_ground

amrex::Real IBSEBParams::albedo_ground = 0.2

Ground albedo for the reflected diffuse term.

Referenced by IBFaceSet::compute_shortwave(), and init_params().

◆ beta_conv

amrex::Real IBSEBParams::beta_conv = 1.2

Gustiness factor on w*.

Referenced by init_params().

◆ convective_velocity

std::string IBSEBParams::convective_velocity = "none"

"none" or "deardorff"

Referenced by init_params().

◆ couple_heat

bool IBSEBParams::couple_heat = true

Add the face flux to the temperature equation.

Referenced by init_params().

◆ csv_file

std::string IBSEBParams::csv_file = "ibseb_buildings.csv"

Per-building report.

Referenced by init_params(), IBFaceSet::print_debug_summary(), and IBFaceSet::report().

◆ csv_int

int IBSEBParams::csv_int = 100

Steps between report rows; <= 0 disables.

Referenced by init_params(), and IBFaceSet::print_debug_summary().

◆ day_of_year

amrex::Real IBSEBParams::day_of_year = 172.0

solar: day of year

Referenced by init_params(), and IBFaceSet::sun_at().

◆ debug

bool IBSEBParams::debug = false

[IBSEB DEBUG] prints: set description at build, per-step summary, per-building rows

Referenced by IBFaceSet::compute_shortwave(), IBFaceSet::compute_shortwave_two_stream(), init_params(), IBFaceSet::read_state(), IBFaceSet::report(), and IBFaceSet::write_state().

◆ dump_faces_file

std::string IBSEBParams::dump_faces_file

Per-rank face dump at report time (empty = off); a refined level N adds ".levN".

Referenced by init_params(), and IBFaceSet::report().

◆ dump_faces_tag_step

bool IBSEBParams::dump_faces_tag_step = false

Name each dump by its step (keeps every one) instead of overwriting.

Referenced by init_params(), and IBFaceSet::report().

◆ emissivity

amrex::Real IBSEBParams::emissivity = 0.9

Face longwave emissivity.

Referenced by init_params().

◆ emissivity_ground

amrex::Real IBSEBParams::emissivity_ground = 0.95

Ground emissivity for the ground term.

Referenced by init_params().

◆ enable

bool IBSEBParams::enable = false

◆ ground_sky_view

bool IBSEBParams::ground_sky_view = false

The two-stream ground balance beside the buildings (needs two_stream_buildings and a ground balance on the sweep's fluxes): the ground keeps the sky's diffuse light and longwave through the part of its view the walls leave open, and takes the walls' reflected light and longwave through the rest. false: the ground sees the whole sky and nothing of the walls.

Referenced by init_params().

◆ ground_view_shadow

bool IBSEBParams::ground_view_shadow = false

◆ k_therm

amrex::Real IBSEBParams::k_therm = 1.0

Uniform conductivity [W/m/K].

Referenced by init_params().

◆ latitude_deg

amrex::Real IBSEBParams::latitude_deg = 40.0

solar: site latitude, north positive

Referenced by init_params(), and IBFaceSet::sun_at().

◆ longitude_deg

amrex::Real IBSEBParams::longitude_deg = -105.0

solar: site longitude, east positive

Referenced by init_params(), and IBFaceSet::sun_at().

◆ lw_down

amrex::Real IBSEBParams::lw_down = 300.0

fixed: sky longwave [W/m2]

Referenced by init_params().

◆ lw_mode

std::string IBSEBParams::lw_mode = "gray"

Referenced by init_params().

◆ material_by_building

std::vector<int> IBSEBParams::material_by_building

Referenced by init_params().

◆ material_default

int IBSEBParams::material_default = 1

Referenced by init_params().

◆ material_file

std::string IBSEBParams::material_file

Referenced by init_params().

◆ n_slab_layers

int IBSEBParams::n_slab_layers = 4

Conduction layers per face.

Referenced by init_params(), and IBFaceSet::n_layers().

◆ newton_max_iter

int IBSEBParams::newton_max_iter = 20

Newton iteration cap per face and step.

Referenced by init_params().

◆ newton_max_step_K

amrex::Real IBSEBParams::newton_max_step_K = 20.0

Largest Newton step [K].

Referenced by init_params().

◆ newton_tol_K

amrex::Real IBSEBParams::newton_tol_K = 1.0e-3

Newton stops when a step changes T_skin by less than this [K].

Referenced by init_params().

◆ obukhov_relax

amrex::Real IBSEBParams::obukhov_relax = 0.5

Under-relaxation of the roof's u*, theta* iteration (1 = none), as erf-model #3486.

Referenced by init_params().

◆ obukhov_seed

std::string IBSEBParams::obukhov_seed = "ground"

"ground" or "neutral"

Referenced by init_params().

◆ prognostic

bool IBSEBParams::prognostic = true

Referenced by init_params().

◆ Q_ext_uniform

amrex::Real IBSEBParams::Q_ext_uniform = 0.0

Uniform external incident flux on every face [W/m2] (test hook)

Referenced by init_params().

◆ radiation

std::string IBSEBParams::radiation = "prescribed"

◆ rho_cp

amrex::Real IBSEBParams::rho_cp = 1.6e6

Uniform volumetric heat capacity [J/m3/K].

Referenced by init_params().

◆ ri_crit

amrex::Real IBSEBParams::ri_crit = 0.25

Critical bulk Richardson number of the diagnostic.

Referenced by init_params().

◆ sky_emissivity

amrex::Real IBSEBParams::sky_emissivity = 0.83

gray: effective clear-sky emissivity

Referenced by init_params().

◆ solar_constant

amrex::Real IBSEBParams::solar_constant = 1361.0

solar: [W/m2]

Referenced by init_params(), and IBFaceSet::sun_at().

◆ stability_correction

bool IBSEBParams::stability_correction = false

Referenced by init_params().

◆ stability_scheme

std::string IBSEBParams::stability_scheme = "iterative"

"iterative" or "louis" (with stability_correction)

Referenced by init_params().

◆ sun_azimuth_deg

amrex::Real IBSEBParams::sun_azimuth_deg = 180.0

fixed: azimuth clockwise from north [deg]; 180 = sun in the south

Referenced by init_params(), and IBFaceSet::sun_at().

◆ sun_min_elev_deg

amrex::Real IBSEBParams::sun_min_elev_deg = 2.0

Referenced by init_params().

◆ sun_mode

std::string IBSEBParams::sun_mode = "fixed"

◆ sun_zenith_deg

amrex::Real IBSEBParams::sun_zenith_deg = 45.0

fixed: zenith angle [deg]

Referenced by init_params(), and IBFaceSet::sun_at().

◆ sw_diffuse

amrex::Real IBSEBParams::sw_diffuse = 100.0

fixed: diffuse irradiance on a horizontal surface [W/m2]

Referenced by init_params(), and IBFaceSet::sun_at().

◆ sw_diffuse_coeff

amrex::Real IBSEBParams::sw_diffuse_coeff = 0.5

solar, two_stream: share of the attenuated beam that arrives as diffuse light

Referenced by init_params(), and IBFaceSet::sun_at().

◆ sw_direct_normal

amrex::Real IBSEBParams::sw_direct_normal = 800.0

fixed: direct-normal irradiance [W/m2]

Referenced by init_params(), and IBFaceSet::sun_at().

◆ sw_transmission

amrex::Real IBSEBParams::sw_transmission = 0.7

solar, two_stream: bulk clear-sky transmission (Bird)

Referenced by init_params(), and IBFaceSet::sun_at().

◆ T_ground

amrex::Real IBSEBParams::T_ground = 300.0

Ground temperature for the ground term [K].

Referenced by init_params().

◆ T_interior

amrex::Real IBSEBParams::T_interior = 293.0

Interior (deep) temperature [K].

Referenced by init_params(), and IBFaceSet::print_debug_summary().

◆ T_skin_init

amrex::Real IBSEBParams::T_skin_init = 300.0

Initial skin temperature [K].

Referenced by init_params(), and IBFaceSet::print_debug_summary().

◆ T_skin_max

amrex::Real IBSEBParams::T_skin_max = 380.0

Upper bound [K]; raise it for faces under a fire.

Referenced by init_params().

◆ T_skin_min

amrex::Real IBSEBParams::T_skin_min = 260.0

Lower bound of the skin temperature [K].

Referenced by init_params().

◆ thickness

amrex::Real IBSEBParams::thickness = 0.3

Uniform slab thickness [m].

Referenced by init_params().

◆ time_zero_utc_s

amrex::Real IBSEBParams::time_zero_utc_s = 12.0 * 3600.0

solar: seconds after 00:00 UTC at simulation time zero (the sun follows UTC and the longitude)

Referenced by init_params(), and IBFaceSet::sun_at().

◆ two_stream_buildings

bool IBSEBParams::two_stream_buildings = true

◆ two_stream_buildings_given

bool IBSEBParams::two_stream_buildings_given = false

Whether the deck sets it (start-up checks)

Referenced by init_params().

◆ two_stream_roofs

bool IBSEBParams::two_stream_roofs = false

The two-stream columns under the buildings (needs two_stream_buildings): a column under a building starts on the building's roof, with the roof face's albedo, emissivity and skin temperature, in place of the held ground under the building seen through the building's cells. false: the columns pass through the buildings down to that ground.

Referenced by init_params().

◆ view_n_az

◆ view_n_el

◆ z0_wall

amrex::Real IBSEBParams::z0_wall = 0.01

Momentum roughness of the faces [m].

Referenced by init_params().

◆ z0h_wall

amrex::Real IBSEBParams::z0h_wall = 0.001

Heat roughness of the faces [m].

Referenced by init_params().

◆ z_i

amrex::Real IBSEBParams::z_i = 1000.0

Fixed mixed-layer depth [m] (z_i_mode = fixed, and the fallback)

Referenced by init_params().

◆ z_i_mode

std::string IBSEBParams::z_i_mode = "bulk_ri"

"bulk_ri", "pblh" or "fixed"

Referenced by init_params().


The documentation for this struct was generated from the following file: