Macro API Changes 8.02
In Simcenter STAR-CCM+ 8.02, the macro API changed for VOF, directed meshing, battery modeling, melting, plots, and vaporization.
VOF Cavitation Model
The model is now called VofCavitationSingleComponentModel (previously CavitationModel).
The method for setting seed diameter and density has changed for consistency with other models that also use seeds.
Previous Release | Simcenter STAR-CCM+ 8.02 |
---|---|
|
|
|
|
|
|
Directed Meshing
Due to multiple changes in the API for Directed meshing, you are recommended to re-record the macros. The Patch mesh code has been refactored and macro definitions have been improved.
In the previous version of directed meshing, you were required to enter an array of points that intersects the triangle mesh on which the patch curve lies. In the current version, you just enter the starting and ending point of the patch curve, not all the intermediate intersection points.
Replace the following items in your macros:
Previous Release | Simcenter STAR-CCM+ 8.02 |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Battery Modeling
Macros that use the multi-module model in the batteries simulation module require updating.
Previous Release | Simcenter STAR-CCM+ 8.02 |
---|---|
|
|
Melting
Macros that use the melting models require updating. Add import star.multiphase to the import section of your macros, as shown below.
Previous Release | Simcenter STAR-CCM+ 8.02 |
---|---|
|
|
Getting Plot Samples
The methods, getPlotSamples and getAllSamples, return the samples that are stored by a monitor. Changes to the code have decoupled the monitor trigger type from the data series. In previous releases, the x-values were defined by the monitor trigger. In the current release, the x-values are specified by the monitor. The caller now has to specify the monitor used to convert the returned x-values.
Previous Release | Simcenter STAR-CCM+ 8.02 |
---|---|
|
|
Vaporization Latent Heat
Since Simcenter STAR-CCM+ 7.06, VaporizationLatentHeat (and classes that are related to it) have moved from star.lagrangian to star.energy. Macros that refer to a particular class might fail to compile. Macros that already have both star.lagrangian.* and star.energy.* are unaffected.
Previous Release | Simcenter STAR-CCM+ 8.02 |
---|---|
|
|
|
|