
modelProblem_3
Single species drift with decay non-uniform concentration
Extends from TRANSFORM.Icons.Example (Icon for runnable examples).
Parameters
| Type | Name | Default | Description |
| Integer | nC | 1 | |
| Integer | nV | 10 | |
| SI.Length | length | 1.0 | |
| SI.Length | dimension | 0.01 | |
| SI.Temperature | T_start | 20 + 273.15 | |
| SI.Pressure | p_start | 1e5 | |
| SI.Velocity | v | 0.02 | |
| SI.MassFlowRate | m_flow | Medium.density_pT(p_start, T_start)*Modelica.Constants.pi*dimension^2/4*v | |
| TRANSFORM.Units.InverseTime[nC] | lambda_i | fill(0.1, nC) | |
| SIadd.ExtraPropertyConcentration[nV,nC] | C_i_start | 1000*ones(nV, nC) | |
| SIadd.ExtraPropertyConcentration[nC] | C_i_inlet | 1000*ones(nC) | |
| SIadd.ExtraPropertyConcentration[nV,nC] | C_i_w_start | zeros(nV, nC) | |
| SIadd.ExtraProperty[nV,nC] | Cs_start | {{C_i_start[i, j]/Medium.density_pT(p_start, T_start) for j in 1:nC} for i in 1:nV} | |
| SIadd.ExtraProperty[nC] | Cs_inlet | {C_i_inlet[j]/Medium.density_pT(p_start, T_start) for j in 1:nC} | |
| SI.Length[nV] | x | linspace(0, length, nV) | |
Contents
| Name | Description |
Medium | |