New Functionality

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 mphv4
  • 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 fem structure 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.

Parameterized Geometries

Version 4.0 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.

Backward Compatibility

All backward compatibility issues are planned to be solved for version 4.0a unless explicitly stated.

Geometry

The functionality corresponding to the following geometry functions from version 3.5a is not available in version 4.0. Most of this functionality will be available in version 4.1.

  • flim2curve, flcontour2mesh, and flmesh2spline
  • geomspline, geomsurf
  • loft
  • helix
  • arc
  • geom0, geom1, geom2, and geom3
  • geomedit
  • geomfile
  • tangent (scheduled for 4.0a)
  • gencyl
  • The paircand property of geomgroup

Mesh

The functionality corresponding to the following mesh functions from version 3.5a is not available in version 4.0. Most of this functionality will be available in version 4.1.

  • mesh2geom
  • meshembed
  • meshextrude and meshrevolve (essentially replaced by generalized sweep functionality)
  • The hmesh and mesh properties of meshinit