Release Notes > The COMSOL API for Use with Java®

The COMSOL API for Use with Java®
COMSOL 5.2a API Changes
Ac/DC Module Changes
New Coil Feature
In the Magnetic Fields, Magnetic and Electric Fields, and Rotating Machinery, Magnetic interfaces, a new unified Coil feature has replaced the Multi-Turn Coil feature. The functionality of the old Multi-Turn Coil feature can be replicated by using the new Coil feature with the Conductor model set to Homogenized Multi-Turn, but all of the other parameters are unchanged. The only change required is to the create statements such as:
model.physics("mf").feature().create("mtcd1", "MultiTurnCoilDomain", 3);
which should be modified to:
model.physics("mf").feature().create("mtcd1", "Coil", 3);
model.physics("mf").feature("mtcd1").set("ConductorModel", "Multi");
User-Defined Coil Geometry Subfeature Selection
In 3D models, when using a user-defined geometry for a Coil feature, the User Defined Coil Geometry subfeature has been transformed from a boundary feature to a domain feature. New Input and Output subnodes are used to select the coil input or output boundaries instead. Any code setting the selection of this feature should be modified to set the selection on the Input subfeature instead.
Relative Permeability for Magnetic Shielding in Magnetic Fields, No Current
The relative permeability parameter mur in the Magnetic Shielding feature in the Magnetic Fields, No Currents interface is now a scalar quantity. Setting a tensor quantity will not cause exception, but only the first component of the tensor will be used as the value.
Acoustics Module Changes
The default settings have changed for the Incident Pressure Field in the Pressure Acoustics interfaces. Add the following line to obtain the old behavior of this feature when ipf1 is a subfeature to pwr1:
model.physics("acpr").feature("pwr1").feature("ipf1").
set("c", "acpr.c_c");