#* * EMSO template file for new models. * * The user should edit the contents of this file in order * to develop a new model. * * $Id: model.mso 14 2006-08-26 20:15:39Z rafael $ *# #* * The using command makes available entities declared in another files. * * With this command the user can make use of the EML types *# using "types"; #* * A new model is declared with the Model keyword and a name. * A model can have several sections presented above: *# Model CustomModel #* * In the PARAMETERS section we can define the constants of the * model. * A parameter will never be the result of the simulation its value * need to be specified by the user. *# PARAMETERS V as volume(Brief="The model volume"); A as area(Brief="Cross section area"); #* * In the VARIABLE section we declare the variables of the model. * The values of the variables will be calculated by the system * in order to respect the model equations. *# VARIABLES h as length(Brief="The level"); #* * In the EQUATIONS section we declare equality expressions involving * the any previously declared parameter or variable. * The equations will be used to determine the value of the variables. *# EQUATIONS A * h = V; #* * Additionally, in the case of dynamic models we can declare initial * conditions exactly as in the EQUATIONS section. * Equations declared on the INITIAL section will be used to determine * the initial condition of dynamic models. *# INITIAL end