|
|
The XML formatted input files in OSR are often long and spread over several files, such that it is not easy to have an overview. In the scripts/XML folder XML transformation sheets (XSL) and html style sheets (css) are provided which can be used to transform XML into html and render it in a browser in much shorter form (as a nested list). For example see this [modelDump000.00.xhtml](/uploads/5adaa5c435470a309db8eba819908b26/modelDump000.00.xhtml). Modern browsers will do the transformation, as long as the xml and css files are in the same or a lower sub directory from the xml file.
|
|
|
|
|
|
Since we would like all the XML to be in one file, and would prefer better formatting of names and units, we will first use the modeldump export function in OSR to create one file. Then we will open this file with a browser.
|
|
|
|
|
|
steps:
|
|
|
|
|
|
1. Enable model dump for day 0 in your simulation control parameter file.
|
|
|
2. Copy the scripts/XML folder into you folder with InputFiles
|
|
|
3. Run model for 1 day or so
|
|
|
4. Open model dump with Firefox, and you should see a needly formatted list instead of XML
|
|
|
|
|
|
|
|
|
note 1: to enable model dump for day 0 have these lines in your simulationcontrols section
|
|
|
|
|
|
note 2: 5. Deleted from the XML any tags that you do not need to shorten the whole thing a bit. Automatic formatting of names and units might not always go right an may need manual editing.
|
|
|
|
|
|
|
|
|
```xml
|
|
|
<SimulaBase name="modelDump">
|
|
|
<SimulaConstant
|
|
|
name="run"
|
|
|
type="bool"> 1</SimulaConstant>
|
|
|
<SimulaConstant
|
|
|
name="startTime"
|
|
|
type="time"> 0</SimulaConstant>
|
|
|
<SimulaConstant
|
|
|
name="endTime"
|
|
|
type="time"> 1</SimulaConstant>
|
|
|
<name="copyStyleSheetsToOutputDir"> 1 </SimulaConstant>
|
|
|
</SimulaBase>
|
|
|
```
|
|
|
|
|
|
|
|
|
|