The initial_conditions file
- Last UpdatedJan 24, 2023
- 1 minute read
The virtual plant project type has no simulation set up with the definition of different scenarios; therefore, the intial_conditions file is used for a subset of its typical usage, the map files definition.
According to cfg_commons file parameter, main.initialConditions, this is the base file for loading various simulation initial conditions.
Use
The initial_conditions file can store an effective list of all plant items initial condition (patch based). Use this method in cases where item initial conditions has not been handled during item configuration.
Code example
Code example for the initial_conditions file.
<define name="simulation.maps" type="mdstring">
<set key="config">
<item key="numberOfMaps" value="6"/>
</set>
<set key="map_0">
<item key="file" value="maps/TOTALE.png"/>
<item key="name" value="Plant Overall Map"/>
<item key="topLeft" value="-906.715 -100 482.293"/>
<item key="topRight" value="407.249 -100 482.293"/>
<item key="bottomLeft" value="-906.715 100 -828.166"/>
<item key="bottomRight" value="407.249 100 -828.166"/>
<item key="size" value="900 900"/>
<item key="angle" value="90"/>
</set>
<!-- ... -->
</define>
<patch name="maps" showCameras="cam_sec01_00,cam_sec01_01,cam_sec01_02,cam_sec01_03,cam_sec01_04,cam_sec02_00,cam_sec02_01,cam_sec02_02,cam_sec02_03,cam_sec02_04,cam_sec02_05,cam_sec02_06,cam_sec02_07,cam_sec02_08,cam_sec03_00,cam_sec03_01,cam_sec03_02,cam_sec03_03,cam_sec03_04,cam_sec03_05,cam_sec04_00,cam_sec04_01,cam_sec04_02,cam_sec04_03,cam_sec04_04,cam_sec04_05,cam_sec04_06,cam_sec04_07,cam_sec04_08,cam_sec04_09,cam_sec04_10,cam_sec05-06_00,cam_sec05-06_01,cam_sec05-06_02,cam_sec05-06_03,cam_sec05-06_04,cam_sec05-06_05,cam_sec05-06_06,cam_sec05-06_07,cam_sec05-06_08,cam_sec05-06_09,cam_sec05-06_10" />