The model object that contains the true representation of the model is available directly from the MATLAB® prompt. This means that all functionality available from the COMSOL Desktop becomes automatically available at the MATLAB prompt, and that the model behaves exactly the same from the MATLAB prompt as it does in the COMSOL Desktop. In the future this will also mean that you will be able to see changes to the model object that have been made in MATLAB, and vice versa.
The interface to MATLAB uses an entirely new syntax for the model. In order to help you convert models to the new syntax, two conversion tools are available:
- The function
- The ability to load 3.5a models in the V4 GUI and then to save them as M-files
These conversion tools are limited to converting the
to the new syntax; the rest of the M-files that you have written for
3.5a need to be manually converted.
The ability to start COMSOL with MATLAB in a 3.5a compatibility mode is intended to help you in the process of working with both the old and new syntax.
Version 4.0a includes built-in support for parameterized geometries.
There should be no need to change boundary condition during
parameterization; thus the
geomanlyze function is no longer
necessary. Parameterization can be performed both with the built-in
parametric solver and by wrapping a for-loop around the solver call.
The functionality corresponding to the following geometry functions from version 3.5a is not available in version 4.0a. Most of this functionality will be available in version 4.1.
tangent(scheduled for 4.0a)
The functionality corresponding to the following mesh functions from version 3.5a is not available in version 4.0a. Most of this functionality will be available in version 4.1.
meshrevolve(essentially replaced by generalized sweep functionality)
See the section “The COMSOL API” regarding changes in the COMSOL API.