Skip to content

Commit

Permalink
updated tutorial: hexagonal arrangement added
Browse files Browse the repository at this point in the history
  • Loading branch information
akosira committed Jun 11, 2024
1 parent 0cc8f81 commit 1d51dc0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
42 changes: 22 additions & 20 deletions docs_src/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,25 @@ A partial config is allowed (e.g., one only containing a new water:cp_w entry).

.. code-block:: yaml
# model dimensionality/temperature resolution within vial (homogeneous, spatial_1D, spatial_2D)
dimensionality: homogeneous
# freezing configuration to be simulated (shelf, VISF, jacket)
configuration: shelf
# additional parameters for the shelf-scale model (Snowfall and Snowflake modules)
snowfall_parameters:
# arrangment of vials (square or hexagonal)
vial_arrangement: square
# all vial-related parameters
vial:
# define the geometry
geometry:
# base shape of vial (snow and snowfall only accepts cube, snowing rewrites it to cylinder)
# base shape of vial
shape: cube
# height of the filled product when shape is cube [m]
# height of the filled product [m]
height: 0.01
# length of the vial when shape is cube [m]
length: 0.01
# width of the vial when shape is cube [m]
width: 0.01
# all parameters realted to water
# all parameters related to water
water:
# specific heat capacity of liquid water [J/kgK]
cp_w: 4187
Expand Down Expand Up @@ -88,6 +87,12 @@ A partial config is allowed (e.g., one only containing a new water:cp_w entry).
# vial-dependent pre-exponential nucleation parameter [-]
c: 1.00
general:
# the Stefan-Boltzmann constant [W/m2]
sigma_B: 5.67e-8
# Boltzmann constant [JK]
k_B: 1.38e-23
Example
========

Expand Down Expand Up @@ -184,26 +189,23 @@ The spatial model (termed Snowing) accounts for different **dimensionalities (0D

.. code-block:: yaml
# model dimensionality/temperature resolution within vial (homogeneous, spatial_1D, spatial_2D)
dimensionality: spatial_1D
# freezing configuration to be simulated (shelf, VISF, jacket)
configuration: shelf
# additional parameters for the spatial model (Snowing module)
snowing_parameters:
# model dimensionality/temperature resolution within vial (homogeneous, spatial_1D, spatial_2D)
dimensionality: spatial_1D
# freezing configuration to be simulated (shelf, VISF, jacket)
configuration: shelf
# all vial-related parameters
vial:
# define the geometry
geometry:
# base shape of vial (snow and snowfall only accepts cube, snowing rewrites it to cylinder)
# base shape of vial (snow and snowfall only accepts cube, snowing automatically rewrites it to cylinder)
shape: cube
# diameter of the vial for cylindrical geometry (only spatial model) [m]
diameter: 0.01
# height of the filled product for cubic (snow/snowfall) and cylindrical geometry (only spatial model) [m]
# height of the filled product [m]
height: 0.01
# length of the vial when shape is cube [m]
length: 0.01
# width of the vial when shape is cube [m]
width: 0.01
# parameters used in VISF simulation
VISF:
Expand Down
12 changes: 6 additions & 6 deletions src/ethz_snow/config/snowConfig_default.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# additional parameters for the shelf-scale model (Snowfall and Snowflake modules)
# additional parameters for Snowfall and Snowflake modules
snowfall_parameters:
# arrangment of vials (only for homogeneous dimensionality model)
vial_arrangement: hexagonal
# arrangment of vials
vial_arrangement: square

# additional parameters for the spatial model (Snowing module)
snowing_parameters:
Expand Down Expand Up @@ -47,7 +47,7 @@ jacket:
# heat conductivity of air [W/mK]
lambda_air: 0.025

# all parameters realted to water
# all parameters related to water
water:
# specific heat capacity of liquid water [J/kgK]
cp_w: 4187
Expand Down Expand Up @@ -87,7 +87,7 @@ kinetics:
c: 1.00

general:
# the Stefan-Boltzmann constant [W/m2]
# Stefan-Boltzmann constant [W/m2]
sigma_B: 5.67e-8
# Boltzmann cosntant [JK]
# Boltzmann constant [JK]
k_B: 1.38e-23

0 comments on commit 1d51dc0

Please sign in to comment.