Jump to content

Template:Dimensions: Difference between revisions

From mintOC
No edit summary
adds a little documentation
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
|headerstyle = background:#ccf;
{{Infobox
|labelstyle   = background:#ddf;
| bodystyle = width:auto
{|border="1px" cellpadding="2px" align="right" valign="top"
| labelstyle = font-style:italic; font-weight:normal
|-
| datastyle  = text-align:right; font-weight: bold
!colspan="2" align="center"|{{PAGENAME}}
 
|-
| above  = {{PAGENAME}}
{{#if:{{{nx|}}}|
 
{{!}}align="left"{{!}}'''Differential states:'''
| label1  = State dimension:
{{!}}align="left"{{!}}{{{nx}}}
| data1  = {{{nd|}}}
{{!}}-
| label2  = Differential states:
|}}
| data2  = {{{nx|}}}
{{#if:{{{nz|}}}|
| label3  = Algebraic states:
{{!}}align="left"{{!}}'''Algebraic states:'''
| data3  = {{{nz|}}}
{{!}}align="left"{{!}}{{{nz}}}
| label4  = Continuous control functions:
{{!}}-
| data4  = {{{nu|}}}
|}}
| label5  = Discrete control functions:
{{#if:{{{nu|}}}|
| data5  = {{{nw|}}}
{{!}}align="left"{{!}}'''Continuous control functions:'''
| label6  = Continuous control values:
{{!}}align="left"{{!}}{{{nu}}}
| data6  = {{{np|}}}
{{!}}-
| label7  = Discrete control values:
|}}
| data7  = {{{nrho|}}}
{{#if:{{{nw|}}}|
| label8  = Path constraints:
{{!}}align="left"{{!}}'''Discrete control functions:'''
| data8  = {{{nc|}}}
{{!}}align="left"{{!}}{{{nw}}}
| label9  = Interior point inequalities:
{{!}}-
| data9  = {{{nri|}}}
|}}
| label10 = Interior point equalities:
{{#if:{{{np|}}}|
| data10  = {{{nre|}}}
{{!}}align="left"{{!}}'''Continuous control values:'''
}}
{{!}}align="left"{{!}}{{{np}}}
{{!}}-
|}}
{{#if:{{{nrho|}}}|
{{!}}align="left"{{!}}'''Discrete control values:'''
{{!}}align="left"{{!}}{{{nrho}}}
{{!}}-
|}}
{{#if:{{{nc|}}}|
{{!}}align="left"{{!}}'''Path constraints:'''
{{!}}align="left"{{!}}{{{nc}}}
{{!}}-
|}}
{{#if:{{{nri|}}}|
{{!}}align="left"{{!}}'''Interior point inequalities:'''
{{!}}align="left"{{!}}{{{nri}}}
{{!}}-
|}}
{{#if:{{{nre|}}}|
{{!}}align="left"{{!}}'''Interior point equalities:'''
{{!}}align="left"{{!}}{{{nri}}}
{{!}}-
|}}
</includeonly>
</includeonly>
<noinclude><pre>
<noinclude>
=Usage=
<pre>
{{Dimensions
{{Dimensions
|nd        = enter the number of partial derivatives (3 for a time-dependent 2d problem)
|nd        = enter the dimension of the differential states
|nx        = enter the number of differential states
|nx        = enter the number of differential states
|nz        = enter the number of algebraic states
|nz        = enter the number of algebraic states
Line 65: Line 44:
|nre      = enter the number of interior point equalities
|nre      = enter the number of interior point equalities
}}
}}
</pre></noinclude>
</pre>
=Maintenance=
If you'd like to change the appearance of <code><nowiki>{{Dimensions}}</nowiki></code> please do it using this file and leave <code>common.css</code> untouched. You have various options to do so, e.g. adding a <code>background:#d13f58</code> to the <code>abovestyle</code> field (separated by <code>;</code>). Click [https://en.wikipedia.org/wiki/Template:Infobox here] for further documentation.
</noinclude>

Latest revision as of 14:25, 25 January 2016


Usage

{{Dimensions
|nd        = enter the dimension of the differential states
|nx        = enter the number of differential states
|nz        = enter the number of algebraic states
|nu        = enter the number of continuous control functions
|nw        = enter the number of discrete-valued control functions
|np        = enter the number of time-independent, continuous control values
|nrho      = enter the number of time-independent, discrete control values
|nc        = enter the number of path- and control constraints
|nri       = enter the number of interior point inequalities
|nre       = enter the number of interior point equalities
}}

Maintenance

If you'd like to change the appearance of {{Dimensions}} please do it using this file and leave common.css untouched. You have various options to do so, e.g. adding a background:#d13f58 to the abovestyle field (separated by ;). Click here for further documentation.