# Version_3_0


Version 4.1 (December 20, 2011)    
ThermoSysPro modifications from version 2.0     
Analytic jacobian is added to the library.    
The examples package is added to the library.    
Other modifications:    

Component MultiFluids.HeatExchangers.DynamicExchangerWaterSteamFlueGases     

o   Introduction of two new parameters z1 and z2     
o   Correction of parameters TwoPhaseFlowPipe.z1, and TwoPhaseFlowPipe.z2. Old values z1 = 0 and z2 = 0. New values z1 = z1 and z2 = z2.     

Package Units     

o   New unit AbsoluteTemperature     
o   New unit DifferentialTemperature     
o   New unit  AbsolutePressure     
o   New unit DifferentialPressure     
o   New unit SpecificEnthalpy     

Component  ElectroMechanics.Machines.SynchronousMotor     

o   Parameter permanent_meca changed to steady_stae_mech     
o   Parameter Coupleur changed to mech_coupling     

Component  ElectroMechanics.Machines.Shaft     

o   Parameter permanent_meca changed to steady_state_mech     

Package Properties.WaterSteam.IF97_packages     

o   New IF97 package with analytic jacobian     
o   Removal of the old IF97 package     

Function IF97.SplineUtilities.Modelica_Interpolation.Bspline1D.parametrization     

o   arccos changed to acos     

Component WaterSteam.PressureLosses.CheckValve     

o   Adding modifier (start=false, fixed=true) for variables touvert and tferme.     

Component WaterSteam.PressureLosses.IdealCheckValve     

o   Adding modifier (start=false, fixed=true) for variables touvert and tferme.     

Component FlueGases.PressureLosses.CheckValve     

o   Adding modifier (start=false, fixed=true) for variables touvert and tferme.     

Component WaterSteam.HeatExchangers.DynamicTwoPhaseFlowPipe     

o   Adding a default value to parameter T0     

Package Functions     

o   New function SmoothStep     
o   New function SmoothSign     
o   New function SmoothAbs     

Component WaterSteam.Machines.DynamicCentrifugalPump     

o   Use of function SmoothSign for computation of Cf.     
o   New parameter continuous_flow_reversal     

Component WaterSteam.Machines.StaticCentrifugalPump     

o   New parameter continuous_flow_reversal     
o   Removing input commandePompe     
o   Input VRotation changed to rpm_or_mpower     
o   New parameter MPower     
o   New parameter fixed_rot_or_power     
o   Efficiency characteristics rh=a*Qv^2/R^2 + b*Qv/R + c changed to rh=a*Qv*abs(Qv)/R^2+b*Qv/R+c to ensure convergence for fixed mechanical power     

Component WaterSteam.PressureLoses.LumpedStraightPipe <======     

o   Modification of default value of parameter rugosrel. Old value: 0, new value 0.0001.     
o   Adding initial equation:  der(Q) = 0     

Component WaterSteam.Volumes.TwoPhaseVolume     

o   Property prol is computed at pressure (P + Pfond)/2 instead of P.     

Component WaterSteam.HeatExchangers.DynamicOnePhaseFlowPipe     

o   New parameter dpfCorr     
o   New parameter hcCorr     

Component WaterSteam.HeatExchanger.DynamicTwoPhaseFlowPipe     

o   New parameter dpfCorr     

Component Thermal.HeatTransfer.HeatExchangerWall     

o   Wall 1 becomes the internal wall     
o   Wall 2 becomes the external wall     
o   Heat flux through external wall is corrected     

Component WaterSteam.HeatExchanger. StaticWaterWaterExchangerDTorWorEff     

o   Modification of the power equation for case exchanger_type = 3.     

Component WaterSteam.HeatExchanger.TemperatureWallBoiler     

o   Modification of some parameter default values     

Function Correlations.PressureLosses.WBWaterSteamPressureLosses     

o   b0 is bounded to 0.01     
o   Gm^2 is replaced by Gm*abs(Gm)     
o   Adding equation dpa := 0.     

Function Properties.WaterSteam.BaseIF97.Basic.psat     

o   Calls to LogVariable removed.     

Component Combustion.BoundaryConditions.FuelSourcePQ     

o   Handling of input signals corrected.     

Component MultiFluid.HeatExchangers.NTUTechnologicalExchangerWaterSteamFlueGases     

o   Correction of computation of variable mono.     

Component WaterSteam.Machines.StodolaTurbine     

o   Modification of default value for parameter Qmax. Old Value=15, new value=1.     

Function Correlation.Thermal.WBInternalHeatTransferCoefficient     

o   New function.     

Component WaterSteamHeatExchangers.TemperatureWallBoiler     

o   Call to WBInternalHeatTransferCoefficient instead of separate calls to WBInternalOnePhaseFlowHeatTransferCoefficient and WBInternalTwoPhaseFlowHeatTransferCoefficient     

Component WaterSteam.Junctions.Mixer3     

o   Bug correction: flow from port Ce3 added in mass balance and energy balance equations.     

Component WaterSteam.BoundaryConditions.RefQ     

o   Correction of default value for Q0. Old value=1.e5. New value=10.     

Component WaterSteam.Junctions.StaticDrum     

o   Correction of comment for parameter x     
o   Adding thermal connector Cth and variable T     
o   Modification of energy balance equation to take into account external energy supply.     
o   Adding equation Cth.T = T;     

Package Thermal.BoundaryConditions     

o   New component HeatSink     

Package WaterSteam.BoundaryConditions     

o   New components PlugA, PlugB     

Component InstrumentationAndControl.Blocks.Tables.Table1D     

o   Dymola specific function Interpolate is replaced by ThermoSysPro.Functions.LinearInterpolation.     

Component InstrumentationAndControl.Blocks.Tables.Table1DTemps     

o   Dymola specific function Interpolate is replaced by ThermoSysPro.Functions.LinearInterpolation.     

Function Functions.LinearInterpolation     

o   Output DeltaYX is removed.     
o   Function calls Functions.LinearInterpolation_i, which returns DelTaXY.     

Function Functions.TableLinearInterpolation     

o   Outputs DeltaYX and DeltaYP are removed.     
o   Function calls Functions.TableLinearInterpolation_i, which returns DelTaXY and DeltaYP.     

Function Correlations.Misc..WBCorrectiveDiameterCoefficient     

o   Unused variables Z1, Z2 are removed.     

Function Correlations.Thermal.WBCrossedCurrentConvectiveHeatTranferCoefficient     

o   Unused variables Z1, Z2 are removed.     

Function Correlations.Thermal.WBLongitudinalCurrentConvectiveHeatTranferCoefficient     

o   Unused variables Z1, Z2 are removed.     

Function Correlations.Thermal.WBRadiativeHeatTranferCoefficient     

o   Unused variables Z1, Z2, Z3, Z4 are removed.     

Component WaterSteam.Machines.SteamEngine     

o   Function Interpolation is replaced by function LinearInterpolation     

Component WaterSteam.PressureLosses.ControlValve     

o   Function Interpolation is replaced by function LinearInterpolation     

Component WaterSteam.PressureLosses.DynamicCheckValve     

o   Function Interpolation is replaced by function LinearInterpolation     

Component WaterSteam.PressureLosses.DynamicReliefValve     

o   Function Interpolation is replaced by function LinearInterpolation     

Component FlueGases.PressureLosses.ControlValve     

o   Function Interpolation is replaced by function LinearInterpolation     

Package Functions     

o   Function Interpolation is removed. One should use function LinearInterpolation instead.     

Package Units     

o   Unit RotationVelocity renamed to AngularVelocity_rpm     
      