MOSAICmodeling functions have two different purposes:
- Replace explicit expressions, which can directly be calculated. These could also be entered as equations.
- Provide an interface to external software via external function calls. These can for example call an external physical properties library to perform some thermodynamic calculations and return the desired enthalpy as a function of temperature, pressure, and composition.
Here we will focus on how to enter the former. Information on how to implement external function calls inside MOSAICmodeling can be found in the documentation (there is no workflow diagram, yet).
Formulating a Function Inside MOSAICmodeling
The same editor can be used for both purposes mentioned above. The editor is shown in Fig. 1.
The workflow to enter a function inside MOSAICmodeling is given below: