Skip to content

Commit 2944c36

Browse files
committed
fixup! update interface
1 parent 30c2b7a commit 2944c36

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

doc/developer_guide/examples/breakthrough.py

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,43 +26,39 @@
2626
model.root.input.model.unit_001.col_porosity = 0.37 # -
2727
model.root.input.model.unit_001.par_porosity = 0.33 # -
2828
model.root.input.model.unit_001.par_radius = 1e-6 # m
29-
30-
## Transport
29+
30+
## Bulk transport
3131
model.root.input.model.unit_001.col_dispersion = 1e-8 # m^2 / s (interstitial volume)
32-
model.root.input.model.unit_001.film_diffusion = [1e-5] # m / s
33-
model.root.input.model.unit_001.par_diffusion = [1e-10,] # m^2 / s (mobile phase)
34-
model.root.input.model.unit_001.par_surfdiffusion = [0.0,] # m^2 / s (solid phase)
32+
33+
## Particle transport
34+
model.root.input.model.unit_001.particle_type_000.film_diffusion = [1e-5] # m / s
35+
model.root.input.model.unit_001.particle_type_000.par_diffusion = [1e-10,] # m^2 / s (mobile phase)
36+
model.root.input.model.unit_001.particle_type_000.par_surfdiffusion = [0.0,] # m^2 / s (solid phase)
3537

3638
## Adsorption
37-
model.root.input.model.unit_001.adsorption_model = 'MULTI_COMPONENT_LANGMUIR'
38-
model.root.input.model.unit_001.nbound = [1]
39-
model.root.input.model.unit_001.adsorption.is_kinetic = True # Kinetic binding
40-
model.root.input.model.unit_001.adsorption.mcl_ka = [1.0,] # m^3 / (mol * s) (mobile phase)
41-
model.root.input.model.unit_001.adsorption.mcl_kd = [1.0,] # 1 / s (desorption)
42-
model.root.input.model.unit_001.adsorption.mcl_qmax = [100.0,] # mol / m^3 (solid phase)
39+
model.root.input.model.unit_001.particle_type_000.adsorption_model = 'MULTI_COMPONENT_LANGMUIR'
40+
model.root.input.model.unit_001.particle_type_000.nbound = [1]
41+
model.root.input.model.unit_001.particle_type_000.adsorption.is_kinetic = True # Kinetic binding
42+
model.root.input.model.unit_001.particle_type_000.adsorption.mcl_ka = [1.0,] # m^3 / (mol * s) (mobile phase)
43+
model.root.input.model.unit_001.particle_type_000.adsorption.mcl_kd = [1.0,] # 1 / s (desorption)
44+
model.root.input.model.unit_001.particle_type_000.adsorption.mcl_qmax = [100.0,] # mol / m^3 (solid phase)
4345

4446
## Initial conditions
4547
model.root.input.model.unit_001.init_c = [0.0,]
46-
model.root.input.model.unit_001.INIT_CS = [0.0,]
48+
model.root.input.model.unit_001.particle_type_000.init_cp = [0.0,]
49+
model.root.input.model.unit_001.particle_type_000.init_cs = [0.0,]
4750

4851
## Discretization
4952
### Grid cells
50-
model.root.input.model.unit_001.discretization.spatial_method = "FV"
51-
model.root.input.model.unit_001.discretization.ncol = 20
52-
model.root.input.model.unit_001.discretization.npar = 5
53-
53+
model.root.input.model.unit_001.discretization.spatial_method = "DG" # "FV" recommended for strong gradients, where DG might oscillate
54+
model.root.input.model.unit_001.discretization.polydeg = 3 # recommended to be increased up to 5 if higher resolution is desired for smooth solutions
55+
model.root.input.model.unit_001.discretization.nelem = 3 # recommended to be increased if higher resolution is desired
56+
model.root.input.model.unit_001.particle_type_000.discretization.spatial_method = "DG"
57+
model.root.input.model.unit_001.particle_type_000.discretization.par_polydeg = 3 # recommended to be increased if higher resolution is desired
58+
model.root.input.model.unit_001.particle_type_000.discretization.par_nelem = 1 # recommended to stay fixed at 1 except for targeted resolution of particle (ie user defined par_disc_type)
5459
### Other options
55-
model.root.input.model.unit_001.discretization.par_disc_type = 'EQUIDISTANT'
60+
model.root.input.model.unit_001.discretization.particle_type_000.par_disc_type = 'EQUIDISTANT'
5661
model.root.input.model.unit_001.discretization.use_analytic_jacobian = 1
57-
model.root.input.model.unit_001.discretization.reconstruction = 'WENO'
58-
model.root.input.model.unit_001.discretization.gs_type = 1
59-
model.root.input.model.unit_001.discretization.max_krylov = 0
60-
model.root.input.model.unit_001.discretization.max_restarts = 10
61-
model.root.input.model.unit_001.discretization.schur_safety = 1.0e-8
62-
63-
model.root.input.model.unit_001.discretization.weno.boundary_model = 0
64-
model.root.input.model.unit_001.discretization.weno.weno_eps = 1e-10
65-
model.root.input.model.unit_001.discretization.weno.weno_order = 3
6662

6763
## Outlet
6864
model.root.input.model.unit_002.unit_type = 'OUTLET'

0 commit comments

Comments
 (0)