modelAdvectionStream
Flow of whole solution through a dead-volume pipe.
Extends from Bodylight.Hydraulic.Interfaces.ConditionalSolutionFlow (Input of solution volumetric flow vs. parametric solution volumetric flow).
Information
Bidirectional mass flow by concentration through discretized dead-volume pipe
Uses discretization of the partial differention. Acts similarly to stream, just has non-zero volume for shift of dead-volume.
Possible field values:
forward flow |
backward flow |
|
solutionFlow |
>=0 |
<=0 |
q_in.q |
=solutionFlow*q_in.conc |
=-q_out.q |
q_out.q |
=-q_in.q |
=solutionFlow*q_out.conc |
Filip Jezek, Charles University, Prague, Czech Republic
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.VolumeFlowRate | SolutionFlow (from ConditionalSolutionFlow) | 0 | Volumetric flow of solution if useSolutionFlowInput=false |
| Integer | N | 100 | number of the discrete elements of the tube |
| Bodylight.Types.Position | length | 0.1 | tube length |
| Bodylight.Types.Position | d | 1e-2 | Diameter of the tube |
| Real | diffusion_coefficient | 0 | diffusion coefficient. Default = 0 |
| Bodylight.Types.Concentration[N] | c_init | zeros(N) | Initial concentrations. The border values are not used, as they are set by the border conditions. |
| External inputs/outputs | |||
| Boolean | useSolutionFlowInput (from ConditionalSolutionFlow) | false | =true, if solution flow input is used instead of parameter SolutionFlow |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Types.RealIO.VolumeFlowRateInput | solutionFlow (from ConditionalSolutionFlow) | q | |
| Bodylight.Chemical.Interfaces.ChemicalPort_b | q_out | ||
| Bodylight.Chemical.Interfaces.ChemicalPort_a | q_in |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Types.VolumeFlowRate | q (from ConditionalSolutionFlow) | Current solution flow | |
| Modelica.Units.SI.Area | area_tube_crosssection | 3.14*(d/2)^2 | crosssection tube area |
| Bodylight.Types.Volume | volume_total | area_tube_crosssection*length | |
| Bodylight.Types.Velocity | v | q/area_tube_crosssection | velocity of the flow in m/s |
| Bodylight.Types.Concentration[N] | c |