Using Numerical Results in a Model or Application
The numerical results retrieved using the API are stored in standard Java variables, such as double and String. This allows you to use them directly in custom model method code to automate modeling workflows. Similarly, these variables can be linked to Declarations in the Application Builder for use in simulation apps. For example, a double variable storing a length can be connected to a Data Display or Input Field form object, making it visible or editable to the app user. To see an example of this in practice, open the Tuning Fork demo application from the Application Libraries at COMSOL Multiphysics > Applications.