COMSOL 4.3 Java API Changes
- In the Acoustics Module the far-field variables
Lp_farget new names with full scope. They are now referred to as
acpr.ffc1.Lp_far, respectively. Any user Model Java-files that use the old variable names in expressions (such as expressions to plot or evaluate expressions including these variables) will require a manual update.
- In the
Electrostaticsinterface, the parameter
DisplacementFieldModelin the feature
ChargeConservationhas been renamed to
ConstitutiveRelationDfor consistency with the other physics interfaces.
- The newly added Rotating Machinery, Magnetics interfaces in the AC/DC Module will be defined in the Material frame. Vector variables, such as the electric current density
J, are now defined with components in the Material frame (
JZ). The Electric Field Transformation default feature computes the spatial electric and magnetic fields as postprocessing variables using a Lorentz transformation of the electric field, so the variables
Bz(with components in the Spatial frame) are still defined.
- In the Electric Currents (
ConductiveMedia) interface, the features
ArchiesLawhave been replaced by the general mixture model for the AC/DC Module. The same functionality can be obtained by creating a
CurrentConservationfeature, set the required parameter (
ArchiesLawfor the electrical conductivity) and add a
ArchiesLaw) subfeature. When running class files compiled in COMSOL 4.2a or earlier, this conversion is done automatically.
- From version 4.3 the methods
are depreciated and replaced by the methods
COMSOL 4.2a Java API Changes
- Class files compiled with COMSOL 4.1 or lower version need to be recompiled
- The far field feature in the Electromagnetic Waves interface has changed from being a boundary feature with a boundary selection only, to being a domain feature with a domain selection and, as a sub feature, a boundary selection.
- The dependent variable associated with gauge fixing in the Magnetic Fields, Magnetic and Electric Fields, Electromagnetic Waves and Transient Electromagnetic Waves interfaces, is now unique per interface and is no longer available in the model scope, for example,
mod1.psi, etc. Instead the gauge fixing field is only available in the interface scope as, for example,
- In the scattered field formulation in the Electromagnetic Waves interface, the scattered field is no longer available in the model scope, for example,
mod1.relEx. Instead the scattered field is only available in the interface scope as, for example,
- In the Solid Mechanics interfaces (
FluidStructureInteraction), tensors in local coordinate systems (
ei) have new names. The coordinates of the local system (for example
x3) are no longer used. Instead 1, 2, and 3 are used together with double indexing for all components. As an example,
elX2is replaced by
elx2x3is replaced by
el23. The tensors
eihave changed names to
- In the Darcy’s Law interface and Richards’ Equation interface in the Subsurface Flow Module, the compressibility of fluid is now a material parameter and they do no longer have a default value. If the default value was used you now have to set the value. The following example sets the permeability to the old default value:
- In the Poroelasticity interface in the Subsurface Flow Module, the compressibility of fluid and the Biot-Willis coefficient are now material parameter and they do no longer have a default value. If the default value was used you now have to set the value. The following example sets the permeability to the old default value:
- The Level Set and Phase Field interfaces now include the Initial Interface feature as default. If you have a model created in an earlier version of COMSOL, it will fail to create a feature with the same tag name.
COMSOL 4.1 Java API Changes
The following changes were made to the COMSOL Java API between version 4.0a and 4.1:
- In version 4.0a the property
nonlinin the stationary solver could have the values
linearized. The default was in most cases
auto, but in some cases, specifically in a frequency-domain study, the default was
linearized. In version 4.1 the possible values are
autoas default, except in the Frequency Domain, Linearized study step where the default is
linper. The value
linearizedcan still be set, but this is treated as
auto. If the problem is linear and the linearization point is zero,
autoshould give the same solution as
linearized. For nonlinear problems where the linearization point is zero, the solution given by
automight be slightly different, and probably more accurate, while changing to
offshould give exactly the same solution as
linearized. When there is a nonzero linearization point it is relevant to use option
linper. This option works like
linearizedexcept that source terms which are to contribute in the linearized problem must be enclosed by the
- In this CFD Module, Subsurface Flow mode, in the Darcy’s Law interface, Brinkman interface, Richards’ Equation interface, and the Poroelasticity interface, the permeability and porosity are now material parameters and they do no longer have a default value. If the default value was used in a Java-file you now have to set the value. The following example sets the permeability to the old default value:
- The pressure variable in solid mechanics, typically
solid.pw, now only gets allocated degrees of freedom for incompressible materials. If you have referred to it, for example, during segregation in the solver, the code will have to be changed to remove the field.
- The solution to eigenvalue and eigenfrequency problems may now appear in a different order.
- The Batteries & Fuel Cells Module’s boundary feature
BoundaryReactionCoefficient, is tagged by
brcby default. This means that files that explicitly refer to the old default tag name must be modified to refer to the new tag name.
COMSOL 4.0a Java API Changes
The following changes were made to the COMSOL API between version 4.0 and 4.0a:
- The load face parameter (
Fph) of the Phase feature in
FluidStructureInteractionhas changed interpretation from degrees to radians.
Trussare not backward compatible with 4.0. Scalar fields are now vector fields.
- The variables for strain and stress in the
Shellinterface have been renamed. Variable names that began with lowercase s now begin with uppercase S. For variables names that ended in lowercase l (
L), the letter was moved to the third position. For example,
- Force loads on solids and trusses have been moved from material to spatial frame. This implies that index notation of some variables have changed from uppercase
- The acoustics interfaces (
TransientAcousticStructure) have been moved from material to spatial frame. This implies that index notation of vector variables have change from uppercase