Created
October 10, 2019 23:44
-
-
Save agarny/76b628edcdf85228b5bb59370dadff46 to your computer and use it in GitHub Desktop.
SED-ML L1V4: example showing how to use CVODE+KINSOL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<sedML level="1" version="4" xmlns="http://sed-ml.org/sed-ml/level1/version4" xmlns:cellml="http://www.cellml.org/cellml/1.0#"> | |
<listOfModels> | |
<model id="model" language="urn:sedml:language:cellml.1_0" source="parabola_dae_model.cellml"/> | |
</listOfModels> | |
<listOfSimulations> | |
<uniformTimeCourse id="simulation1" initialTime="0" numberOfSteps="1000" outputEndTime="1000" outputStartTime="0"> | |
<algorithm kisaoID="KISAO:0000019"> | |
<listOfAlgorithmParameters> | |
<algorithmParameter kisaoID="KISAO:0000211" value="1e-07"/> | |
<algorithmParameter kisaoID="KISAO:0000475" value="BDF"/> | |
<algorithmParameter kisaoID="KISAO:0000481" value="true"/> | |
<algorithmParameter kisaoID="KISAO:0000476" value="Newton"/> | |
<algorithmParameter kisaoID="KISAO:0000477" value="Dense"/> | |
<algorithmParameter kisaoID="KISAO:0000480" value="0"/> | |
<algorithmParameter kisaoID="KISAO:0000415" value="500"/> | |
<algorithmParameter kisaoID="KISAO:0000467" value="0"/> | |
<algorithmParameter kisaoID="KISAO:0000478" value="Banded"/> | |
<algorithmParameter kisaoID="KISAO:0000209" value="1e-07"/> | |
<algorithmParameter kisaoID="KISAO:0000479" value="0"/> | |
<algorithmParameter kisaoID="KISAO:0000000" value="KISAO:0000282"> | |
<listOfAlgorithmParameters> | |
<algorithmParameter kisaoID="KISAO:0000477" value="Dense"/> | |
<algorithmParameter kisaoID="KISAO:0000480" value="0"/> | |
<algorithmParameter kisaoID="KISAO:0000486" value="200"/> | |
<algorithmParameter kisaoID="KISAO:0000479" value="0"/> | |
</listOfAlgorithmParameters> | |
</algorithmParameter> | |
</listOfAlgorithmParameters> | |
</algorithm> | |
</uniformTimeCourse> | |
</listOfSimulations> | |
<listOfTasks> | |
<repeatedTask id="repeatedTask" range="once" resetModel="true"> | |
<listOfRanges> | |
<vectorRange id="once"> | |
<value> 1 </value> | |
</vectorRange> | |
</listOfRanges> | |
<listOfSubTasks> | |
<subTask order="1" task="task1"/> | |
</listOfSubTasks> | |
</repeatedTask> | |
<task id="task1" modelReference="model" simulationReference="simulation1"/> | |
</listOfTasks> | |
<listOfDataGenerators> | |
<dataGenerator id="xDataGenerator1_1"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML"> | |
<ci> xVariable1_1 </ci> | |
</math> | |
<listOfVariables> | |
<variable id="xVariable1_1" target="/cellml:model/cellml:component[@name='main']/cellml:variable[@name='time']" taskReference="repeatedTask"/> | |
</listOfVariables> | |
</dataGenerator> | |
<dataGenerator id="yDataGenerator1_1"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML"> | |
<ci> yVariable1_1 </ci> | |
</math> | |
<listOfVariables> | |
<variable id="yVariable1_1" target="/cellml:model/cellml:component[@name='main']/cellml:variable[@name='x']" taskReference="repeatedTask"/> | |
</listOfVariables> | |
</dataGenerator> | |
<dataGenerator id="xDataGenerator1_2"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML"> | |
<ci> xVariable1_2 </ci> | |
</math> | |
<listOfVariables> | |
<variable id="xVariable1_2" target="/cellml:model/cellml:component[@name='main']/cellml:variable[@name='time']" taskReference="repeatedTask"/> | |
</listOfVariables> | |
</dataGenerator> | |
<dataGenerator id="yDataGenerator1_2"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML"> | |
<ci> yVariable1_2 </ci> | |
</math> | |
<listOfVariables> | |
<variable id="yVariable1_2" target="/cellml:model/cellml:component[@name='main']/cellml:variable[@name='y']" taskReference="repeatedTask"/> | |
</listOfVariables> | |
</dataGenerator> | |
</listOfDataGenerators> | |
<listOfOutputs> | |
<plot2D id="plot1" legend="true"> | |
<annotation> | |
<properties xmlns="http://www.opencor.ws/"> | |
<backgroundColor>#ffffff</backgroundColor> | |
<fontSize>10</fontSize> | |
<foregroundColor>#000000</foregroundColor> | |
<height>1</height> | |
<gridLines> | |
<style>dot</style> | |
<width>1</width> | |
<color>#a0a0a4</color> | |
</gridLines> | |
<pointCoordinates> | |
<style>dash</style> | |
<width>1</width> | |
<color>#b0008080</color> | |
<fontColor>#ffffff</fontColor> | |
</pointCoordinates> | |
<surroundingArea> | |
<backgroundColor>#ececec</backgroundColor> | |
<foregroundColor>#000000</foregroundColor> | |
</surroundingArea> | |
<xAxis> | |
<title/> | |
</xAxis> | |
<yAxis> | |
<title/> | |
</yAxis> | |
<zoomRegion> | |
<style>solid</style> | |
<width>1</width> | |
<color>#b0800000</color> | |
<fontColor>#ffffff</fontColor> | |
<filled>true</filled> | |
<fillColor>#30ffff00</fillColor> | |
</zoomRegion> | |
</properties> | |
</annotation> | |
<xAxis type="linear"/> | |
<yAxis type="linear"/> | |
<listOfCurves> | |
<curve id="curve1_1" name="x" style="style1_1" type="points" xDataReference="xDataGenerator1_1" yDataReference="yDataGenerator1_1"> | |
<annotation> | |
<properties xmlns="http://www.opencor.ws/"> | |
<selected>true</selected> | |
</properties> | |
</annotation> | |
</curve> | |
<curve id="curve1_2" name="y'" style="style1_2" type="points" xDataReference="xDataGenerator1_2" yDataReference="yDataGenerator1_2"> | |
<annotation> | |
<properties xmlns="http://www.opencor.ws/"> | |
<selected>true</selected> | |
</properties> | |
</annotation> | |
</curve> | |
</listOfCurves> | |
</plot2D> | |
</listOfOutputs> | |
<listOfStyles> | |
<style id="style1_1"> | |
<line color="0072BD" style="solid" thickness="2"/> | |
<marker fill="FFFFFF" lineColor="0072BD" size="8" style="none"/> | |
</style> | |
<style id="style1_2"> | |
<line color="D95319" style="solid" thickness="2"/> | |
<marker fill="FFFFFF" lineColor="D95319" size="8" style="none"/> | |
</style> | |
</listOfStyles> | |
</sedML> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment