General Commands > About General Commands > model.multiphysics()

model.multiphysics()
Add multiphysics features to this feature container.
syntax
model.multiphysics().create(<tag>,...);
Description
model.multiphysics().create(<tag>,<coupling>,<geom>,<sdim>); adds a multiphysics coupling with the tag and the name to a geometry and a space dimension. Use -1 as the space dimension to indicate a coupling valid in the entire model.
Example
In a model with a Solid Mechanics interface and a Heat Transfer in Solids interface, add a Thermal Expansion multiphysics coupling on the domain level and a Temperature Coupling on a model-wide level in a geometry geom1:
Code for use with Java
Model model = ModelUtil.create("Model");
model.geom.create("geom1", 3);
model.multiphysics().create("te1","ThermalExpansion","geom1",3);
model.multiphysics().create("tc1","TemperatureCoupling","geom1",-1);
Code for use with MATLAB
model = ModelUtil.create('Model');
model.geom.create('geom1', 3);
model.multiphysics.create('te1','ThermalExpansion','geom1',3);
model.multiphysics.create('tc1','TemperatureCoupling','geom1',-1);