Searching on Model Contents
Applying a Tag filter () in the Model Manager window is a quick and easy way of finding models and data files in the database. This requires, however, that you have already assigned tags to your items based on some preplanned organizational structure. As you have already seen, you can also apply other types of search filters — including, for example, when an item version was last saved or the user that saved that version. You can even search on the node properties, parameters, settings, and other contents found “deep” inside models.
1
Click the Reset button () in the Model Manager window to reset the search result. Click the Table button () to see the Table View if not already shown.
2
Click the Add Filter button () in the toolbar and select Space Dimension ().
The Filter dialog box is opened enabling you to apply a filter on the space dimension of components found inside models.
3
Select the 3D check box in the list of space dimensions.
4
Click OK to apply the filter.
The search result includes about 900 models. Select any one of them and verify that the model indeed has a 3D component in the Contents section in the Settings window.
You can extend your filter to also match models with 2D components.
1
Click the 3D filter pill in the Model Manager window and select Edit ().
2
In the Filter dialog box, select the 2D check box.
3
Click OK to apply the updated filter.
The search result count increases with a few hundred models having a 2D component.
The default behavior in the Filter dialog box is to combine filter options with Boolean OR-logic. You can update our filter to use Boolean AND-logic instead.
1
2
In the Options list in the Filter dialog box, select the Match all terms check box.
3
Select any model in the search result and verify that the model indeed has both a 2D component and a 3D component in the Contents section in the Settings window.
You can combine the space dimension filter with a separate filter on a physics interface.
1
Click the Add Filter button () and select Physics ().
2
In the text field above the tree, write solid mechanics. Click Search.
3
Select the Structural Mechanics>Solid Mechanics (solid) check box.
4
The search result only contains three models. All of them use the Solid Mechanics interface in at least one component.
Searching Node Properties
You can find models based on the properties of specific nodes in the model tree.
1
Click the Reset button () to remove all filters.
2
Write wrench and click Search.
3
Double-click the Stresses and Strains in a Wrench model () in the search result.
The model version is loaded from the database and opened in the COMSOL Desktop. This is the same model you built in the tutorial Example: Modeling Using Version Control.
4
Right-click Component 1 () and select Properties () to open the Properties window for the node.
5
In the Comments field in the Properties window, write A 3D component for the structural integrity of a wrench.
6
From the File menu, select Save To ().
7
In the Comments field in the Save window, write Added a node comment for the component for easier future retrieval.
8
Click Save () to save a new version of the model.
Return to the Model Manager workspace. You can now find this model by searching on the node comment you wrote in the Properties window.
1
Click the Reset button () to remove the search term.
2
Click the Add Filter button () and select Node Properties>Comment ().
3
In the Filter dialog box, write component structural integrity wrench in the Text field.
4
Select the Match all terms check box under Options. This step is done to require that all four words appear in the matched node comment.
5
The wrench model is indeed the sole search result.
Double-click the component node in the Contents section of the Settings window for the Stresses and Strains in a Wrench model (). A Details dialog box is shown containing node properties and settings for the component. You can find your comment in the Comment row of the Node table. Click OK to close the dialog box.
All node and setting values shown in the Details dialog box for a node in the Contents section can be applied as a filter in the Model Manager search functionality. See Content Filters for further details.
Click the Reset button () to remove the comment filter.
Searching Parameter Settings
The model for the structural integrity of a wrench uses an Applied force parameter for the total load on the wrench, in this case set to 150N. You can search for other models using the same parameter and force range.
1
Click the Add Filter button () and select Parameter ().
2
In the Description field, write applied force.
3
Select the Match all terms check box under Options.
4
Write 100 in the From field and 200 in the To field.
5
There are two models in the search result. Select the Shape Optimization of a Wrench model () and double-click a parameters node under Global Definitions () in the Contents section. You will find that there is indeed a row for the Applied force with a force value within the searched range in the Settings table.