diff --git a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo index a65dbb8d..028e88b5 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo @@ -1,10 +1,16 @@ within ThermofluidStream.Boundaries; model DynamicPressureInflow "Extension of (p,T) source to (p,T,velocity)" - extends Interfaces.SISOFlow(final clip_p_out=true); + extends ThermofluidStream.Interfaces.SISOFlow(clip_p_out=true,dp(start=dp_start),p_out(start=p_start),outlet(state(p(start=p_start),T(start=T_start)))); parameter Boolean assumeConstantDensity=true "= true, if incompressibility is assumed (use '= false' for Ma > 0.3)" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter SI.PressureDifference dp_start = 0 "Start value for pressure difference for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable = not assumeConstantDensity)); + parameter SI.Pressure p_start = Medium.p_default "Start value for outlet pressure for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable= not assumeConstantDensity)); + parameter SI.Temperature T_start = Medium.T_default "Start value for outlet temperature for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable= not assumeConstantDensity)); parameter Boolean velocityFromInput = false "= true, if input connector for outlet velocity is enabled" annotation(Dialog(group="Nozzle / Diffusor definition"),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter SI.Velocity v_in_par = 0 "Inlet velocity" diff --git a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo index b2975826..f7f8c4e2 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo @@ -1,10 +1,16 @@ within ThermofluidStream.Boundaries; model DynamicPressureOutflow "Extension of (p) sink to (p,velocity)" - extends Interfaces.SISOFlow(final clip_p_out=true); + extends ThermofluidStream.Interfaces.SISOFlow(clip_p_out=true,dp(start=dp_start),p_out(start=p_start),outlet(state(p(start=p_start),T(start=T_start)))); parameter Boolean assumeConstantDensity= true "= true, if incompressibility is assumed (use '= false' for Ma > 0.3)" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter SI.PressureDifference dp_start = 0 "Start value for pressure difference for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable = not assumeConstantDensity)); + parameter SI.Pressure p_start = Medium.p_default "Start value for outlet pressure for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable= not assumeConstantDensity)); + parameter SI.Temperature T_start = Medium.T_default "Start value for outlet temperature for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable= not assumeConstantDensity)); parameter Boolean areaFromInput = false "= true, if input connector for inlet cross section area is enabled" annotation(Dialog(group="Nozzle / Diffusor definition"),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter SI.Area A_par = 1 "Inlet cross-section area" diff --git a/ThermofluidStream/Processes/Nozzle.mo b/ThermofluidStream/Processes/Nozzle.mo index 57f40759..cf34d1a7 100644 --- a/ThermofluidStream/Processes/Nozzle.mo +++ b/ThermofluidStream/Processes/Nozzle.mo @@ -1,9 +1,15 @@ within ThermofluidStream.Processes; model Nozzle "Model for dynamic pressure difference" - extends ThermofluidStream.Interfaces.SISOFlow(final L = L_value, final clip_p_out=true); + extends ThermofluidStream.Interfaces.SISOFlow(clip_p_out=true,dp(start=dp_start),p_out(start=p_start),outlet(state(p(start=p_start),T(start=T_start)))); parameter Boolean assumeConstantDensity=true "= true, if incompressibility is assumed (use '= false' for Ma > 0.3)" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter SI.PressureDifference dp_start = 0 "Start value for pressure difference for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable = not assumeConstantDensity)); + parameter SI.Pressure p_start = Medium.p_default "Start value for outlet pressure for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable= not assumeConstantDensity)); + parameter SI.Temperature T_start = Medium.T_default "Start value for outlet temperature for solving nonlinear equation system" + annotation(Dialog(group="Numerics",enable= not assumeConstantDensity)); parameter Boolean area_in_FromInput = false "= true, if input connector for inlet cross section area is enabled" annotation(Dialog(group="Nozzle / Diffusor definition"),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter SI.Area A_in = 1 "Inlet cross-sectional area"