.TransiEnt.Storage.Heat.HotWaterStorage_constProp_L4.Base.getPortSubIndex

Information

1. Purpose of model

Returns index of control volumes fluid port for input fluid connectors.

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

(no remarks)

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

(no remarks)

8. Validation

(no validation necessary)

9. References

(none)

10. Version History

Model modified (extended so that it works for vectors i_xxx as well) by Carsten Bode (c.bode@tuhh.de), Nov 2018

Interface

function getPortSubIndex
  import TransiEnt.Basics.Functions.findAll;
  input Integer N;
  input Integer i_prodIn[:];
  input Integer i_prodOut[:];
  input Integer i_gridIn[:];
  input Integer i_gridOut[:];
  output Integer portSubIdx[4, max({size(i_prodIn, 1), size(i_prodOut, 1), size(i_gridIn, 1), size(i_gridOut, 1)})];
end getPortSubIndex;

Generated at 2024-11-27T19:25:31Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos