APM
Main.APM History
Hide minor edits - Show changes to markup
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
Compounds ! list of compounds by name, CAS number, or formula End Compounds Objects object.child As object.parent End Objects
! intermediate variable declarations in explicit form
! intermediate variable declarations in explicit equation form
Compounds ! list of compounds by name, CAS number, or formula End Compounds
variable_1 = variable_2 object_1 = object2
variable1 = variable2 object1 = object2
[@Model example
Model example
variable1 = variable2 object1 = object2
variable_1 = variable_2 object_1 = object2
End Model@]
End Model
(:table align='left':)
(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0:)
Objects object.child As object.parent End Objects
! include parameters here
parameter = {default value}, > {lower}, < {upper}
! include variables here
variable = {default value}, > {lower}, < {upper}
Connections variable1 = variable2 object1 = object2 End Connections Intermediates ! intermediate variable declarations in explicit form End Intermediates
! include equations here
! equation expressions in open-equation form
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:)