You are viewing the documentation for an older COMSOL version. The latest version is available here.
model.field()
Create and define properties for fields with shape functions that defined field variables.
Syntax
model.field().create(<tag>,<fname>);
model.field(<tag>).field(<fname>);
model.field(<tag>).shape(<shlist>);
 
model.field(<tag>).field();
model.field(<tag>).shape();
model.field(<tag>).geom();
Description
model.field().create(<tag>,<fname>) creates a field with tag <tag> with the field name <fname>.
model.field(<tag>).field(<fname>) sets the field name.
  model.field(<tag>).shape(<shlist>) sets the shape functions defining the field variables. <shlist> is a list of shape function tags. Each shape function defines one or more field variables. Together the shape functions specify which field variables there are in the field.
model.field(<tag>).field() returns the field name as a string.
model.field(<tag>).shape() returns the shape function tags as a string array.
model.field(<tag>).geom() returns the geometry associated with the field.
See Also
model.shape(), model.coeff()