The Model Manager Search Syntax
The filter functionality in Model Manager is based on a tailor-made search syntax adapted for searching deep within a COMSOL Multiphysics simulation model. You may have seen examples of this syntax already in the Filter query preview field in The Filter Dialog Box. The syntax enables you to write filter queries that find models whose node properties, parameters, features, and other settings satisfy arbitrarily complex constraints. As an example, you can write a custom filter query that matches all models that have an axisymmetric 2D component, for which the component uses a particular physics interface and a particular material.
In this section, you will learn how you can formulate such custom filter queries. Via examples of gradually increasing complexity, you will see how to write simple expressions for filters on single fields, how you can combine such field expressions using boolean logic, and finally how you can nest field expressions based on the nested node hierarchy in the model tree. The section ends with a complete listing of all available field expressions in the Model Manager search syntax.
The examples in this section will exclusively refer to Models. You can also write analogous custom filter queries for Files using the item field expressions in the Search Syntax Catalog.