mphgetproperties
Get the properties from a model node.
Syntax
str = mphgetproperties(modelnode)
[str,allowed] = mphgetproperties(modelnode)
Description
str = mphgetproperties(modelnode) returns the structure str containing the properties that are defined for the node modelnode.
[str,allowed] = mphgetproperties(modelnode) also returns the structure allowed containing the allowed values for the corresponding properties.
The function mphgetproperties accepts the following property/value pairs:
on | off
on | off
Example
Build the mesh in the model model_tutorial_llmatlab.mph and get the mesh size properties and their allowed values:
model = mphopen('model_tutorial_llmatlab');
mesh1 = model.component('comp1').mesh('mesh1');
mesh1.run;
msize = mesh1.feature('size');
[prop, allowed] = mphgetproperties(msize)
Get the min and max mesh size properties only:
prop = mphgetproperties(msize,'propnames',{'hmin','hmax'})
Return the property data not as string:
prop = mphgetproperties(msize,'propnames',{'hmin','hmax'},...
'returnstrings','off')
See also
mphgetexpressions, mphgetselection, mphmodel, mphnavigator, mphsearch