modelBuoyancy_specifyFriction

Extends from BaseClasses.PartialResistancenew.

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal (from PartialResistancenew)true= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Visualization
BooleanshowName (from PartialResistancenew)true= false to hide component name
Initialization
SI.MassFlowRatem_flow_start (from PartialResistancenew)0Initial mass flow rate
Advanced
SI.MassFlowRatem_flow_smooth (from PartialResistancenew)0.001Smoothing tolerance around zero flow rate
SI.MassFlowRatedp_smooth (from PartialResistancenew)0.001Smoothing tolerance around zero flow rate
SI.ReynoldsNumberRe_lam (from PartialResistancenew)2300Laminar transition Reynolds number
SI.ReynoldsNumberRe_turb (from PartialResistancenew)4000Turbulent transition Reynolds number

Connectors

TypeNameDefaultDescription
Interfaces.FluidPort_Flowport_a (from PartialResistanceInterface)
Interfaces.FluidPort_Flowport_b (from PartialResistanceInterface)

Components

TypeNameDefaultDescription
Medium.ThermodynamicStatestate (from PartialResistanceInterface)
Medium.ThermodynamicStatestate_a (from PartialResistancenew)
Medium.ThermodynamicStatestate_b (from PartialResistancenew)
SI.PressureDifferencedp (from PartialResistancenew)
SI.MassFlowRatem_flow (from PartialResistancenew)
SI.Lengthdimension1Characteristic dimension
SI.Lengthlength1Characteristic length
SI.Angleangle0Inclination angle. -90 < x < 90
SIadd.NonDimf0.01Friction factor
SIadd.NonDimK0Minor losses
SI.Accelerationg_nModelica.Constants.g_nGravitational acceleration
SI.Lengthdheightlength*sin(angle)
SI.Densityd_deltaMedium.density(state_b) - Medium.density(state_a)