Learn COMSOL-MODULES with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Heat Transfer Module - Temperature Boundary
model.physics("ht").feature("temp1").set("T0", 373.15);
A COMSOL proprietary module command setting a boundary temperature in the Heat Transfer module.
2
AC/DC Module - Magnetic Field Current Density
model.physics("mf").feature("curr1").set("J0", new double[]{0, 0, 5e6});
A script setting a current density boundary condition using the AC/DC Module.