Macro API Changes 4.06
In Simcenter STAR-CCM+ 4.06, the macro API changed for passive scalar, thermal porosity, and cavitation.
Changes to various items within the macro API are detailed below. Macros created using previous releases of the software will not run in Simcenter STAR-CCM+ 4.06.011 if any of the items in the Previous Release column below have been accessed.
Previous Release | Simcenter STAR-CCM+ 4.06.011 | |
Passive Scalar |
physContinuum_0 .enable(PassiveScalarModel.class); |
physContinuum_0 .enable(PassiveScalarModel.class); PassiveScalarModel pScalMod_0 = physContinuum_0 .getModelManager() .getModel(PassiveScalarModel.class); PassiveScalarMaterial pScalMat_0 = pScalMod_0 .getPassiveScalarManager() .createPassiveScalarMaterial(PassiveScalarMaterial.class); |
Region Thermal Porosity
This class has been removed and replaced by tensor profiles PorousConductivityProfile and PorousSpecificHeatProfile |
RegionThermalPorosity rts = region .getValues() .get(RegionThermalPorosity.class); rts.setPorousConductivity(0.0260305); rts.setPorousSpecificHeat(1023.3); |
PorousConductivityProfile pCondProf = region .getValues() .get(PorousConductivityProfile.class); pCondProf .setMethod(IsotropicTensorProfileMethod.class); ScalarProfile scalProf = ((IsotropicTensorProfileMethod) pCondProf .getMethod()) .getIsotropicProfile(); ((ConstantScalarProfileMethod) scalProf .getMethod()) .getQuantity() .setValue(0.0260305); PorousSpecificHeatProfile porousSpecHeatProf = region .getValues() .get(PorousSpecificHeatProfile.class); porousSpecHeatProf .setMethod(IsotropicTensorProfileMethod.class); ScalarProfile scalProf = ((IsotropicTensorProfileMethod) porousSpecificHeatProfile.getMethod()) .getIsotropicProfile(); ((ConstantScalarProfileMethod) scalProf .getMethod()) .getQuantity() .setValue(1023.3); |
Saturation Pressure for Cavitation Model |
cavitationModel_0 .getSaturationPressure() .setValue(-97000.0); |
ConstantMaterialPropertyMethod conMatPropMethod_0 = ((ConstantMaterialPropertyMethod) singlePhaseLiquid_0 .getMaterialProperties() .getMaterialProperty(SaturationPressureProperty.class) .getMethod()); conMatPropMethod_0 .getQuantity() .setValue(2338.0); |