Macro API Changes 2020.1
In Simcenter STAR-CCM+ 2020.1, the macro API changed for finite element models, motion, coupled flow, adjoint, reacting flows, DFBI, electromagnetics, multiphase, and co-simulation.
Finite Element Models: End of PARDISO Solver Method
For the PARDISO option of the Method property has been removed. You now have a choice between the MUMPS and HYBRID MUMPS options.
, theAny simulation file saved in a previous version of Simcenter STAR-CCM+ with the PARDISO option automatically switches to the MUMPS option when opened in the current version.
This change has resulted in changes to
the macro code. To update your macros, replace instances of
DirectSolverOption.Type.PARDISO
with either
DirectSolverOption.Type.MUMPS
or
DirectSolverOption.Type.HYBRID_MUMPS
. The following example
shows replacement with DirectSolverOption.Type.MUMPS
:
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Motion: Change to Point Sets for Morphing
The Control Point List (among region Physics Values) has been removed. Use Point Sets in the simulation tree from now on. This modification has resulted in changes to the macro code.
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Coupled Flow: Changes to Solver and Model
The Coupled Implicit Solver now has a new, consolidated method for controlling CFL. The CFL Control Method property of this solver node activates a corresponding sub-node with the same name as your choice. In conjunction with adding the new method for controlling CFL, some of the former user interface elements have been removed. These changes have resulted in changes to the macro code. These changes are extensive, so be sure to check your setup when restoring old simulation files in the current version. You are advised to exercise caution when using old macros for the Coupled Implicit Solver. While examples of some code changes are provided below, consider recording entirely new macros for the setup of this solver.
Code that should be replaced
The following classes and all their functions have been removed:
star.common.ExpertDriver
star.common.ExpertDriverOption
star.common.NoExpertDriver
star.common.SolutionDriverManager
star.common.ExpertDriverCoupledSolver
The field functions
CFL
, NoAMGCyclesED
, and UrfED
are deprecated. Use the Reports
functionality instead of field
functions.
The RampCalculator
functionality for the Coupled Implicit Solver is now inoperative. Use the Linear
Ramp CFL macros as shown in the following examples:
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
|
|
|
|
|
The new solver property Velocity Corrections Limiting is on by default, making available functionality that, in previous releases, required activation of the Expert Driver.
Examples of new CFL settings for the Coupled Implicit Solver
Set a constant CFL value of 25:
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Set a Linear Ramp CFL with initial value 1.0, starting from iteration 10 to 100, with a final CFL of 500:
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Activate the Expert Driver, and set a Linear Ramp CFL with initial value 1.0, starting from iteration 10 to 100, with a final CFL of 75, Target AMG Cycles at 8, and CFL Recovery Rate at 1.5:
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Transfer of explicit relaxation from the Coupled Flow model to the Coupled Implicit Solver
Explicit relaxation has been transferred from the Coupled Flow continuum model node to the Coupled Implicit Solver node. The solver's new Explicit Relaxation Method property gives you a choice of methods which activates a corresponding sub-node.
CoupledFlowModel::getExplicitRelaxation()
has been deprecated (scheduled for removal in a future release).CoupledFlowModel::getActiveExplicitRelaxation()
has been deprecated.CoupledFlowModel::setExplicitRelaxation()
has been deprecated, except that it sets the explicit relaxation only ifCoupledImplicitSolver
is using the Constant explicit relaxation option.CoupledImplicitSolver::getExpertDriverManager()
has been removed.
The following is an example of explicit relaxation settings for the Coupled Implicit Solver, setting constant explicit relaxation to 0.5:
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Adjoint: Changes to Surface Sensitivity
To improve the smoothing of surface sensitivity, the option that activates smoothing has moved from the Surface Sensitivity solver to the Surface Sensitivity continuum model, and is available as the Surface Sensitivity Filtering option. This change has resulted in changes to the macro code.
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Reacting Flows: Change to Removal of Reaction Components
Removal of a reaction component must
now specify the host continuum of the component that is being removed. In the
example below, ("O-- (Electrochemical Species Mixture)")
becomes
("O-- (elyte: Electrochemical Species Mixture)")
.
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
DFBI: Changes to Six DOF Morpher Specification
For cases with the 6-DOF Mesh Morpher and displacements added on top of the DFBI body motion, the method Six DOF Body plus Displacement within the Six DOF Morpher Specification boundary physics condition node has been discontinued. It has been replaced by the Six DOF Body method.
Previous versions of Simcenter STAR-CCM+ allowed for the specification of incremental displacements on top of the DFBI body motion. In Simcenter STAR-CCM+ 2020.1, this is extended to total displacements as well. Since most structural solvers typically provide total displacements, the ability to specify total displacements on the DFBI body surface is a significant improvement for these types of simulation.
As part of this modification, the meaning of the coordinate system within the Morpher Incremental Linear Displacement boundary physics value node has changed. If the displacement is defined in the body coordinate system, that coordinate system needs to be selected here. In previous versions, the laboratory coordinate system had to be selected.
These changes have resulted in changes to the macro code.
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Electromagnetics
Changes to Material Property Tensors
For specifying Permittivity of the material, the available tensors have been improved to simplify the workflow, and renamed to be consistent with other models.
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
|
|
|
|
To use legacy methods, update your
macros as shown in the following example for the
AnisotropicElectricalConductivityProperty
. The essential line
in the code for Simcenter STAR-CCM+ 2020.1 is
anisotropicElectricalConductivityMethodWithValues_0.setLegacyMethodAvailability(true);
.
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Use equivalent code for the
AnisotropicPermeabilityProperty
and
AnisotropicPermittivityProperty
.
Changes to Specified Temperature Model
To extend compatibility of the Specified Temperature model with other models, the Finite Element and Finite Volume variants of the model have been combined, resulting in changes to the macro code.
In previous releases of Simcenter STAR-CCM+, when using the Finite Element Specified Temperature model it was possible to initialize a simulation without fully specifying the initial conditions. In Simcenter STAR-CCM+ 2020.1 this action is no longer allowed. Before initializing, make selections for all properties of the Specified Temperature initial conditions, otherwise an error message appears.
Imports
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
|
Class names
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
|
Multiphase
Changes to Film Stripping
Due to restructuring, the phase interaction parameters Stripped Liquid Volume Fraction Limit and Friction Velocity Scaling Factor have been moved from the Reference Values of a phase interaction to the properties of the Stripping phase model node.
Update your macro codes for these parameters as follows:
FrictionVelocityScalingFactor
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
StrippingVolumeFractionLimit
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|
Change to Contact Angle in VOF and Fluid Film
The default setting for the Contact Angle physics value node, which becomes available when the Surface Tension phase interaction model is activated for a Fluid Film or VOF phase interaction, has been changed from 0 to 90 degrees.
If your simulation from a previous version of Simcenter STAR-CCM+ uses the former default setting of zero, then modify your macro code as shown in the following example to restore that value. Macros that specify a non-default contact angle do not require an update.
Simulation simulation_0 = getActiveSimulation();
Region region_0 = simulation_0.getRegionManager().getRegion("Region 1");
Boundary boundary_0 = region_0.getBoundaryManager().getBoundary("Boundary 1");
PhaseConditions phaseConditions_0 = ((PhaseConditions) boundary_0.get(PhaseConditionsManager.class).getPhaseConditions("Phase Interaction 1"));
ContactAngleProfile contactAngleProfile_0 = phaseConditions_0.getPhaseValueManager().get(ContactAngleProfile.class);
contactAngleProfile_0.getMethod(ConstantScalarProfileMethod.class).getQuantity().setValue(0.0); // recover the old default value of 0
Co-Simulation: Changes to External Continuum Links
To simplify user interaction with external continua in co-simulation, the feature has been refactored, resulting in changes to the macro code for the import action.
Previous Release | Simcenter STAR-CCM+ 2020.1 |
---|---|
|
|