Changeset 547 for Modelica/trunk/Modelica/Media/package.mo
- Timestamp:
- 08/17/2007 09:00:13 AM (17 months ago)
- Files:
-
- 1 modified
-
Modelica/trunk/Modelica/Media/package.mo (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/Modelica/Media/package.mo
r540 r547 1 within Modelica; 1 2 package Media "Property models of media" 2 3 extends Modelica.Icons.Library; … … 2349 2350 // Real[4] dddX=Medium.density_derX(medium,MM); 2350 2351 annotation (Documentation(info="<html> 2351 <body>2352 2352 <p>An example for using ideal gas properties and how to compute isentropic enthalpy changes. 2353 2353 The function that is implemented is approximate, but usually very good: the second medium record medium2 2354 2354 is given to compare the approximation. 2355 2355 </p> 2356 </body>2357 2356 </html>"), 2358 2357 experiment(Tolerance=1e-005), … … 2425 2424 2426 2425 annotation (Documentation(info="<html> 2427 <body>2428 2426 <h4>Example: TwoPhaseWater</h4> 2429 2427 The TwoPhaseWater package demonstrates how to extend the parsimonius … … 2472 2470 </ol> 2473 2471 <p>The sample model TestTwoPhaseStates test the extended properties</p> 2472 2473 <p> 2474 2474 The same procedure can be used to compute properties at other state 2475 points, e.g. when an isentropic reference state is computed.<br> 2476 <br> 2477 </body> 2475 points, e.g. when an isentropic reference state is computed. 2476 </p> 2478 2477 </html> 2479 2478 ")); 2480 model TestTwoPhaseStates " test the above model"2479 model TestTwoPhaseStates "Test the above model" 2481 2480 ExtendedProperties medium(p(start = 700.0), 2482 2481 h(start = 8.0e5)); … … 2489 2488 experimentSetupOutput, 2490 2489 Documentation(info="<html> 2491 <body> 2492 <h4>Example:TestTwoPhaseStates</h4> 2493 </p> For details see the documentation of the example package TwoPhaseWater<p> 2494 </body> 2490 <p> For details see the documentation of the example package TwoPhaseWater</p> 2495 2491 </html> 2496 2492 ")); … … 2523 2519 Medium.SpecificEnthalpy h_is = Medium.isentropicEnthalpyApproximation(2.0e5, medium); 2524 2520 annotation (Documentation(info="<html> 2525 <body>2526 2521 <p>An example for using ideal gas properties and how to compute isentropic enthalpy changes. 2527 2522 The function that is implemented is approximate, but usually very good: the second medium record medium2 2528 2523 is given to compare the approximation. 2529 2524 </p> 2530 </body>2531 2525 </html>")); 2532 2526 equation … … 2564 2558 Real[4] dddX=Medium.density_derX(medium2.state); 2565 2559 annotation (Documentation(info="<html> 2566 <body>2567 2560 <p>An example for using ideal gas properties and how to compute isentropic enthalpy changes. 2568 2561 The function that is implemented is approximate, but usually very good: the second medium record medium2 2569 2562 is given to compare the approximation. 2570 2563 </p> 2571 </body>2572 2564 </html>")); 2573 2565 equation … … 4778 4770 h_is := specificEnthalpy(downstreamState); 4779 4771 annotation (Documentation(info="<html> 4780 <body> 4781 A minor approximation is used: the reference density is used instead of the real one, which would require a numeric solution. 4782 </body> 4772 <p> 4773 A minor approximation is used: the reference density is used instead of the real 4774 one, which would require a numeric solution. 4775 </p> 4783 4776 </html>")); 4784 4777 end isentropicEnthalpy; … … 4856 4849 4857 4850 annotation (Documentation(info="<html> 4858 <body> 4859 <h2>Linear Compressibility Fluid Model</h2> 4851 <h4>Linear Compressibility Fluid Model</h4> 4860 4852 <p>This linear compressibility fluid model is based on the assumptions that: 4861 4853 </p> … … 4917 4909 </dd> 4918 4910 </dl> 4919 </body>4920 4911 </html>")); 4921 4912 end PartialLinearFluid; … … 5079 5070 SpecificEntropy SMAX "maximum entropy"; 5080 5071 annotation(Documentation( 5081 info="<html> <body>5072 info="<html> 5082 5073 <p>The minimum pressure mostly applies to the liquid state only. 5083 5074 The minimum density is also arbitrary, but is reasonable for techical 5084 5075 applications to limit iterations in non-linear systems. The limits in 5085 5076 enthalpy and entropy are used as safeguards in inverse iterations.</p> 5086 </ body></html>"));5077 </html>")); 5087 5078 end FluidLimits; 5088 5079 … … 7129 7120 "coefficient in Bridgmans table, see info for usage"; 7130 7121 Real dgf=-dfg "coefficient in Bridgmans table, see info for usage"; 7131 annotation (Documentation(info=" 7132 <HTML> 7133 <p> 7134 <pre> 7122 annotation (Documentation(info="<HTML> 7123 <p> 7135 7124 Important: the phase equilibrium conditions are not yet considered. 7136 this means that bridgemans tables do not yet work in the two phase region 7137 some derivatives are 0 or infinity anyways 7125 this means that bridgemans tables do not yet work in the two phase region. 7126 Some derivatives are 0 or infinity anyways. 7138 7127 Idea: don't use the values in Bridgmans table directly, all 7139 7128 derivatives are calculated as the quotient of two entries in the … … 7142 7131 involved in the derivative and the first letter is alwys a d to remind 7143 7132 of differentiation. 7133 </p> 7134 7135 <pre> 7144 7136 Example 1: Get the derivative of specific entropy s wrt Temperature at 7145 7137 constant specific volume (btw identical to constant density) … … 7183 7175 end BridgmansTablesForWater; 7184 7176 </pre> 7185 </p>7177 7186 7178 </HTML> 7187 7179 "));
