Selecting Contributing Physics
You can control which physics interface that contributes to the physics-controlled mesh using
model.component(<ctag>).mesh(<tag>).contribute(<interface>,<contribute>);
The argument <contribute> (true or false) value is used to specify if the interface contributes or not.
The interface can be a physics interface, a multiphysics coupling, or a common feature, specified according to the following table:
Table 4-3: Interface Types.
<tag> or physics/<tag>
common/<tag>
Not all common features can contribute to the physics-controlled mesh.
To check if an interface is currently contributing to the physics controlled mesh, use
model.component(<ctag>).mesh(<tag>).contributing(<interface>);
An interface is contributing by default, when added. To get the tags of all available contributors, use
model.component(<ctag>).mesh(<tag>).contributors();
The resulting string array will also contain the tag geom/detail. See Geometric Analysis, Detail Size Contribution for more information.
The following code shows some examples of how to use these methods, assuming there is a Heat Transfer interface tagged ht and an Electromagnetic Heating multiphysics coupling tagged emh1:
String[] contrTags = model.component(<ctag>).mesh("mesh1").contributors();
 
model.component(<ctag>).mesh("mesh1").contribute("ht", true);
model.component(<ctag>).mesh("mesh1").contribute("multiphysics/emh1", false);
 
boolean isActivated = model.component(<ctag>).mesh("mesh1").contributing("ht");
boolean physicsActive = model.component(<ctag>).physics("ht").isActive();
Where contrTags will be {"physics/ht", "multiphysics/emh1"} and isActivated will have the value true. If physicsActive is true, then the Heat Transfer interface contributes to the physics-controlled mesh, otherwise not.