Changeset 1948
- Timestamp:
- 12/05/2008 01:58:54 AM (5 weeks ago)
- Location:
- Modelica_Fluid/branches/StreamConnector/Modelica_Fluid
- Files:
-
- 1 added
- 1 modified
-
Sources.mo (modified) (48 diffs)
-
Test/TestComponents/Sources/TestSources.mo (added)
Legend:
- Unmodified
- Added
- Removed
-
Modelica_Fluid/branches/StreamConnector/Modelica_Fluid/Sources.mo
r1703 r1948 30 30 annotation (Dialog(group = "Only for multi-substance flow", enable=Medium.nXi > 0)); 31 31 32 parameter Medium.ExtraProperty C[Medium.nC]( 33 quantity=Medium.extraPropertiesNames)=fill(0, Medium.nC) 34 "Boundary trace substances" 35 annotation (Dialog(group = "Only for trace-substance flow", enable=Medium.nC > 0)); 36 32 37 annotation (defaultComponentName="boundary", 33 38 Icon(coordinateSystem( … … 49 54 <li> Boundary pressure or boundary density.</li> 50 55 <li> Boundary temperature or boundary specific enthalpy.</li> 51 <li> Boundary composition (only for multi-substance flow).</li>56 <li> Boundary composition (only for multi-substance or trace-substance flow).</li> 52 57 </ul> 53 58 <p> 54 Note, that boundary temperature, density, specific enthalpy 55 and mass fractions have only an effect if the mass flow59 Note, that boundary temperature, density, specific enthalpy, 60 mass fractions and trace substances have only an effect if the mass flow 56 61 is from the Boundary into the port. If mass is flowing from 57 62 the port into the boundary, the boundary definitions, … … 76 81 77 82 medium.Xi = X[1:Medium.nXi]; 83 84 ports.C_outflow = fill(C, nPorts); 78 85 end FixedBoundary; 79 86 80 87 model FixedBoundary_pTX 81 "Boundary pressure, temperature and mass fractionsource"88 "Boundary pressure, temperature, mass fraction and trace substances source" 82 89 extends Sources.BaseClasses.PartialSource; 83 parameter Medium.AbsolutePressure p "Boundary pressure";84 parameter Medium.Temperature T "Boundary temperature";90 parameter Medium.AbsolutePressure p=Medium.p_default "Boundary pressure"; 91 parameter Medium.Temperature T=Medium.T_default "Boundary temperature"; 85 92 parameter Medium.MassFraction X[Medium.nX]( 86 93 quantity=Medium.substanceNames) = Medium.X_default … … 88 95 annotation (Dialog(group = "Only for multi-substance flow", 89 96 enable=Medium.nXi > 0)); 97 parameter Medium.ExtraProperty C[Medium.nC]( 98 quantity=Medium.extraPropertiesNames)=fill(0, Medium.nC) 99 "Boundary trace substances" 100 annotation (Dialog(group = "Only for trace-substance flow", enable=Medium.nC > 0)); 90 101 annotation (defaultComponentName="boundary", 91 102 Icon(coordinateSystem( … … 107 118 <li> Boundary pressure.</li> 108 119 <li> Boundary temperature.</li> 109 <li> Boundary composition (only for multi-substance flow).</li>120 <li> Boundary composition (only for multi-substance or trace-substance flow).</li> 110 121 </ul> 111 122 <p> 112 Note, that boundary temperature 113 and mass fractions have only an effect if the mass flow123 Note, that boundary temperature, 124 mass fractions and trace substances have only an effect if the mass flow 114 125 is from the boundary into the port. If mass is flowing from 115 126 the port into the boundary, the boundary definitions, … … 123 134 medium.T = T; 124 135 medium.Xi = X[1:Medium.nXi]; 136 ports.C_outflow = fill(C, nPorts); 125 137 end FixedBoundary_pTX; 126 138 127 139 model FixedBoundary_phX 128 "Boundary pressure, specific enthalpy and mass fractionsource"140 "Boundary pressure, specific enthalpy, mass fraction and trace substances source" 129 141 extends Sources.BaseClasses.PartialSource; 130 parameter Medium.AbsolutePressure p "Boundary pressure"; 131 parameter Medium.SpecificEnthalpy h "Boundary specific enthalpy"; 142 parameter Medium.AbsolutePressure p=Medium.p_default "Boundary pressure"; 143 parameter Medium.SpecificEnthalpy h=Medium.h_default 144 "Boundary specific enthalpy"; 132 145 parameter Medium.MassFraction X[ 133 146 Medium.nX](quantity=Medium.substanceNames) = Medium.X_default 134 147 "Boundary mass fractions m_i/m" annotation (Dialog(group= 135 148 "Only for multi-substance flow", enable=Medium.nXi > 0)); 149 parameter Medium.ExtraProperty C[Medium.nC]( 150 quantity=Medium.extraPropertiesNames)=fill(0, Medium.nC) 151 "Boundary trace substances" 152 annotation (Dialog(group = "Only for trace-substance flow", enable=Medium.nC > 0)); 136 153 annotation (defaultComponentName="boundary", 137 154 Icon(coordinateSystem( … … 153 170 <li> Boundary pressure.</li> 154 171 <li> Boundary specific enthalpy.</li> 155 <li> Boundary composition (only for multi-substance flow).</li>172 <li> Boundary composition (only for multi-substance or trace-substance flow).</li> 156 173 </ul> 157 174 <p> 158 Note, that boundary specific enthalpy 159 and mass fractions have only an effect if the mass flow175 Note, that boundary specific enthalpy, 176 mass fractions and trace substances have only an effect if the mass flow 160 177 is from the boundary into the port. If mass is flowing from 161 178 the port into the boundary, the boundary definitions, … … 169 186 medium.h = h; 170 187 medium.Xi = X[1:Medium.nXi]; 188 ports.C_outflow = fill(C, nPorts); 171 189 end FixedBoundary_phX; 172 190 … … 178 196 </html>")); 179 197 model PrescribedBoundary_pTX 180 "Boundary with prescribed pressure, temperature and composition"198 "Boundary with prescribed pressure, temperature, composition and trace substances" 181 199 extends Sources.BaseClasses.PartialSource; 182 200 parameter Boolean usePressureInput = false … … 189 207 "Get the composition from the input connector" 190 208 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 209 parameter Boolean useTraceInput = false 210 "Get the trace substances from the input connector" 211 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 191 212 parameter Medium.AbsolutePressure p = Medium.p_default 192 213 "Fixed value of pressure" … … 201 222 annotation (Evaluate = true, 202 223 Dialog(enable = (not useCompositionInput) and Medium.nXi > 0)); 224 parameter Medium.ExtraProperty C[Medium.nC]( 225 quantity=Medium.extraPropertiesNames)=fill(0, Medium.nC) 226 "Boundary trace substances" 227 annotation (Evaluate=true, 228 Dialog(enable = (not useTraceInput) and Medium.nC > 0)); 203 229 Modelica.Blocks.Interfaces.RealInput p_in if usePressureInput 204 230 "Prescribed boundary pressure" 205 annotation (Placement(transformation(extent={{-140, 40},{-100,80}},231 annotation (Placement(transformation(extent={{-140,60},{-100,100}}, 206 232 rotation=0))); 207 233 Modelica.Blocks.Interfaces.RealInput T_in if useTemperatureInput 208 234 "Prescribed boundary temperature" 209 annotation (Placement(transformation(extent={{-140, -20},{-100,20}},235 annotation (Placement(transformation(extent={{-140,20},{-100,60}}, 210 236 rotation=0))); 211 237 Modelica.Blocks.Interfaces.RealInput X_in[Medium.nX] if 212 238 useCompositionInput 213 239 "Prescribed boundary composition" 214 annotation (Placement(transformation(extent={{-140,-80},{-100,-40}}, 240 annotation (Placement(transformation(extent={{-140,-60},{-100,-20}}, 241 rotation=0))); 242 Modelica.Blocks.Interfaces.RealInput C_in[Medium.nC] if 243 useTraceInput 244 "Prescribed boundary trace substances" 245 annotation (Placement(transformation(extent={{-140,-100},{-100,-60}}, 215 246 rotation=0))); 216 247 protected … … 220 251 "Needed to connect to conditional connector"; 221 252 Modelica.Blocks.Interfaces.RealInput X_in_internal[Medium.nX] 253 "Needed to connect to conditional connector"; 254 Modelica.Blocks.Interfaces.RealInput C_in_internal[Medium.nC] 222 255 "Needed to connect to conditional connector"; 223 256 annotation (defaultComponentName="boundary", … … 237 270 Line( 238 271 visible=usePressureInput, 239 points={{-100,60},{-80,60}}, 272 points={{-100,80},{-58,80}}, 273 color={0,0,255}), 274 Line( 275 visible=useTemperatureInput, 276 points={{-100,40},{-92,40}}, 240 277 color={0,0,255}), 241 278 Line( 242 279 visible=useCompositionInput, 243 points={{-100,- 60},{-80,-60}},280 points={{-100,-40},{-92,-40}}, 244 281 color={0,0,255}), 282 Line( 283 visible=useTraceInput, 284 points={{-100,-80},{-60,-80}}, 285 color={0,0,255}), 245 286 Text( 246 287 visible=usePressureInput, 247 extent={{-1 46,110},{-62,70}},288 extent={{-152,134},{-68,94}}, 248 289 lineColor={0,0,0}, 249 290 fillColor={255,255,255}, … … 252 293 Text( 253 294 visible=useCompositionInput, 254 extent={{-16 0,-22},{-58,-62}},295 extent={{-164,4},{-62,-36}}, 255 296 lineColor={0,0,0}, 256 297 fillColor={255,255,255}, … … 258 299 textString="X"), 259 300 Text( 301 visible=useTraceInput, 302 extent={{-164,-90},{-62,-130}}, 303 lineColor={0,0,0}, 304 fillColor={255,255,255}, 305 fillPattern=FillPattern.Solid, 306 textString="C"), 307 Text( 260 308 visible=useTemperatureInput, 261 extent={{-1 58,44},{-56,4}},309 extent={{-162,34},{-60,-6}}, 262 310 lineColor={0,0,0}, 263 311 fillColor={255,255,255}, … … 271 319 <li> Prescribed boundary pressure.</li> 272 320 <li> Prescribed boundary temperature.</li> 273 <li> Prescribed boundary composition (only for multi-substance flow).</li>321 <li> Boundary composition (only for multi-substance or trace-substance flow).</li> 274 322 </ul> 275 323 <p>If <tt>usePressureInput</tt> is false (default option), the <tt>p</tt> parameter 276 324 is used as boundary pressure, and the <tt>p_in</tt> input connector is disabled; if <tt>usePressureInput</tt> is true, then the <tt>p</tt> parameter is ignored, and the value provided by the input connector is used instead.</p> 277 <p>The same thing goes for the temperature and composition</p>278 <p> 279 Note, that boundary temperature 280 and mass fractions have only an effect if the mass flow325 <p>The same thing goes for the temperature, composition and trace substances.</p> 326 <p> 327 Note, that boundary temperature, 328 mass fractions and trace substances have only an effect if the mass flow 281 329 is from the boundary into the port. If mass is flowing from 282 330 the port into the boundary, the boundary definitions, … … 294 342 connect(T_in, T_in_internal); 295 343 connect(X_in, X_in_internal); 344 connect(C_in, C_in_internal); 296 345 if not usePressureInput then 297 346 p_in_internal = p; … … 302 351 if not useCompositionInput then 303 352 X_in_internal = X; 353 end if; 354 if not useTraceInput then 355 C_in_internal = C; 304 356 end if; 305 357 medium.p = p_in_internal; 306 358 medium.T = T_in_internal; 307 359 medium.Xi = X_in_internal[1:Medium.nXi]; 360 ports.C_outflow = fill(C_in_internal, nPorts); 308 361 end PrescribedBoundary_pTX; 309 362 310 363 model PrescribedBoundary_phX 311 "Boundary with prescribed pressure, specific enthalpy and composition"364 "Boundary with prescribed pressure, specific enthalpy, composition and trace substances" 312 365 extends Sources.BaseClasses.PartialSource; 313 366 parameter Boolean usePressureInput = false … … 320 373 "Get the composition from the input connector" 321 374 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 375 parameter Boolean useTraceInput = false 376 "Get the trace substances from the input connector" 377 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 322 378 parameter Medium.AbsolutePressure p = Medium.p_default 323 379 "Fixed value of pressure" … … 332 388 annotation (Evaluate = true, 333 389 Dialog(enable = (not useCompositionInput) and Medium.nXi > 0)); 390 parameter Medium.ExtraProperty C[Medium.nC]( 391 quantity=Medium.extraPropertiesNames)=fill(0, Medium.nC) 392 "Boundary trace substances" 393 annotation (Evaluate=true, 394 Dialog(enable = (not useTraceInput) and Medium.nC > 0)); 334 395 Modelica.Blocks.Interfaces.RealInput p_in if usePressureInput 335 396 "Prescribed boundary pressure" 336 annotation (Placement(transformation(extent={{-140, 40},{-100,80}},397 annotation (Placement(transformation(extent={{-140,60},{-100,100}}, 337 398 rotation=0))); 338 399 Modelica.Blocks.Interfaces.RealInput h_in if useEnthalpyInput 339 400 "Prescribed boundary specific enthalpy" 340 annotation (Placement(transformation(extent={{-140, -20},{-100,20}},401 annotation (Placement(transformation(extent={{-140,20},{-100,60}}, 341 402 rotation=0))); 342 403 Modelica.Blocks.Interfaces.RealInput X_in[Medium.nX] if 343 404 useCompositionInput 344 405 "Prescribed boundary composition" 345 annotation (Placement(transformation(extent={{-140,-80},{-100,-40}}, 406 annotation (Placement(transformation(extent={{-140,-60},{-100,-20}}, 407 rotation=0))); 408 Modelica.Blocks.Interfaces.RealInput C_in[Medium.nC] if 409 useTraceInput 410 "Prescribed boundary trace substances" 411 annotation (Placement(transformation(extent={{-140,-100},{-100,-60}}, 346 412 rotation=0))); 347 413 annotation (defaultComponentName="boundary", … … 361 427 Line( 362 428 visible=usePressureInput, 363 points={{-100,60},{-66,60}}, 429 points={{-100,80},{-60,80}}, 430 color={0,0,255}), 431 Line( 432 visible=useEnthalpyInput, 433 points={{-100,40},{-92,40}}, 364 434 color={0,0,255}), 365 435 Line( 366 436 visible=useCompositionInput, 367 points={{-100,- 60},{-66,-60}},437 points={{-100,-40},{-92,-40}}, 368 438 color={0,0,255}), 439 Line( 440 visible=useTraceInput, 441 points={{-100,-80},{-60,-80}}, 442 color={0,0,255}), 369 443 Text( 370 444 visible=usePressureInput, 371 extent={{-1 48,120},{-70,80}},445 extent={{-150,134},{-72,94}}, 372 446 lineColor={0,0,0}, 373 447 fillColor={255,255,255}, … … 376 450 Text( 377 451 visible=useEnthalpyInput, 378 extent={{-1 00,20},{2,-20}},379 lineColor={ 255,255,255},452 extent={{-166,34},{-64,-6}}, 453 lineColor={0,0,0}, 380 454 fillColor={255,255,255}, 381 455 fillPattern=FillPattern.Solid, … … 383 457 Text( 384 458 visible=useCompositionInput, 385 extent={{-140,-86},{-38,-126}}, 386 lineColor={0,0,0}, 387 fillColor={255,255,255}, 388 fillPattern=FillPattern.Solid, 389 textString="X")}), 459 extent={{-164,4},{-62,-36}}, 460 lineColor={0,0,0}, 461 fillColor={255,255,255}, 462 fillPattern=FillPattern.Solid, 463 textString="X"), 464 Text( 465 visible=useTraceInput, 466 extent={{-164,-90},{-62,-130}}, 467 lineColor={0,0,0}, 468 fillColor={255,255,255}, 469 fillPattern=FillPattern.Solid, 470 textString="C")}), 390 471 Documentation(info="<html> 391 472 <p> … … 395 476 <li> Prescribed boundary pressure.</li> 396 477 <li> Prescribed boundary temperature.</li> 397 <li> Prescribed boundary composition (only for multi-substance flow).</li>478 <li> Boundary composition (only for multi-substance or trace-substance flow).</li> 398 479 </ul> 399 480 <p>If <tt>usePressureInput</tt> is false (default option), the <tt>p</tt> parameter … … 401 482 <p>The same thing goes for the specific enthalpy and composition</p> 402 483 <p> 403 Note, that boundary temperature 404 and mass fractions have only an effect if the mass flow484 Note, that boundary temperature, 485 mass fractions and trace substances have only an effect if the mass flow 405 486 is from the boundary into the port. If mass is flowing from 406 487 the port into the boundary, the boundary definitions, … … 414 495 "Needed to connect to conditional connector"; 415 496 Modelica.Blocks.Interfaces.RealInput X_in_internal[Medium.nX] 497 "Needed to connect to conditional connector"; 498 Modelica.Blocks.Interfaces.RealInput C_in_internal[Medium.nC] 416 499 "Needed to connect to conditional connector"; 417 500 equation … … 421 504 connect(h_in, h_in_internal); 422 505 connect(X_in, X_in_internal); 506 connect(C_in, C_in_internal); 423 507 if not usePressureInput then 424 508 p_in_internal = p; … … 429 513 if not useCompositionInput then 430 514 X_in_internal = X; 515 end if; 516 if not useTraceInput then 517 C_in_internal = C; 431 518 end if; 432 519 medium.p = p_in_internal; 433 520 medium.h = h_in_internal; 434 521 medium.Xi = X_in_internal[1:Medium.nXi]; 522 ports.C_outflow = fill(C_in_internal, nPorts); 435 523 end PrescribedBoundary_phX; 436 524 437 525 model PrescribedMassFlowRate_TX 438 "Ideal flow source that produces a prescribed mass flow with prescribed temperature and mass fraction"526 "Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances" 439 527 extends Sources.BaseClasses.PartialSource; 440 528 parameter Boolean useFlowRateInput = false … … 447 535 "Get the composition from the input connector" 448 536 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 537 parameter Boolean useTraceInput = false 538 "Get the trace substances from the input connector" 539 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 449 540 parameter Medium.MassFlowRate m_flow = 0 450 541 "Fixed mass flow rate going out of the fluid port" … … 459 550 annotation (Evaluate = true, 460 551 Dialog(enable = (not useCompositionInput) and Medium.nXi > 0)); 552 parameter Medium.ExtraProperty C[Medium.nC]( 553 quantity=Medium.extraPropertiesNames)=fill(0, Medium.nC) 554 "Boundary trace substances" 555 annotation (Evaluate=true, 556 Dialog(enable = (not useTraceInput) and Medium.nC > 0)); 461 557 Modelica.Blocks.Interfaces.RealInput m_flow_in if useFlowRateInput 462 558 "Prescribed mass flow rate" 463 annotation (Placement(transformation(extent={{-1 13,40},{-73,80}},464 rotation=0) ));559 annotation (Placement(transformation(extent={{-120,60},{-80,100}}, 560 rotation=0), iconTransformation(extent={{-120,60},{-80,100}}))); 465 561 Modelica.Blocks.Interfaces.RealInput T_in if useTemperatureInput 466 562 "Prescribed fluid temperature" 467 annotation (Placement(transformation(extent={{-140, -20},{-100,20}},468 rotation=0) ));563 annotation (Placement(transformation(extent={{-140,20},{-100,60}}, 564 rotation=0), iconTransformation(extent={{-140,20},{-100,60}}))); 469 565 Modelica.Blocks.Interfaces.RealInput X_in[Medium.nX] if 470 566 useCompositionInput 471 567 "Prescribed fluid composition" 472 annotation (Placement(transformation(extent={{-112,-81},{-72,-41}}, 568 annotation (Placement(transformation(extent={{-140,-60},{-100,-20}}, 569 rotation=0))); 570 Modelica.Blocks.Interfaces.RealInput C_in[Medium.nC] if 571 useTraceInput 572 "Prescribed boundary trace substances" 573 annotation (Placement(transformation(extent={{-120,-100},{-80,-60}}, 473 574 rotation=0))); 474 575 protected … … 479 580 Modelica.Blocks.Interfaces.RealInput X_in_internal[Medium.nX] 480 581 "Needed to connect to conditional connector"; 582 Modelica.Blocks.Interfaces.RealInput C_in_internal[Medium.nC] 583 "Needed to connect to conditional connector"; 481 584 annotation (defaultComponentName="boundary", 482 585 Icon(coordinateSystem( 483 preserveAspectRatio= false,586 preserveAspectRatio=true, 484 587 extent={{-100,-100},{100,100}}, 485 588 grid={1,1}), graphics={ … … 521 624 Text( 522 625 visible=useFlowRateInput, 523 extent={{-1 94,112},{-54,80}},626 extent={{-185,132},{-45,100}}, 524 627 lineColor={0,0,0}, 525 628 fillColor={255,255,255}, … … 528 631 Text( 529 632 visible=useTemperatureInput, 530 extent={{-1 00,14},{-60,-20}},633 extent={{-111,71},{-71,37}}, 531 634 lineColor={0,0,0}, 532 635 fillColor={255,255,255}, … … 535 638 Text( 536 639 visible=useCompositionInput, 537 extent={{-144,-90},{-24,-118}}, 538 lineColor={0,0,0}, 539 fillColor={255,255,255}, 540 fillPattern=FillPattern.Solid, 541 textString="X")}), 640 extent={{-153,-44},{-33,-72}}, 641 lineColor={0,0,0}, 642 fillColor={255,255,255}, 643 fillPattern=FillPattern.Solid, 644 textString="X"), 645 Text( 646 visible=useTraceInput, 647 extent={{-155,-98},{-35,-126}}, 648 lineColor={0,0,0}, 649 fillColor={255,255,255}, 650 fillPattern=FillPattern.Solid, 651 textString="C")}), 542 652 Window( 543 653 x=0.45, … … 551 661 Documentation(info="<html> 552 662 <p> 553 Models an ideal flow source, with prescribed values of flow rate, temperature and composition:663 Models an ideal flow source, with prescribed values of flow rate, temperature, composition and trace substances: 554 664 </p> 555 665 <ul> 556 666 <li> Prescribed mass flow rate.</li> 557 667 <li> Prescribed temperature.</li> 558 <li> Prescribed composition (only for multi-substance flow).</li>668 <li> Boundary composition (only for multi-substance or trace-substance flow).</li> 559 669 </ul> 560 670 <p>If <tt>useFlowRateInput</tt> is false (default option), the <tt>m_flow</tt> parameter … … 562 672 <p>The same thing goes for the temperature and composition</p> 563 673 <p> 564 Note, that boundary temperature 565 and mass fractions have only an effect if the mass flow674 Note, that boundary temperature, 675 mass fractions and trace substances have only an effect if the mass flow 566 676 is from the boundary into the port. If mass is flowing from 567 677 the port into the boundary, the boundary definitions, … … 575 685 connect(T_in, T_in_internal); 576 686 connect(X_in, X_in_internal); 687 connect(C_in, C_in_internal); 577 688 if not useFlowRateInput then 578 689 m_flow_in_internal = m_flow; … … 583 694 if not useCompositionInput then 584 695 X_in_internal = X; 696 end if; 697 if not useTraceInput then 698 C_in_internal = C; 585 699 end if; 586 700 sum(ports.m_flow) = -m_flow_in_internal; 587 701 medium.T = T_in_internal; 588 702 medium.Xi = X_in_internal[1:Medium.nXi]; 703 ports.C_outflow = fill(C_in_internal, nPorts); 589 704 end PrescribedMassFlowRate_TX; 590 705 591 706 model PrescribedMassFlowRate_hX 592 "Ideal flow source that produces a prescribed mass flow with prescribed specific enthalpy and mass fraction"707 "Ideal flow source that produces a prescribed mass flow with prescribed specific enthalpy, mass fraction and trace substances" 593 708 extends Sources.BaseClasses.PartialSource; 594 709 parameter Boolean useFlowRateInput = false … … 601 716 "Get the composition from the input connector" 602 717 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 718 parameter Boolean useTraceInput = false 719 "Get the trace substances from the input connector" 720 annotation(Evaluate=true, HideResult=true, choices(__Dymola_checkBox=true)); 603 721 parameter Medium.MassFlowRate m_flow = 0 604 722 "Fixed mass flow rate going out of the fluid port" … … 613 731 annotation (Evaluate = true, 614 732 Dialog(enable = (not useCompositionInput) and Medium.nXi > 0)); 733 parameter Medium.ExtraProperty C[Medium.nC]( 734 quantity=Medium.extraPropertiesNames)=fill(0, Medium.nC) 735 "Boundary trace substances" 736 annotation (Evaluate=true, 737 Dialog(enable = (not useTraceInput) and Medium.nC > 0)); 615 738 Modelica.Blocks.Interfaces.RealInput m_flow_in if useFlowRateInput 616 739 "Prescribed mass flow rate"
