PageRenderTime 23ms CodeModel.GetById 9ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/FiniteElasticity/MooneyRivlinInCellML/mooney_rivlin.xml

http://github.com/xyan075/examples
XML | 311 lines | 283 code | 20 blank | 8 comment | 0 complexity | 9e246e0daaa8f6240b57c80def59e199 MD5 | raw file
  1<?xml version="1.0" encoding="iso-8859-1"?>
  2
  3<model
  4    name="MooneyRivlin"
  5    cmeta:id="MooneyRivlin"
  6    xmlns="http://www.cellml.org/cellml/1.0#"
  7    xmlns:cellml="http://www.cellml.org/cellml/1.0#"
  8    xmlns:cmeta="http://www.cellml.org/metadata/1.0#">
  9    
 10  <rdf:RDF
 11      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 12      xmlns:cmeta="http://www.cellml.org/metadata/1.0#"
 13      xmlns:bqs="http://www.cellml.org/bqs/1.0#"
 14      xmlns:dc="http://purl.org/dc/elements/1.1/"
 15      xmlns:dcterms="http://purl.org/dc/terms/"
 16      xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#">
 17
 18    <!-- metadata about the CellML document itself -->
 19    <rdf:Description rdf:about="">
 20      <dc:creator rdf:parseType="Resource">
 21        <vCard:N rdf:parseType="Resource">
 22          <vCard:Family>Nickerson</vCard:Family>
 23          <vCard:Given>David</vCard:Given>
 24        </vCard:N>
 25        <vCard:EMAIL rdf:parseType="Resource">
 26          <rdf:value>d.nickerson@auckland.ac.nz</rdf:value>
 27          <rdf:type rdf:resource="http://imc.org/vCard/3.0#internet" />
 28        </vCard:EMAIL>
 29        <vCard:ORG rdf:parseType="Resource">
 30          <vCard:Orgname>The University of Auckland</vCard:Orgname>
 31          <vCard:Orgunit>The Bioengineering Institute</vCard:Orgunit>
 32        </vCard:ORG>
 33      </dc:creator>
 34
 35      <dcterms:created rdf:parseType="Resource">
 36        <dcterms:W3CDTF>2003-11-28</dcterms:W3CDTF>
 37      </dcterms:created>
 38    </rdf:Description>
 39    
 40    <!-- description of the model -->
 41    <rdf:Description rdf:about="#MooneyRivlin">
 42      <cmeta:comment rdf:parseType="Resource">
 43        <rdf:value>
 44          This is a CellML version of the Mooney-Rivlin constitutive material law,
 45          defining the relation between the eight independent strain components
 46          and the stress components. It is assumed that the strain components
 47          will be controlled externally by the application using this CellML
 48          model.
 49        </rdf:value>
 50      </cmeta:comment>
 51      <bqs:reference>
 52        <bqs:Pubmed_id>pubmed_id</bqs:Pubmed_id>
 53        <bqs:JournalArticle rdf:parseType="Resource">
 54          <dc:creator>
 55            <rdf:Seq>
 56              <rdf:li rdf:parseType="Resource">
 57                <bqs:Person rdf:parseType="Resource">
 58                  <vCard:N rdf:parseType="Resource">
 59                    <vCard:Family>Master</vCard:Family>
 60                    <vCard:Given>Andre</vCard:Given>
 61                    <vCard:Other>T</vCard:Other>
 62                  </vCard:N>
 63                </bqs:Person>
 64              </rdf:li>
 65              <rdf:li rdf:parseType="Resource">
 66                <bqs:Person rdf:parseType="Resource">
 67                  <vCard:N rdf:parseType="Resource">
 68                    <vCard:Family>Bob</vCard:Family>
 69                    <vCard:Given>Billy</vCard:Given>
 70                  </vCard:N>
 71                </bqs:Person>
 72              </rdf:li>
 73            </rdf:Seq>
 74          </dc:creator>
 75          <dc:title>
 76            What cool article to reference ??
 77          </dc:title>
 78          <dcterms:issued rdf:parseType="Resource">
 79            <dcterms:W3CDTF>year</dcterms:W3CDTF>
 80          </dcterms:issued>
 81          <bqs:Journal rdf:parseType="Resource">
 82            <dc:title>The Journal of Cool Stuff</dc:title>
 83          </bqs:Journal>
 84          <bqs:volume>volume</bqs:volume>
 85          <bqs:first_page>1</bqs:first_page>
 86          <bqs:last_page>1000</bqs:last_page>
 87        </bqs:JournalArticle>
 88      </bqs:reference>
 89    </rdf:Description>
 90  </rdf:RDF>
 91
 92  <!-- Global units -->
 93  <units name="strain">
 94    <unit units="dimensionless"/>
 95  </units>
 96  <units name="stress">
 97    <unit units="dimensionless"/>
 98  </units>
 99  <units name="pole">
100    <unit units="dimensionless"/>
101  </units>
102  <units name="curvature">
103    <unit units="dimensionless"/>
104  </units>
105  <units name="scale">
106    <unit units="dimensionless"/>
107  </units>
108
109  <component name="interface" cmeta:id="interface">
110
111    <rdf:RDF
112      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
113      xmlns:cmeta="http://www.cellml.org/metadata/1.0#">
114      <rdf:Description rdf:about="#interface">
115        <cmeta:comment rdf:parseType="Resource">
116          <rdf:value>
117            We'll use this component as the "interface" to the model, all 
118            other components are hidden via encapsulation in this component.
119          </rdf:value>
120        </cmeta:comment>
121      </rdf:Description>
122    </rdf:RDF>
123  
124    <!-- Variables we expect to be set/controlled externally -->
125    <variable name="E11" units="strain"  initial_value="0" private_interface="out"/>
126    <variable name="E22" units="strain"  initial_value="0" private_interface="out"/>
127    <variable name="E33" units="strain"  initial_value="0" private_interface="out"/>
128    <variable name="E12" units="strain"  initial_value="0" private_interface="out"/>
129    <variable name="E13" units="strain"  initial_value="0" private_interface="out"/>
130    <variable name="E23" units="strain"  initial_value="0" private_interface="out"/>
131    <variable name="c1" units="strain"  initial_value="2" private_interface="out"/>
132    <variable name="c2" units="strain"  initial_value="6" private_interface="out"/>
133    
134    <!-- Variables we want to make available externally -->
135    <variable name="Tdev11" units="stress" initial_value="0" public_interface="out" private_interface="in"/>
136    <variable name="Tdev22" units="stress" initial_value="0" public_interface="out" private_interface="in"/>
137    <variable name="Tdev33" units="stress" initial_value="0" public_interface="out" private_interface="in"/>
138    <variable name="Tdev12" units="stress" initial_value="0" public_interface="out" private_interface="in"/>
139    <variable name="Tdev13" units="stress" initial_value="0" public_interface="out" private_interface="in"/>
140    <variable name="Tdev23" units="stress" initial_value="0" public_interface="out" private_interface="in"/>
141    
142  </component> <!--interface-->
143
144  <component name="equations" cmeta:id="equations">
145
146    <rdf:RDF
147      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
148      xmlns:cmeta="http://www.cellml.org/metadata/1.0#">
149      <rdf:Description rdf:about="#equations">
150        <cmeta:comment rdf:parseType="Resource">
151          <rdf:value>
152            In this simple model we only have one component, which holds the
153            six equations.
154          </rdf:value>
155        </cmeta:comment>
156      </rdf:Description>
157    </rdf:RDF>
158
159    <!-- Inputs -->
160    <variable name="E11" units="strain"  public_interface="in"/>
161    <variable name="E22" units="strain"  public_interface="in"/>
162    <variable name="E33" units="strain"  public_interface="in"/>
163    <variable name="E12" units="strain"  public_interface="in"/>
164    <variable name="E13" units="strain"  public_interface="in"/>
165    <variable name="E23" units="strain"  public_interface="in"/>
166    <variable name="c1" units="strain"  public_interface="in"/>
167    <variable name="c2" units="strain"  public_interface="in"/>
168    
169    <!-- Outputs computed here -->
170    <variable name="Tdev11" units="stress" public_interface="out"/>
171    <variable name="Tdev22" units="stress" public_interface="out"/>
172    <variable name="Tdev33" units="stress" public_interface="out"/>
173    <variable name="Tdev12" units="stress" public_interface="out"/>
174    <variable name="Tdev13" units="stress" public_interface="out"/>
175    <variable name="Tdev23" units="stress" public_interface="out"/>
176    
177    <!-- Temporary variables -->
178    
179    <math xmlns="http://www.w3.org/1998/Math/MathML" cmeta:id="Tdev11_calculation_eq">
180      <apply id="Tdev11_calculation"><eq/>
181        <ci>Tdev11</ci>
182        <apply><plus/>
183          <apply><times/>
184            <cn cellml:units="strain">2.0</cn>
185            <ci>c1</ci>
186          </apply>
187          <apply><times/>
188            <cn cellml:units="strain">4.0</cn>
189            <ci>c2</ci>
190            <apply><plus/>
191              <ci>E22</ci>
192              <ci>E33</ci>
193            </apply>
194          </apply>
195          <apply><times/>
196            <cn cellml:units="strain">4</cn>
197            <ci>c2</ci>
198          </apply>
199        </apply>
200      </apply>
201    </math>
202    <math xmlns="http://www.w3.org/1998/Math/MathML" cmeta:id="Tdev22_calculation_eq">
203      <apply id="Tdev22_calculation"><eq/>
204        <ci>Tdev22</ci>
205        <apply><plus/>
206          <apply><times/>
207            <cn cellml:units="strain">2.0</cn>
208            <ci>c1</ci>
209          </apply>
210          <apply><times/>
211            <cn cellml:units="strain">4.0</cn>
212            <ci>c2</ci>
213            <apply><plus/>
214              <ci>E11</ci>
215              <ci>E33</ci>
216            </apply>
217          </apply>
218          <apply><times/>
219            <cn cellml:units="strain">4</cn>
220            <ci>c2</ci>
221          </apply>
222        </apply>
223      </apply>
224    </math>
225    <math xmlns="http://www.w3.org/1998/Math/MathML" cmeta:id="Tdev33_calculation_eq">
226      <apply id="Tdev33_calculation"><eq/>
227        <ci>Tdev33</ci>
228        <apply><plus/>
229          <apply><times/>
230            <cn cellml:units="strain">2.0</cn>
231            <ci>c1</ci>
232          </apply>
233          <apply><times/>
234            <cn cellml:units="strain">4.0</cn>
235            <ci>c2</ci>
236            <apply><plus/>
237              <ci>E11</ci>
238              <ci>E22</ci>
239            </apply>
240          </apply>
241          <apply><times/>
242            <cn cellml:units="strain">4</cn>
243            <ci>c2</ci>
244          </apply>
245        </apply>
246      </apply>
247    </math>
248    <math xmlns="http://www.w3.org/1998/Math/MathML" cmeta:id="Tdev12_calculation_eq">
249      <apply id="Tdev12_calculation"><eq/>
250        <ci>Tdev12</ci>
251        <apply><minus/>
252          <apply><times/>
253            <cn cellml:units="strain">4.0</cn>
254            <ci>E12</ci>
255            <ci>c2</ci>
256          </apply>
257        </apply>
258      </apply>
259    </math>
260    <math xmlns="http://www.w3.org/1998/Math/MathML" cmeta:id="Tdev13_calculation_eq">
261      <apply id="Tdev13_calculation"><eq/>
262        <ci>Tdev13</ci>
263        <apply><minus/>
264          <apply><times/>
265            <cn cellml:units="strain">4.0</cn>
266            <ci>E13</ci>
267            <ci>c2</ci>
268          </apply>
269        </apply>
270      </apply>
271    </math>
272    <math xmlns="http://www.w3.org/1998/Math/MathML" cmeta:id="Tdev23_calculation_eq">
273      <apply id="Tdev23_calculation"><eq/>
274        <ci>Tdev23</ci>
275        <apply><minus/>
276          <apply><times/>
277            <cn cellml:units="strain">4.0</cn>
278            <ci>E23</ci>
279            <ci>c2</ci>
280          </apply>
281        </apply>
282      </apply>
283    </math>
284  </component><!--membrane-->
285
286  <connection>
287    <map_components component_1="interface" component_2="equations"/>
288    <map_variables variable_1="E11" variable_2="E11"/>
289    <map_variables variable_1="E22" variable_2="E22"/>
290    <map_variables variable_1="E33" variable_2="E33"/>
291    <map_variables variable_1="E12" variable_2="E12"/>
292    <map_variables variable_1="E13" variable_2="E13"/>
293    <map_variables variable_1="E23" variable_2="E23"/>
294    <map_variables variable_1="Tdev11" variable_2="Tdev11"/>
295    <map_variables variable_1="Tdev22" variable_2="Tdev22"/>
296    <map_variables variable_1="Tdev33" variable_2="Tdev33"/>
297    <map_variables variable_1="Tdev12" variable_2="Tdev12"/>
298    <map_variables variable_1="Tdev13" variable_2="Tdev13"/>
299    <map_variables variable_1="Tdev23" variable_2="Tdev23"/>
300    <map_variables variable_1="c1" variable_2="c1"/>
301    <map_variables variable_1="c2" variable_2="c2"/>
302  </connection>
303  
304  <group>
305    <relationship_ref relationship="encapsulation"/>
306    <component_ref component="interface">
307      <component_ref component="equations"/>
308    </component_ref>
309  </group>
310
311</model>