Skip to content

Commit 21b3019

Browse files
committed
added nomenclature docstring
1 parent ed37e60 commit 21b3019

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/sparging/config.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22
import scipy.constants as const
33
import logging
44

5+
"""
6+
Naming convention (paper symbol <-> code)
7+
=========================================
8+
Core rule: <quantity>_<species> mirrors the paper symbol, e.g.
9+
c_T2 -> c_{T2} ndot_T2 -> \\dot n_{T2} P_g/P_l -> P_g/P_l
10+
11+
Collections are named by the AXIS they vary along:
12+
_profile : varies in space z (1D array)
13+
_profiles : space x time (2D array, leading axis = time)
14+
_series : varies in time (1D array)
15+
16+
Fixed suffix vocabulary:
17+
Xdot : time derivative / rate (\\dot X) -> ndot_T2, Vdot_g0
18+
X_ave : spatial/quantity average (\\bar X) -> gen_T2_ave
19+
X_0 : tank bottom / gas inlet
20+
X_init : initial condition (t=0)
21+
"""
22+
523
molar_mass_T2 = 3.016 * 2 # g/mol T2
624
specific_activity_tritium = 3.57e14 # Bq/g
725
molT2_to_activity = molar_mass_T2 * specific_activity_tritium # Bq/mol T2

0 commit comments

Comments
 (0)