Saving More Versions
The model uses a geometry that was previously created and stored in the COMSOL native CAD format mphbin.
1
In the Model Builder window, right-click Geometry 1 () and select Import ().
2
In the Settings window for Import, from the Source list, select COMSOL Multiphysics file.
3
Click Browse () and locate the file wrench.mphbin in the application library folder of the COMSOL installation folder. Its default location in Windows® is
C:\Program Files\COMSOL\COMSOL62\Multiphysics\applications\
COMSOL_Multiphysics\Structural_Mechanics\wrench.mphbin
Double-click to add, or click Open.
4
Click Import () to display the geometry in the Graphics window.
5
Select Geometry 1 () and click the Build All button () in the Settings window.
With a geometry added to the model, save a second version:
1
From the File menu, select Save as Version ().
The Save window opens with your database preselected in the list of options. The header reads Save version as the model already exists in the database. The same title you gave when saving the first version is suggested also for this second version.
2
In the Title field, change the title to Structural analysis of a wrench.
3
Write Added a geometry for a wrench in the Comments field.
4
Click the Save button ().
You now have two versions of the model saved in your database.
Add a description to your model and save a third version:
1
2
In the Description field under the Presentation section, write Analysis of the mechanical stress level in a wrench.
3
From the File menu, select Save as Version ().
4
Expand the Description section on the right in Save window. The text area is prefilled with the same description you wrote in the Presentation section. You could have also written your new description directly here.
5
Write Added a description in the Comments field. Click Save ().
The Versions Window
You have, up to this point, saved three versions of your model in the database.
From the Windows menu () in the Layout section of Model Builder’s Home toolbar, select Versions () to open the Versions window. You will see your three versions in a table. The top table row is highlighted in bold as it is opened in the COMSOL Desktop.
You can open an older version from the Versions window:
1
Select the bottom row in the table and click the Open button () in the toolbar. You can also double-click the row. Select No if you are asked to save any unsaved changes.
The first version is opened in the COMSOL Desktop. There is no Import () node under the Geometry 1 () node, and the Description field is empty.
2
The second version is opened in the COMSOL Desktop — the import node is now present under the geometry node, but the Description field is still empty.
3
The third, and latest, version is opened in the COMSOL Desktop.