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

TypeNameDefaultDescription
Types.VolumeFlowRateSolutionFlow (from ConditionalSolutionFlow)0Volumetric flow of solution if useSolutionFlowInput=false
IntegerN100number of the discrete elements of the tube
Bodylight.Types.Positionlength0.1tube length
Bodylight.Types.Positiond1e-2Diameter of the tube
Realdiffusion_coefficient0diffusion coefficient. Default = 0
Bodylight.Types.Concentration[N]c_initzeros(N)Initial concentrations. The border values are not used, as they are set by the border conditions.
External inputs/outputs
BooleanuseSolutionFlowInput (from ConditionalSolutionFlow)false=true, if solution flow input is used instead of parameter SolutionFlow

Connectors

TypeNameDefaultDescription
Types.RealIO.VolumeFlowRateInputsolutionFlow (from ConditionalSolutionFlow)q
Bodylight.Chemical.Interfaces.ChemicalPort_bq_out
Bodylight.Chemical.Interfaces.ChemicalPort_aq_in

Components

TypeNameDefaultDescription
Types.VolumeFlowRateq (from ConditionalSolutionFlow)Current solution flow
Modelica.Units.SI.Areaarea_tube_crosssection3.14*(d/2)^2crosssection tube area
Bodylight.Types.Volumevolume_totalarea_tube_crosssection*length
Bodylight.Types.Velocityvq/area_tube_crosssectionvelocity of the flow in m/s
Bodylight.Types.Concentration[N]c