Simulational result of a micromagnetic cube. A single-domain state (flower state) is obtained.

One of the big advantages of COMSOL Multiphysics is the possibility to implement user-defined partial differential equations (PDE) which can be coupled to COMSOL's predefined physics interfaces. However, using the tool’s standard user interface requires manual implementation of the PDEs and a multitude of problem-specific parameters. This process is not just error-prone but also very time consuming. As an alternative to this manual implementation one can use COMSOL’s Java Application Programming Interface (API) which provides an easy and efficient way to create a user-defined simulation package. Here, we demonstrate the usage of COMSOL's Java API by our implementation of a micromagnetic modeling and simulation package.