Changes between Version 2 and Version 3 of CalcObject


Ignore:
Timestamp:
Jun 11, 2007, 2:34:46 PM (16 years ago)
Author:
Argimiro Resende Secchi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CalcObject

    v2 v3  
    1 = CalcObject - External Calculation Objects =
     1= Plugin - External Calculation Objects =
    22
    33[wiki:EMSO] is an equation-based tool, therefore most type of mathematical
     
    1212Exactly for the above cases, EMSO provides a mechanism where the user can ''plug'' code written in C, C++, or FORTRAN into the models.
    1313
    14 == Using a CalcObject's ==
     14== Using a Plugin's ==
    1515
    16 In order to ''plug'' external calculation code into the models the user needs to declare a ''special'' parameter, a CalcObject:
     16In order to ''plug'' external calculation code into the models the user needs to declare a ''special'' parameter, a Plugin:
    1717
    1818{{{
     
    2020Model stream_therm as stream
    2121   PARAMETERS
    22    PP as CalcObject (Brief = "External Physical Properties");
     22   PP as Plugin (Brief = "External Physical Properties", Type = "PP");
    2323   
    2424   EQUATIONS
     
    2727}}}
    2828
    29 In the above example (see [../browser/mso/eml/streams.mso streams.mso]), the parameter '''PP''' is the CalcObject.
     29In the above example (see [../browser/mso/eml/streams.mso streams.mso]), the parameter '''PP''' is the Plugin.
    3030
    31 == CalcObject Methods ==
     31== Plugin Methods ==
    3232
    33 Once the CalcObject was declared, the user can '''call''' its methods.
     33Once the Plugin was declared, the user can '''call''' its methods.
    3434Methods can have arguments and are called using the '''dot''' notation, eg:
    3535
     
    4040
    4141In the above '''call''' three arguments are supplied: T, P, and z.
    42 Before running a simulation, EMSO will check if all methods used in models actually were implemented by the CalcObject.
     42Before running a simulation, EMSO will check if all methods used in models actually were implemented by the Plugin.
    4343EMSO also check if the number of arguments and its units of measurement are correct.