Macro API Changes 8.04

In Simcenter STAR-CCM+ 8.04, the macro API changed for VOF, the Ffowcs Williams-Hawkings models, multi-component fluids, battery meshing, and fluid film.

VOF Wall Porosity

Before setting the alpha and beta profiles for a phase, the Wall Porosity Specification option needs to be set to Specified. In the macro API, this option is represented by the USER_DEFINED option for VofWallPorosityOption.

Previous Release Simcenter STAR-CCM+ v8.04

PhaseConditions phaseConditions_0 = 

      ((PhaseConditions) boundary_0.get(PhaseConditionsManager.class).getPhaseConditions("Gas"));

VofWallPorosityAlphaProfile vofWallPorosityAlphaProfile_0 = phaseConditions_0.getPhaseValueManager().get(VofWallPorosityAlphaProfile.class);

    vofWallPorosityAlphaProfile_0.getMethod(ConstantScalarProfileMethod.class).getQuantity().setValue(100000.0);

    VofWallPorosityBetaProfile vofWallPorosityBetaProfile_0 = 

      phaseConditions_0.getPhaseValueManager().get(VofWallPorosityBetaProfile.class);

    vofWallPorosityBetaProfile_0.getMethod(ConstantScalarProfileMethod.class).getQuantity().setValue(100000.0);

PhaseConditions phaseConditions_0 = 

      ((PhaseConditions) boundary_0.get(PhaseConditionsManager.class).getPhaseConditions("Gas"));

    phaseConditions_0.getPhaseConditionManager().get(VofWallPorosityOption.class).setSelected(VofWallPorosityOption.USER_DEFINED);

    VofWallPorosityAlphaProfile vofWallPorosityAlphaProfile_0 = 

      phaseConditions_0.getPhaseValueManager().get(VofWallPorosityAlphaProfile.class);

    vofWallPorosityAlphaProfile_0.getMethod(ConstantScalarProfileMethod.class).getQuantity().setValue(100000.0);

    VofWallPorosityBetaProfile vofWallPorosityBetaProfile_0 = 

      phaseConditions_0.getPhaseValueManager().get(VofWallPorosityBetaProfile.class);

    vofWallPorosityBetaProfile_0.getMethod(ConstantScalarProfileMethod.class).getQuantity().setValue(100000.0);

Ffowcs Williams-Hawkings Aeroacoustics

An additional model is required when selecting this method in the physics continuum.

Previous Release Simcenter STAR-CCM+ v8.04

PhysicsContinuum physicsContinuum_0 = ((PhysicsContinuum) simulation_0 .getContinuumManager() .getContinuum("Fluid"));

physicsContinuum_0 .enable(AcousticsTopModel.class);

physicsContinuum_0 .enable(FwhModel.class);

PhysicsContinuum physicsContinuum_0 = ((PhysicsContinuum) simulation_0 .getContinuumManager() .getContinuum("Fluid"));

physicsContinuum_0 .enable(AcousticsTopModel.class);

physicsContinuum_0 .enable(FwhUnsteadyBaseModel.class);

physicsContinuum_0 .enable(FwhModel.class);

Volume Weighted Mixture Methods for Multi-Component Fluids

From Simcenter STAR-CCM+ v8.04 onwards, there are no volume weighted mixture methods for conductivity and dynamic viscosity for multi-component gases and liquids.

For simulation files created in previous releases and restored in Simcenter STAR-CCM+ v8.04, these methods are still provided for multi-component gases and liquids that used them. This provision does not apply to Lagrangian multi-component droplets, where the methods are removed entirely and are not restored.

Macros containing these methods should be re-recorded with appropriate alternatives.

Meshing in Simcenter STAR-CCM+ Batteries

From Simcenter STAR-CCM+ v8.04 onwards, the Battery Mesher model has been removed and replaced with a new Battery Mesh continuum with the Surface Remesher and Thin Mesher models.

Previous Release Simcenter STAR-CCM+ v8.04

batteryModule_0.generateRegions(new NeoObjectVector(new Object[] {}));

MeshContinuum meshContinuum_0 = 

      simulation_0.getContinuumManager().createContinuum(MeshContinuum.class);

    meshContinuum_0.enable(BatteryMesherModel.class);

BatteryMesherModel batteryMesherModel_0 = 

      meshContinuum_0.getModelManager().getModel(BatteryMesherModel.class);

BatteryMeshContinuum batteryMeshContinuum_0 = 

      batteryMesherModel_0.getBatteryMeshContinuum();

    batteryMeshContinuum_0.add(batteryModule_0);

MeshPipelineController meshPipelineController_0 = 

      simulation_0.get(MeshPipelineController.class);

    meshPipelineController_0.generateVolumeMesh();

batteryModule_0.generateRegions(new NeoObjectVector(new Object[] {}));

batteryModule_0.setupMeshing();

MeshPipelineController meshPipelineController_0 = 

      simulation_0.get(MeshPipelineController.class);

    meshPipelineController_0.generateVolumeMesh();

Changes to the Fluid Film Thickness Field Function

In Simcenter STAR-CCM+ v8.04, the property for the Fluid Film Thickness field function has changed.

Previous Release Simcenter STAR-CCM+ v8.04

PrimitiveFieldFunction primitiveFieldFunction_0 =

((PrimitiveFieldFunction) simulation_0.getFieldFunctionManager().getFunction("ShellThickness"));

PrimitiveFieldFunction primitiveFieldFunction_0 =

((PrimitiveFieldFunction) simulation_0.getFieldFunctionManager().getFunction("FluidFilmThickness"));