diff --git a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo index e0868db..5750963 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo @@ -64,7 +64,7 @@ equation if extrapolateQuadratic then v_mean = (v_out+v_in)*0.5; else - //the mean velocity is limited to half the velcocity that is bound to the actual mass-flow rate + //the mean velocity is limited to half the velocity that is bound to the actual mass-flow rate v_mean =Undirected.Internal.regStep( sign(v_in)*m_flow, (v_out + v_in)*0.5, @@ -111,11 +111,11 @@ equation color={0,127,0}, thickness=0.5)}), Documentation(info=" -

This Inflow Boundary is supposed to start an area of the model where dynamic pressure is taken into account. The area is ended with DynamicPressureOutflows.

+

This inflow boundary is supposed to start an area of the model where dynamic pressure is taken into account. The area is ended with DynamicPressureOutflows.

Components that take dynamic pressure into account (marked with green symbols) should only be used in areas surrounded by DynamicPressureInflows and DynamicPressureOutflows.

-

The components input velocity can be set to a fixed value or given by a signal. From this reference inflow velocity the medium is accelerated to fit the outflow velocity, that is computed by the Area of the Component.

+

The components input velocity can be set to a fixed value or given by a signal. From this reference inflow velocity the medium is accelerated to fit the outflow velocity, that is computed by the area of the component. The sign of the velocity is defined to match the sign of the mass-flow rate at the inlet.

The pressure difference resulting from the velocity difference is based on the total pressure balance, implicitly assuming a nozzle/diffusor of suitable area ratio. When the sign of the velocity does not match the sign of the mass-flow rate, this assumption cannot be upheld. The model then extrapolates the dynamic pressure difference in order to maintain a stable and well-natured behavior but its validity is lost.

-

The area can be set to a fixed value or given by a signal, representing a variable-area inlets.

-

In general the component has a non-linear equation system of size 1, because it computes the outlet velocity based on the outlet density. This can be resolved by setting Advanced->assumeConstantDensity=true (default: false), because then only the inlet density is used in the whole component.

+

The area can be set to a fixed value or given by a signal, representing a variable-area inlet.

+

By default, the density is assumed to be constant across the component and only the inlet density is used for the calculation of the velocity. This assumption can be reverted by setting assumeConstantDensity = false. This will lead to a non-linear equation system of size 1, as the outlet velocity is calculated based on the outlet density.

")); end DynamicPressureInflow; diff --git a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo index 192bc55..e2256f4 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo @@ -114,11 +114,11 @@ equation color={0,127,0}, thickness=0.5)}), Documentation(info=" -

This Outflow Boundary is supposed to end a area of the model where dynamic pressure is taken into account. The area is started with DynamicPressureInflows.

+

This outflow boundary is supposed to end an area of the model where dynamic pressure is taken into account. The area is started with DynamicPressureInflows.

Components that take dynamic pressure into account (marked with green symbols) should only be used in areas surrounded by DynamicPressureInflows and DynamicPressureOutflows.

-

The components output velocity can be set to a fixed Value or given by a signal. From the inflow velocity, that is computed by the Area of the Component, the flow is decelerated to the reference outflow velocity.

+

The components output velocity can be set to a fixed value or given by a signal. From the inflow velocity, that is computed by the area of the component, the flow is decelerated to the reference outflow velocity. The sign of the velocity is defined to match the sign of the mass-flow rate at the inlet.

The pressure difference resulting from the velocity difference is based on the total pressure balance, implicitly assuming a nozzle/diffusor of suitable area ratio. When the sign of the velocity does not match the sign of the mass-flow rate, this assumption cannot be upheld. The model then extrapolates the dynamic pressure difference in order to maintain a stable and well-natured behavior but its validity is lost.

-

The area can be set to a fixed value or given by a signal, representing a variable-area outlets.

-

In general the component has a non-linear equation system of size 1, because it computes the outlet velocity based on the outlet density. This can be resolved by setting Advanced->assumeConstantDensity=true (default: false), because then only the inlet density is used in the whole component.

+

The area can be set to a fixed value or given by a signal, representing a variable-area outlet.

+

By default, the density is assumed to be constant across the component and only the inlet density is used for the calculation of the velocity. This assumption can be reverted by setting assumeConstantDensity = false. This will lead to a non-linear equation system of size 1, as the outlet velocity is calculated based on the outlet density.

")); end DynamicPressureOutflow; diff --git a/ThermofluidStream/Processes/Nozzle.mo b/ThermofluidStream/Processes/Nozzle.mo index f2c3f93..4c6d684 100644 --- a/ThermofluidStream/Processes/Nozzle.mo +++ b/ThermofluidStream/Processes/Nozzle.mo @@ -10,8 +10,8 @@ model Nozzle "Model for dynamic pressure difference" annotation(Dialog(tab="Advanced")); protected - SI.Density rho_in = Medium.density(inlet.state) "density of medium entering"; - SI.Density rho_out "density of medium exiting"; + SI.Density rho_in = Medium.density(inlet.state) "Density of medium entering"; + SI.Density rho_out "Density of medium exiting"; SI.Velocity v_in; SI.Velocity v_out; @@ -67,6 +67,8 @@ equation lineThickness=0.5)}), Diagram(coordinateSystem(preserveAspectRatio=false)), Documentation(info=" -

Implementation of nozzle taking gas dynamic effects into account.

+

Implementation of a nozzle taking gas dynamic effects into account.

+

By default, the density is assumed to be constant across the component. This assumption can be reverted by setting assumeConstantDensity = false and hence the outlet velocity is computed by the outlet density. Beware that this will lead to a non-linear equation system in the component.

+

By definition, the sign of the velocity matches the sign of the mass-flow rate at the inlet.

")); end Nozzle;