Disabling Model Feature Update
Every time a setting in changed in a model COMSOL Multiphysics automatically checks the settings for that particular feature and updates any other feature that may depend on the new setting. This ensures you that the features are built with updated expressions and that any error messages appear as soon as possible after a COMSOL command has been executed.
For models that contain a large amount of physics feature nodes this update operation can take some time. For small models this is not an issue, but for larger models the checks can be time consuming. It can help to deactivate the model feature update.
To disable the feature model update enter the command:
model.disableUpdates(true)
You have to enable the feature update again prior to computing the solution in order to make sure that COMSOL works on an updated model definition. Enabling the feature update is also necessary before building the geometry or the mesh in case these are defined using expressions.
To enable the feature model update, enter the command:
model.disableUpdates(false)