APM

Main.APM History

Hide minor edits - Show changes to markup

October 02, 2008, at 03:25 PM by 158.35.225.228 -
Added lines 11-24:
 Compounds
   ! list of compounds by name, CAS number, or formula
 End Compounds

 Objects
   object.child As object.parent
 End Objects

 Connections
   variable1 = variable2
   object1 = object2
 End Connections
Deleted lines 25-32:
  Compounds
    ! list of compounds by name, CAS number, or formula
  End Compounds

  Objects
    object.child As object.parent
  End Objects
October 01, 2008, at 03:43 PM by 158.35.225.229 -
Changed line 34 from:
    ! intermediate variable declarations in explicit form
to:
    ! intermediate variable declarations in explicit equation form
October 01, 2008, at 03:32 PM by 158.35.225.229 -
Changed line 1 from:

APM Model File

to:

APM - Model File

October 01, 2008, at 02:57 PM by 158.35.225.229 -
Added lines 12-15:
  Compounds
    ! list of compounds by name, CAS number, or formula
  End Compounds
Changed lines 29-30 from:
    variable_1 = variable_2
    object_1 = object2
to:
    variable1 = variable2
    object1 = object2
Deleted line 39:
October 01, 2008, at 02:55 PM by 158.35.225.229 -
Changed line 11 from:

[@Model example

to:
 Model example
Changed lines 25-26 from:
    variable1 = variable2
    object1 = object2
to:
    variable_1 = variable_2
    object_1 = object2
Changed line 37 from:

End Model@]

to:
 End Model
October 01, 2008, at 02:54 PM by 158.35.225.229 -
Changed line 9 from:

(:table align='left':)

to:

(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0:)

Deleted line 10:
Added lines 12-15:
  Objects
    object.child As object.parent
  End Objects
Changed line 17 from:
    ! include parameters here
to:
    parameter = {default value}, > {lower}, < {upper}
Changed line 21 from:
    ! include variables here
to:
    variable = {default value}, > {lower}, < {upper}
Added lines 24-32:
  Connections
    variable1 = variable2
    object1 = object2
  End Connections

  Intermediates
    ! intermediate variable declarations in explicit form
  End Intermediates
Changed line 34 from:
    ! include equations here
to:
    ! equation expressions in open-equation form
Added line 36:
Deleted line 37:
October 01, 2008, at 02:49 PM by 158.35.225.229 -
Added lines 1-26:

APM Model File

The model information is contained in the APM file. This is a text file with variables, equations, objects, connections, and default values. There is one model file that can be used in all simulation modes.

Model Structure

The model is stored in a text file with an extension .apm. Comments characters include exclamation mark (!), percent sign (%), and pound sign (#). Comments can be placed at any location in the file and will be ignored during run time. Model indentation is encouraged to improve readability of the file, but is not required. In this case the model name example is chosen. In the following documentation, anything that begins with a capital letter is a system keyword while lower case words can be modified by the user.

(:table align='left':) (:cellnr:)

Model example
  Parameters
    ! include parameters here
  End Parameters

  Variables
    ! include variables here
  End Variables

  Equations
    ! include equations here
  End Equations
End Model

(:tableend:)