The Model Object and the ModelUtil Object
The model object is used by the COMSOL Desktop to represent the model. This means that the model object and the COMSOL Desktop behavior are virtually identical. The following applies:
The model object includes methods to set up and run sequences of operations to create geometry, meshes, and to solve your model.
The Model Object in the COMSOL Multiphysics Programming Reference Manual.
The model object has a large number of methods. The methods are structured in a tree-like way, similar to the nodes in the model tree in the Model Builder window on the COMSOL Desktop. The top-level methods just return references that support further methods. At a certain level the methods perform actions, such as adding data to the model object, performing computations, or returning data.
Detailed documentation about model object methods is in About General Commands in the COMSOL Multiphysics Programming Reference Manual.
In VBA you can access the model object methods using a ModelUtil object. To create a ModelUtil object enter:
Set modelutil = CreateObject("comsolcom.modelutil")
See The COMSOL API section to get more information about the COMSOL API methods accessible from the ModelUtil object.