About the COMSOL API
You can use the COMSOL API to develop custom applications based on COMSOL. The easiest way to create such applications is by using the Application Builder available with the COMSOL software.
You can run Java class files with COMSOL API-based applications in different ways:
From the COMSOL Desktop®. A model created using a class file appears automatically in the Desktop.
Using the comsol batch command.
You can create model methods for use with the Model Builder tree when creating and running COMSOL Multiphysics models in the COMSOL Desktop. The COMSOL Desktop also includes a Shell window, from which you can run COMSOL API commands.
The LiveLink™ for MATLAB® operates using the COMSOL API and additional utility M-file functions. See the LiveLink™ for MATLAB ®User’s Guide for additional information.
Code examples for the individual API functions in this guide show what the code looks like when using Java® and when using the LiveLink™ for MATLAB®.