mphtags
Get tags and names for nodes in a COMSOL Multiphysics model.
SYNTAX
mphtags(model)
mphtags(node)
mphtags(model, type)
[tags,labels,displaystrings] = mphtags(...)
mphtags
mphtags -show
[tags,filename,fullfilename] = mphtags
DESCRIPTION
mphtags is used to retrieve tags from nodes in a COMSOL Multiphysics model or tags from models that are loaded on the server.
When mphtags is called with a model or node variable the tags are returned form the model. mphtags also be called using a model variable and a type, where type can be one of these strings: result, dataset, table, numerical, and export to give easy access to the nodes under the result node. It is sufficient to use the first letter of the types.
If mphtags is called with output arguments it is possible to get both the tags as well as labels and display names used for the nodes. For example,
[tags,labels,displaystrings] = mphtags(model.geom)
If mphtags is called with the root model node as argument, the filename of the model can be returned:
[tag,filename,displaystring] = mphtags(model)
mphtags can be used to return a list of files currently loaded on the server. For example,
[tags,filename,fullfilename] = mphtags
In order to see this information quickly it is possible to call mphtags like this:
mphtags -show
that just produces output that is useful viewing on screen.