Created
October 9, 2019 20:37
-
-
Save agarny/928b346ad6c8cbaba45db8e9eddd5b0c to your computer and use it in GitHub Desktop.
SED-ML L1V4: example showing how to plot dV/dt
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="noble_model_1962.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"/> | |
</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='environment']/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='membrane']/cellml:variable[@name='V']" taskReference="repeatedTask"/> | |
</listOfVariables> | |
</dataGenerator> | |
<dataGenerator id="xDataGenerator2_1"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML"> | |
<ci> xVariable2_1 </ci> | |
</math> | |
<listOfVariables> | |
<variable id="xVariable2_1" target="/cellml:model/cellml:component[@name='environment']/cellml:variable[@name='time']" taskReference="repeatedTask"/> | |
</listOfVariables> | |
</dataGenerator> | |
<dataGenerator id="yDataGenerator2_1"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML"> | |
<ci> yVariable2_1 </ci> | |
</math> | |
<listOfVariables> | |
<variable id="yVariable2_1" symbol="urn:sedml:symbol:rateOfChange" target="/cellml:model/cellml:component[@name='membrane']/cellml:variable[@name='V']" 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="V" style="style1_1" type="points" xDataReference="xDataGenerator1_1" yDataReference="yDataGenerator1_1"> | |
<annotation> | |
<properties xmlns="http://www.opencor.ws/"> | |
<selected>true</selected> | |
</properties> | |
</annotation> | |
</curve> | |
</listOfCurves> | |
</plot2D> | |
<plot2D id="plot2" 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="curve2_1" name="V'" style="style2_1" type="points" xDataReference="xDataGenerator2_1" yDataReference="yDataGenerator2_1"> | |
<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="style2_1"> | |
<line color="0072BD" style="solid" thickness="2"/> | |
<marker fill="FFFFFF" lineColor="0072BD" 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