Geometry Parts Saved in Databases
You can version control geometry parts in a Model Manager database by saving the corresponding model containing the part via, for example, the Save window — much like you would save any other model to a database. Model Manager will automatically detect if a saved model contains any reusable geometry parts and, if so, store associated metadata in the database. This enables you, for example, to easily find models with geometry parts by applying a Part filter when searching in the database. How you choose to divide up your geometry parts between different container-models is a matter of personal preference, although having too many geometry parts within the same model can make it difficult to track down a specific part in the database. Also note that the version control management applies to the models themselves, not the individual parts found inside models.
You can organize your geometry parts in the database by saving the models to a dedicated repository, similar to how you would set up a part library of MPH files in a directory on the file system. For a Model Manager server database, for example, this enables you to easily set less restrictive permissions for the shared geometry parts that you may otherwise do for other models. You may also find it useful to assign tags to your models to better organize them within the repository.
You can insert a geometry part stored in a database by right-clicking Global Definitions () in the Model Builder window and selecting Geometry Parts > Load Part From (). You can also right-click the geometry part you want to insert and select Insert into Model () from the Contents section of the Settings window in the Model Manager workspace. See Inserting Parts and Other Model Contents from Databases and Inserting Contents from Models for more details.
When you insert a geometry part stored in a database into the model opened in the COMSOL Desktop and then save the model to the same database as the geometry part, Model Manager will store an explicit reference link between the saved model version and the geometry part’s model version. This helps you to keep track of, for example, which models are currently using a particular geometry part, as well as preventing the geometry part from being permanently deleted — see Reference-tracking in Model Manager for further details.
You update an inserted geometry part to a newer version via the Auxiliary Data window — see also The Auxiliary Data Window for Database Input and Output. The Status column for the geometry part displays the message Newer versions exist when a newer version of the geometry part’s container-model is available in the database. Right-click and select Update to Latest Version () to reset the reference in the opened model to the newest version of the container-model. From the Settings window of the geometry part, click Reload () to load the updated geometry part from the container-model into the opened model.
Using Geometry Parts in the COMSOL Multiphysics Reference Manual