param.ini - Sections [Calc-C1-*]
Several sets of parameters can be configured in the same file.
Info
If new sets are to be introduced, new names should be chosen as a section name can only be used once.
Below, two sets of parameters are configured for the flow model C1 (sample1 and sample2). Sets of parameters are only described with one entry, defining "canopy_final" (all other variables will be configured with default parameters).
fvsolution_coarse - solution settings for coarse run
Defines the solution settings to be used during the coarse CFD run.
fvsolution_coarse=simplec_pcg_normal
; solution settings for coarse run
; string
; default: simplec_pcg_normal
Warning
Provided solution setting should be availble within the intern database, in folder:
./ZephyCFD-Core/db/foam_config/fvSolution/
fvsolution_fine - solution settings for fine run
Defines the solution settings to be used during the fine CFD run.
fvsolution_fine=simplec_pcg_normal
; solution settings for fine run
; string
; default: simplec_pcg_normal
Warning
Provided solution setting should be availble within the intern database, in folder:
./ZephyCFD-Core/db/foam_config/fvSolution/
fvsolution_canop - solution settings for canop run
Defines the solution settings to be used during the canop CFD run.
fvsolution_canop=simplec_pcg_normal
; solution settings for canop run
; string
; default: simplec_pcg_normal
Warning
Provided solution setting should be availble within the intern database, in folder:
./ZephyCFD-Core/db/foam_config/fvSolution/
fvschemes_coarse - schemes settings for coarse run
Defines the schemes settings to be used during the coarse CFD run.
fvschemes_coarse=simplec_pcg_normal
; schemes settings for coarse run
; string
; default: simplec_pcg_normal
Warning
Provided schemes setting should be availble within the intern database, in folder:
./ZephyCFD-Core/db/foam_config/fvSchemes/
fvschemes_fine - schemes settings for fine run
Defines the schemes settings to be used during the fine CFD run.
fvschemes_fine=simplec_pcg_normal
; schemes settings for fine run
; string
; default: simplec_pcg_normal
Warning
Provided schemes setting should be availble within the intern database, in folder:
./ZephyCFD-Core/db/foam_config/fvSchemes/
fvschemes_canop - schemes settings for canop run
Defines the schemes settings to be used during the canop CFD run.
fvschemes_canop=simplec_pcg_normal
; schemes settings for canop run
; string
; default: simplec_pcg_normal
Warning
Provided schemes setting should be availble within the intern database, in folder:
./ZephyCFD-Core/db/foam_config/fvSchemes/
init - initialization calculation
Activates coarse CFD run to set intitial conditions for fine CFD run.
Info
When set to False, run directly starts with fine CFD run.
init_vel - rule for velocity field initialization
Defines strategy for evaluating the initial velocity condition.
init_vel=True
Velocity flow field is initialized with a constant velocity equal to: \(V_{ref}\)
init_vel=False
Velocity flow field is initialized with a constant velocity equal to: 0.1 m/s
init_vel=True
; rule for flow field initialization [-]
; boolean
; validity: in [True, False]
; default: False
init_k - rule for turbulent kinetic energy field initialization
init_k=-1.
; rule for turbulent kinetic energy field initialization [-]
; float > 0. ; if < 0: automatic evaluation
; validity: 1.e-8 ≤ init_k ≤ 1.e+8
; default: -1.
Automatic evaluation
init_k is evaluated using expression:
$ H_{ref} $ is the reference height.
$ V_{ref} $ is the reference velocity.
$ R_{ave} $ is the averaged roughness length.
\(C_{μ}\) constant is set by default to 0.09, but it is updated based on selected turbulence model when \(C_{μ}\) constant is defined for it.
init_eps - rule for turbulent dissipation rate field initialization
init_eps=-1.
; rule for turbulent dissipation rate field initialization [-]
; float > 0. ; if < 0: automatic evaluation
; validity: 1.e-8 ≤ init_eps ≤ 1.e+8
; default: -1.
Automatic evaluation
init_eps is evaluated using expression: init_eps=0.2
inlet_vel - rule for velocity inlet boundary condition
Defines strategy for evaluating the inlet velocity boundary conditions.
inlet_vel=-1.
; rule for velocity inlet boundary condition [m/s]
; float > 0. ; if < 0: automatic evaluation
; validity: 1.e-8 ≤ inlet_vel ≤ 1.e+8
; default: -1.
Automatic evaluation
Inlet boundary condition is evaluated based on ABL conditions.
Refer to flow model section.
init_vel>0
Inlet velocity boundary condition uses specified init_vel as uniform velocity.
inlet_k - rule for turbulent kinetic energy inlet boundary condition
Defines strategy for evaluating the inlet turbulent kinetic energy boundary conditions.
inlet_k=-1.
; rule for turbulent kinetic energy inlet boundary condition [m2/s2]
; float > 0. ; if < 0: automatic evaluation
; validity: 1.e-8 ≤ inlet_vel ≤ 1.e+8
; default: -1.
'inlet_k': {'type': 'float', 'def': -1., 'min': 1.e-8, 'max': 1.e+8},
inlet_eps
'inlet_eps': {'type': 'float', 'def': -1., 'min': 1.e-8, 'max': 1.e+8},
turb
'turb': {'type': 'str', 'def': 'krng', 'list': ['keps', 'keps_mod1', 'krea', 'krng', 'keps_mod2', 'kl']},
z0min_wall
'z0min_wall': {'type': 'float', 'def': 0.001, 'min': 0.0, 'max': 1.},
cmu_wall
'cmu_wall': {'type': 'float', 'def': -1., 'min': 0.001, 'max': 1000.},
kappa_wall
'kappa_wall': {'type': 'float', 'def': 0.41, 'min': 0.001, 'max': 1000.},
wall_nut
'wall_nut': {'type': 'str', 'def': 'atmNutk', 'list': ['atmNutk', 'atmNutkBounded', 'atmNut', 'atmNutU']},
outlet_k
'outlet_k': {'type': 'str', 'def': 'inletOutlet', 'list': ['inletOutlet', 'zeroGradient']},
outlet_eps
'outlet_eps': {'type': 'str', 'def': 'zeroGradient', 'list': ['inletOutlet', 'zeroGradient']},
itmax_coarse
'itmax_coarse': {'type': 'int', 'def': 3000, 'min': 0, 'max': 10000},
itmax_fine
'itmax_fine': {'type': 'int', 'def': 5000, 'min': 0, 'max': 10000},
itmax_canop
'itmax_canop': {'type': 'int', 'def': 5000, 'min': 0, 'max': 10000},
cvgcrit_alpha_coarse
'cvgcrit_alpha_coarse': {'type': 'float', 'def': 5e-05, 'min': 1.e-8, 'max': 1.e-2},
cvgcrit_alpha_fine
'cvgcrit_alpha_fine': {'type': 'float', 'def': 5e-05, 'min': 1.e-8, 'max': 1.e-2},
cvgcrit_alpha_canop
'cvgcrit_alpha_canop': {'type': 'float', 'def': 5e-05, 'min': 1.e-8, 'max': 1.e-2},
cvgcrit_turb_coarse
'cvgcrit_turb_coarse': {'type': 'float', 'def': 5e-03, 'min': 1.e-8, 'max': 1.e-2},
cvgcrit_turb_fine
'cvgcrit_turb_fine': {'type': 'float', 'def': 5e-03, 'min': 1.e-8, 'max': 1.e-2},
cvgcrit_turb_canop
'cvgcrit_turb_canop': {'type': 'float', 'def': 5e-03, 'min': 1.e-8, 'max': 1.e-2},
cvgratio_mt_coarse
'cvgratio_mt_coarse': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_lid_coarse
'cvgratio_lid_coarse': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_wt_coarse
'cvgratio_wt_coarse': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_pt_coarse
'cvgratio_pt_coarse': {'type': 'float', 'def': 60., 'min': 0., 'max': 100.},
cvgratio_mt_fine
'cvgratio_mt_fine': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_lid_fine
'cvgratio_lid_fine': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_wt_fine
'cvgratio_wt_fine': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_pt_fine
'cvgratio_pt_fine': {'type': 'float', 'def': 60., 'min': 0., 'max': 100.},
cvgratio_mt_canop
'cvgratio_mt_canop': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_lid_canop
cvgratio_lid_canop: {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_wt_canop
'cvgratio_wt_canop': {'type': 'float', 'def': 100., 'min': 0., 'max': 100.},
cvgratio_pt_canop
'cvgratio_pt_canop': {'type': 'float', 'def': 60., 'min': 0., 'max': 100.},
canopy_fine
p.canopy_fine = get_config(config, 'Calc-' + p.name, 'canopy_fine', p.logger, p.cloud)
canopy_coarse
p.canopy_coarse = get_config(config, 'Calc-' + p.name, 'canopy_coarse', p.logger, p.cloud)
canopy_final
p.canopy_final = get_config(config, 'Calc-' + p.name, 'canopy_final', p.logger, p.cloud)
plantcd
p.plantcd = get_config(config, 'Calc-' + p.name, 'plantcd', p.logger, p.cloud)
leafareadensity
p.leafareadensity = get_config(config, 'Calc-' + p.name, 'leafareadensity', p.logger, p.cloud)
coriolis_fine
p.coriolis_fine = get_config(config, 'Calc-' + p.name, 'coriolis_fine', p.logger, p.cloud)
coriolis_coarse
p.coriolis_coarse = get_config(config, 'Calc-' + p.name, 'coriolis_coarse', p.logger, p.cloud)
smoothres
p.smoothres = get_config(config, 'Calc-' + p.name, 'smoothres', p.logger, p.cloud)
vtkres
p.vtkres = get_config(config, 'Calc-' + p.name, 'vtkres', p.logger, p.cloud)
daemon_wait
p.daemon_wait = get_config(config, 'Calc-' + p.name, 'daemon_wait', p.logger, p.cloud)
halpha1
p.halpha1 = get_config(config, 'Calc-' + p.name, 'halpha1', p.logger, p.cloud)
halpha2
p.halpha2 = get_config(config, 'Calc-' + p.name, 'halpha2', p.logger, p.cloud)
halpha3
p.halpha3 = get_config(config, 'Calc-' + p.name, 'halpha3', p.logger, p.cloud)
rotor
'rotor': {'type': 'bool', 'def': False, 'list': [False, True]},
hrotor
'hrotor': {'type': 'float', 'def': 90., 'min': 50., 'max': 250.},
drotor
'drotor': {'type': 'float', 'def': 80., 'min': 50., 'max': 250.},