Macro API Changes 5.06

In Simcenter STAR-CCM+ 5.06, the macro API changed for scene and plot updates, and emissions modeling.

Changes to various items within the macro API are detailed below. Macros created using previous releases of the software will not necessarily run in Simcenter STAR-CCM+ 5.06.010 if any of the items in the Previous Release columns below have been accessed.

Update Frequency for Scenes and Plots

The method for specifying update frequency has changed, in order to accommodate the delta time method. Previously, Update Frequency, which is only meaningful for number of iterations or number of time steps, was just a property of the SceneUpdate and PlotUpdate objects. Now, the specific object related to each type of update should be obtained from the PlotUpdate object.

Previous Release Simcenter STAR-CCM+ 5.06.010

PlotUpdate plotUpdate_0 =

xYPlot_0.getPlotUpdate(); plotUpdate_0.setUpdateMode(1);

// Iterations Update Policy

plotUpdate_0.setUpdateFrequency(10);

PlotUpdate plotUpdate_0 = xYPlot_0.getPlotUpdate();

plotUpdate_0.setUpdateMode(1);

// Iterations Update Policy IterationUpdateFrequency iterationUpdateFrequency_0 = plotUpdate_0 .getIterationUpdateFrequency(); iterationUpdateFrequency_0 .setIterations(10);

plotUpdate_0.setUpdateMode(2);

// Time Step Update Policy TimeStepUpdateFrequency timeStepUpdateFrequency_0 =

plotUpdate_0

.getTimeStepUpdateFrequency();

timeStepUpdateFrequency_0 .setTimeSteps(5);

plotUpdate_0.setUpdateMode(3);

// Delta Time Update Policy

DeltaTimeUpdateFrequency deltaTimeUpdateFrequency_0 =

plotUpdate_0

.getDeltaTimeUpdateFrequency(); deltaTimeUpdateFrequency_0 .

getDeltaTime() .setValue(1.1);

Activating PCFM and NOx Emissions

In previous releases, activating PCFM and NOx Emissions had the effect of turning on NOx PPDF automatically. However, this is not required in the case of PCFM Emissions as PCFM already has a PPDF solver. Previous macros would have had the line:

physicsContinuum_0.enable(NoxPpdfCombustionModel.class);

This line is no longer required for PCFM Emissions.