Location: OpenCOR @ 902e04339cd9 / tests / cellml / parabola_variant_dae_model.cellml

Author:
Alan Garny <a.garny@auckland.ac.nz>
Date:
2018-12-05 18:16:37-05:00
Desc:
Models that come with the OpenCOR repository.
Permanent Source URI:
http://models.cellml.org/workspace/55d/rawfile/902e04339cd9643a375562c2b871da8a3a801060/tests/cellml/parabola_variant_dae_model.cellml

<?xml version='1.0'?>
<model name="parabola_variant_dae_model" xmlns="http://www.cellml.org/cellml/1.0#" xmlns:cellml="http://www.cellml.org/cellml/1.0#">
    <component name="main">
        <variable name="time" units="dimensionless"/>
        <variable initial_value="2.8" name="offset" units="dimensionless"/>
        <variable initial_value="7.8" name="offset2" units="dimensionless"/>
        <variable name="x" units="dimensionless"/>
        <variable initial_value="offset" name="y" units="dimensionless"/>
        <variable name="z" units="dimensionless"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <power/>
                    <ci>offset</ci>
                    <cn cellml:units="dimensionless">2</cn>
                </apply>
                <cn cellml:units="dimensionless">9</cn>
            </apply>
        </math>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <power/>
                    <ci>offset2</ci>
                    <cn cellml:units="dimensionless">3</cn>
                </apply>
                <cn cellml:units="dimensionless">-27</cn>
            </apply>
        </math>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>y</ci>
                </apply>
                <apply>
                    <times/>
                    <apply>
                        <sin/>
                        <apply>
                            <times/>
                            <cn cellml:units="dimensionless">2</cn>
                            <ci>time</ci>
                        </apply>
                    </apply>
                    <ci>time</ci>
                    <ci>offset2</ci>
                </apply>
            </apply>
        </math>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>x</ci>
                <apply>
                    <plus/>
                    <apply>
                        <power/>
                        <ci>time</ci>
                        <cn cellml:units="dimensionless">2</cn>
                    </apply>
                    <ci>offset</ci>
                </apply>
            </apply>
        </math>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>z</ci>
                <piecewise>
                    <piece>
                        <apply>
                            <sin/>
                            <ci>offset</ci>
                        </apply>
                        <apply>
                            <and/>
                            <apply>
                                <gt/>
                                <ci>offset</ci>
                                <cn cellml:units="dimensionless">1</cn>
                            </apply>
                            <apply>
                                <leq/>
                                <ci>offset</ci>
                                <cn cellml:units="dimensionless">3</cn>
                            </apply>
                        </apply>
                    </piece>
                    <piece>
                        <cn cellml:units="dimensionless">3</cn>
                        <apply>
                            <gt/>
                            <ci>offset</ci>
                            <cn cellml:units="dimensionless">3</cn>
                        </apply>
                    </piece>
                    <otherwise>
                        <cn cellml:units="dimensionless">1</cn>
                    </otherwise>
                </piecewise>
            </apply>
        </math>
    </component>
</model>