Location: OpenCOR @ d2a2c8f403d8 / tests / cellml / parabola_dae_model.cellml

Author:
Alan Garny <a.garny@auckland.ac.nz>
Date:
2019-03-15 11:07:33+13:00
Desc:
Some minor cleaning up.
Permanent Source URI:
http://models.cellml.org/workspace/55d/rawfile/d2a2c8f403d891dee660a9e1f0af89287b164c9e/tests/cellml/parabola_dae_model.cellml

<?xml version='1.0' encoding='UTF-8'?>
<model name="parabola_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 name="offset" 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>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>y</ci>
                </apply>
                <apply>
                    <times/>
                    <cn cellml:units="dimensionless">2</cn>
                    <ci>time</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>