improve numerical robustness for the documented scenarios, in particular for different pipe model structures and the alternative use of compressible WaterIF97 

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5848 7ce873d0-865f-4ce7-a662-4bb36ea78beb
fix TestCriticalCases

- TestValvesReverse: configure incompressible medium for used ValveIncompressible; rename to TestComponents.Valves.TestValvesIncompressibleReverse
- add TestComponents.Valves.TestValvesCompressibleReverse, which is original TestValvesReverse with ValveCompressible models
- IdealMixing1: configure from_dp=false in flow models as mixing point has no pressure state


git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5849 7ce873d0-865f-4ce7-a662-4bb36ea78beb
fix remaining initialization issue for Vessels (#799)

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5850 7ce873d0-865f-4ce7-a662-4bb36ea78beb
move test IdealMixing1 to TestComponents.Pipes

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5851 7ce873d0-865f-4ce7-a662-4bb36ea78beb
extend pump tests (see also ticket #372)

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5852 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#946 fixed (initial conditions for Modelica.Stategraph.Examples.*).
Introduced one missing initial condition (this is uncritical, since the missing initial value does not influence the simulation result)

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5853 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#939 fixed (Modelica.Blocks.Continuous.LimPID with dangling parameters):
- Set default values for parameters Ti and Td to fix the bug.
- Fixed a wrong "enable" annotation for parameter limitsAtInit.
- Changed all "enable" annotation expressions to full path names,
  since Dymola seems to otherwise ignore it.

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5854 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#795 fixed (Physical types in Modelica.SIunits should not have start, min, or max values):

Basically, most of the changes performed by Francesco in r4446 according to ticket #487 are undone:

- Density            (min=0; removed max)
- RelativeDensity    (min=0)
- SpecificVolume     (min=0, removed max)
- Pressure           (nominal=1e5, removed min, max, start)
- AbsolutePressure   (min=0.0, removed max)
- PressureDifference (removed min, max)
- ThermodynamicTemperature (min = 0.0, start = 288.15, nominal = 300, removed max)
  // start-value was already present in MSL3.2
- TemperatureDiffference (removed min, max, nominal, start, displayUnit)
  // displayUnit="K" does not make sense, since unit="K"
- SpecificEntropy (removed nominal=1000, since meaningful nominal value
                   depends on offset and medium)
- SpecificEnergy  (removed nominal=1e6, since meaningful nominal value
                   depends on offset and medium)
- StaticPressure = AbsolutePressure
  // was defind in MSL3.2 as AbsolutePressure
  // In trunk it was set to "Pressure", but this is wrong, since StaticPressure
  // is an AbsolutePressure
- MassFraction (min=0, max=1, removed nominal and start)
- MoleFraction (min=0, max=1, removed nominal and start)
- PartialPressure = AbsolutePressure
  // This was wrongly changed in MSL trunk to "PartialPressure=Pressure"
  // Note, PartialPressure is a just a special absolute pressure
- Moved package SIunits.Icons after SIunits.UsersGuide

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5855 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#795 fixed (Physical types in Modelica.SIunits should not have start, min, or max values):

Changed one detail from the previous fix:

- Removed "nominal" from "Pressure" and included "nominal=1e5" in AbsolutePressure.
  Reason: "Pressure" is used both for relative and absolute pressure.
  For relative pressure a nominal value of 1e5 is quite arbitray and might
  be often not a good value. For an absolute pressure, a nominal value of
  the standard atmospheric pressure on earth is in nearly all applications
  better as the default of nominal = 1.

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5856 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#941 fixed (Modelica.Blocks.Math.MultiSwitch is overconstrained at initialisation):

Fixed by removing the wrong start/fixed value from the output y.


git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5857 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#943 fixed (Unnecessary lower bound duration(min=Modelica.Constants.small)):

Included the proposed enhancement to allow duration = 0.0 to achieve a Step response for this limiting case.

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5858 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#944 fixed (Modelica.Mechanics.MultiBody.Examples.Constraints.*):

Removed redundant (over-constraint) initial conditions as suggested in the ticket.


git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5859 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#935 fixed (Modelica.Blocks.Math.RootMeanSquare might fail):

Added a parameter in block "Mean" to state, if the output is guaranteed to be >= 0.0.
In such a case, the output of block "Mean" is computed as max(0, y_computed), i.e., it is
guaranteed to be >= 0.0. In the RootMeanSquare block, this parameter is appropriately set and
then it is guaranteed that the input to the Sqrt block is >= 0.0.

Additionally, added a test model in ModelicaTest to check the desired behavior.



git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5860 7ce873d0-865f-4ce7-a662-4bb36ea78beb
Fixes a small typo (introduced in r5860)

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5861 7ce873d0-865f-4ce7-a662-4bb36ea78beb
change ramp duration to 0 according to docu of the example (cf. #943)

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5862 7ce873d0-865f-4ce7-a662-4bb36ea78beb
Introduce reasonable default values to absolute and relative sensors (#948)

- replace zero specific enthalpy and composition with medium defaults
- introduce common base class PartialRelativeSensor for RelativePressure and RelativeTemperature
- update and rename TestOnePortSensors1 to TestTemperature1
- extend and rename TestOnePortSensors2 to TestTemperature2 -- this example is likely to fail with h_outflow=0
- delete TestTemperatureSensor as duplicate of Modelica.Fluid.Examples.Explanatory.MeasuringTemperature


git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5863 7ce873d0-865f-4ce7-a662-4bb36ea78beb
Extend quadratic and polynomial pump curves with linear extrapolation (see #372)

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5864 7ce873d0-865f-4ce7-a662-4bb36ea78beb
enhance examples after extension of pump curves

- PumpingSystem: replace ConstantPropertyLiquidWater with rigorous StandardWaterOnePhase
- AST_BatchPlant: downsize pumps

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5865 7ce873d0-865f-4ce7-a662-4bb36ea78beb
#945 fixed (Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 is overconstrained at initialisation):

Corrected wrong declaration of paramter rodLength in model MultiBody.Joints.UniversalSpherical by changing
   parameter Real rodLength(fixed=not computeRodLength) = f(..)
to
   parameter Real rodLength(fixed=false, start=f(..))
   initial equation
      if not computeRodLength then
         rodLength = f(..)
      end if


git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5866 7ce873d0-865f-4ce7-a662-4bb36ea78beb
remove modification leakageOpening=0 for enabled filteredOpening of valves

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@5867 7ce873d0-865f-4ce7-a662-4bb36ea78beb