在 Simcenter STAR-CCM+ 2020.1 中,用于有限元模型、运动、耦合流体、伴随、反应流体、DFBI、电磁、多相和协同仿真的宏 API 已更改。
有限元模型:终止 PARDISO 求解器方法
对于,方法属性的 PARDISO 选项已移除。现在可以选择 MUMPS 和 混合 MUMPS 选项。
对于在具有 PARDISO 选项的 Simcenter STAR-CCM+ 以前版本中保存的任何模拟文件,在当前版本中打开时将自动切换到 MUMPS 选项。
此项更改已导致宏代码发生更改。要更新宏,将 DirectSolverOption.Type.PARDISO
的实例替换为 DirectSolverOption.Type.MUMPS
或 DirectSolverOption.Type.HYBRID_MUMPS
。以下示例显示替换为 DirectSolverOption.Type.MUMPS
:
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
Simulation simulation_0 =
getActiveSimulation();
FiniteElementStressSolver finiteElementStressSolver_0 =
((FiniteElementStressSolver) simulation_0.getSolverManager().getSolver(FiniteElementStressSolver.class));
FeSolidStressSolverMethods feSolidStressSolverMethods_0 =
finiteElementStressSolver_0.getSolverMethods();
MumpsPardisoDirectSolver mumpsPardisoDirectSolver_0 =
feSolidStressSolverMethods_0.getMethod(MumpsPardisoDirectSolver.class);
SparseSolverProperties sparseSolverProperties_0 =
mumpsPardisoDirectSolver_0.getSparseSolverProperties();
sparseSolverProperties_0.getDirectSolverOption().setSelected(DirectSolverOption.Type.PARDISO);
|
Simulation simulation_0 =
getActiveSimulation();
FiniteElementStressSolver finiteElementStressSolver_0 =
((FiniteElementStressSolver) simulation_0.getSolverManager().getSolver(FiniteElementStressSolver.class));
FeSolidStressSolverMethods feSolidStressSolverMethods_0 =
finiteElementStressSolver_0.getSolverMethods();
MumpsPardisoDirectSolver mumpsPardisoDirectSolver_0 =
feSolidStressSolverMethods_0.getMethod(MumpsPardisoDirectSolver.class);
SparseSolverProperties sparseSolverProperties_0 =
mumpsPardisoDirectSolver_0.getSparseSolverProperties();
sparseSolverProperties_0.getDirectSolverOption().setSelected(DirectSolverOption.Type.MUMPS);
|
运动:对变形的点集合的更改
控制点列表(在区域物理值中)已移除。从现在起在模拟树中使用点集合。此项修改已导致宏代码发生更改。
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
Simulation sim = getActiveSimulation();
Region region_0 =
sim.getRegionManager().getRegion("Block");
FileTable fileTable_0 =
((FileTable) sim.getTableManager().getTable("control_points"));
ControlPointList controlPointList_0 =
region_0.getValues().get(ControlPointList.class);
controlPointList_0.setTable(fileTable_0);
controlPointList_0.setX0Data("column0");
controlPointList_0.setY0Data("column1");
controlPointList_0.setZ0Data("column2");
controlPointList_0.setX1Data("column3");
controlPointList_0.setY1Data("column4");
controlPointList_0.setZ1Data("column5");
|
Simulation sim = getActiveSimulation();
FileTable fileTable_0 =
((FileTable) sim.getTableManager().getTable("control_points"));
PointSet pointSet_0 =
sim.get(PointSetManager.class).createTablePointSet("Table Point Set", fileTable_0, "X", "Y", "Z");
PointSetMotionSpecification pointSetMotionSpecification_0 =
pointSet_0.getValues().get(PointSetMotionSpecification.class);
MorphingMotion morphingMotion_0 =
((MorphingMotion) simulation_0.get(MotionManager.class).getObject("Morphing"));
pointSetMotionSpecification_0.setMotion(morphingMotion_0);
pointSet_0.getConditions().get(DisplacementSpecification.class).setSelected(DisplacementSpecification.Type.TARGET_POSITION);
TargetPositionProfile targetPositionProfile_0 =
pointSet_0.getValues().get(TargetPositionProfile.class);
targetPositionProfile_0.setMethod(XyzTabularVectorProfileMethod.class);
targetPositionProfile_0.getMethod(XyzTabularVectorProfileMethod.class).setTable(fileTable_0);
targetPositionProfile_0.getMethod(XyzTabularVectorProfileMethod.class).setXData("X");
targetPositionProfile_0.getMethod(XyzTabularVectorProfileMethod.class).setYData("Y");
targetPositionProfile_0.getMethod(XyzTabularVectorProfileMethod.class).setZData("Z");
targetPositionProfile_0.getMethod(XyzTabularVectorProfileMethod.class).setXData("XT");
targetPositionProfile_0.getMethod(XyzTabularVectorProfileMethod.class).setYData("YT");
targetPositionProfile_0.getMethod(XyzTabularVectorProfileMethod.class).setZData("ZT");
|
耦合流体:对求解器和模型的更改
耦合隐式求解器现在有一个新的用于控制 CFL 的综合方法。此求解器节点的 CFL 控制方法属性将激活与所选对象同名的相应子节点。结合添加用于控制 CFL 的新方法,某些以前的用户界面元素已移除。这些更改导致宏代码发生更改。但这些更改非常广泛,因此要确保在当前版本中恢复旧模拟文件时检查您的设置。建议在将旧宏用于耦合隐式求解器时应格外小心。下面提供了一些代码更改的示例,考虑为此求解器的设置记录全新的宏。
应替换的代码
以下类及其所有函数已移除:
star.common.ExpertDriver
star.common.ExpertDriverOption
star.common.NoExpertDriver
star.common.SolutionDriverManager
star.common.ExpertDriverCoupledSolver
场函数 CFL
、NoAMGCyclesED
和 UrfED
已弃用。使用报告
功能,而不是场函数。
耦合隐式求解器的 RampCalculator
功能现在不起作用。如以下示例所示,使用线性跃升 CFL 宏:
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
coupledImplicitSolver_0.getRampCalculatorManager().getRampCalculatorOption().setSelected(RampCalculatorOption.Type.LINEAR_RAMP);
|
courantNumberController_0.getCourantNumberControlOption().setSelected(CourantNumberControlOption.Type.LINEAR_RAMP_CFL);
|
LinearRampCalculator linearRampCalculator_0 =
((LinearRampCalculator) coupledImplicitSolver_0.getRampCalculatorManager().getCalculator());
linearRampCalculator_0.setEndIteration(15);
|
LinearRampCourantNumberControl linearRampCourantNumberControl_0 =
((LinearRampCourantNumberControl) courantNumberController_0.getCourantNumberControl());
linearRampCourantNumberControl_0.setEndIteration(15);
|
CoupledImplicitSolver::setCFL(double newValue)
// If the new default Automatic CFL setting is enabled, this function does nothing. Otherwise it retains its old behavior and sets the Target CFL for the Linear Ramp, the Expert Driver CFL, or the actual value for the Constant CFL.
|
// Constant CFL:
courantNumberController_0.getCourantNumberControlOption().setSelected(CourantNumberControlOption.Type.CONSTANT_CFL);
ConstantCourantNumberControl constantCourantNumberControl_0 =
((ConstantCourantNumberControl) courantNumberController_0.getCourantNumberControl());
constantCourantNumberControl_0.getCFLQuantity().setValue(100.0);
|
// Linear Ramp CFL:
courantNumberController_0.getCourantNumberControlOption().setSelected(CourantNumberControlOption.Type.LINEAR_RAMP_CFL);
linearRampCourantNumberControl_0.getCFLQuantity().setValue(100.0);
|
默认情况下,新的求解器属性速度校正限制处于打开状态,因此可提供在以前版本中需要激活专家驱动程序才可用的功能。
耦合隐式求解器的新 CFL 设置的示例
设置恒定 CFL 值 25:
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
Simulation simulation_0 =
getActiveSimulation();
CoupledImplicitSolver coupledImplicitSolver_0 =
((CoupledImplicitSolver) simulation_0.getSolverManager().getSolver(CoupledImplicitSolver.class));
coupledImplicitSolver_0.setCFL(25.0);
|
Simulation simulation_0 =
getActiveSimulation();
CoupledImplicitSolver coupledImplicitSolver_0 =
((CoupledImplicitSolver) simulation_0.getSolverManager().getSolver(CoupledImplicitSolver.class));
CourantNumberController courantNumberController_0 =
coupledImplicitSolver_0.getCourantNumberController();
courantNumberController_0.getCourantNumberControlOption().setSelected(CourantNumberControlOption.Type.CONSTANT_CFL);
ConstantCourantNumberControl constantCourantNumberControl_0 =
((ConstantCourantNumberControl) courantNumberController_0.getCourantNumberControl());
constantCourantNumberControl_0.getCFLQuantity().setValue(25.0);
|
设置线性跃升 CFL,初始值为 1.0,从迭代 10 到 100 开始,最终 CFL 为 500:
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
coupledImplicitSolver_0.getRampCalculatorManager().getRampCalculatorOption().setSelected(RampCalculatorOption.Type.LINEAR_RAMP);
LinearRampCalculator linearRampCalculator_0 =
((LinearRampCalculator) coupledImplicitSolver_0.getRampCalculatorManager().getCalculator());
linearRampCalculator_0.setInitialRampValue(1.0);
linearRampCalculator_0.setStartIteration(10);
linearRampCalculator_0.setEndIteration(100);
coupledImplicitSolver_0.setCFL(500.0);
|
courantNumberController_0.getCourantNumberControlOption().setSelected(CourantNumberControlOption.Type.LINEAR_RAMP_CFL);
LinearRampCourantNumberControl linearRampCourantNumberControl_0 =
((LinearRampCourantNumberControl) courantNumberController_0.getCourantNumberControl());
linearRampCourantNumberControl_0.setInitialRampValue(1.0);
linearRampCourantNumberControl_0.setStartIteration(10);
linearRampCourantNumberControl_0.setEndIteration(100);
linearRampCourantNumberControl_0.getCFLQuantity().setValue(500.0);
|
激活专家驱动程序并设置线性跃升 CFL,初始值为 1.0,从迭代 10 到 100 开始,最终 CFL 为 75,目标 AMG 循环为 8,CFL 恢复率为 1.5:
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
coupledImplicitSolver_0.getSolutionDriverManager().getExpertDriverOption().setSelected(ExpertDriverOption.Type.EXPERT_DRIVER);
ExpertDriverCoupledSolver expertDriverCoupledSolver_0 =
((ExpertDriverCoupledSolver) coupledImplicitSolver_0.getSolutionDriverManager().getDriver());
expertDriverCoupledSolver_0.setInitialRampValue(1.0);
expertDriverCoupledSolver_0.setStartIteration(10);
expertDriverCoupledSolver_0.setEndIteration(100);
coupledImplicitSolver_0.setCFL(75.0);
expertDriverCoupledSolver_0.setAmgNrCyclesForCflLimiting(8);
expertDriverCoupledSolver_0.setCflRecoveryRate(1.5);
|
courantNumberController_0.getCourantNumberControlOption().setSelected(CourantNumberControlOption.Type.EXPERT_DRIVER);
ExpertDriverCourantNumberControl expertDriverCourantNumberControl_0 =
((ExpertDriverCourantNumberControl) courantNumberController_0.getCourantNumberControl());
expertDriverCourantNumberControl_0.setInitialRampValue(1.0);
expertDriverCourantNumberControl_0.setStartIteration(10);
expertDriverCourantNumberControl_0.setEndIteration(100);
expertDriverCourantNumberControl_0.getCFLQuantity().setValue(75.0);
expertDriverCourantNumberControl_0.setAmgNrCyclesForCflLimiting(8);
expertDriverCourantNumberControl_0.setCflRecoveryRate(1.5);
|
将显式松弛从耦合流体模型传递到耦合隐式求解器
显式松弛已从耦合流体连续体模型节点传递到耦合隐式求解器节点。求解器新的显式松弛方法属性可用于选择激活相应子节点的方法。
CoupledFlowModel::getExplicitRelaxation()
已弃用(计划在未来版本中移除)。
CoupledFlowModel::getActiveExplicitRelaxation()
已弃用。
CoupledFlowModel::setExplicitRelaxation()
已弃用,例外情况:仅当 CoupledImplicitSolver
使用常数显式松弛选项时它将设置显式松弛。
CoupledImplicitSolver::getExpertDriverManager()
已移除。
以下是耦合隐式求解器的显式松弛设置的示例,将常数显式松弛设为 0.5:
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
PhysicsContinuum physicsContinuum_0 =
((PhysicsContinuum) simulation_0.getContinuumManager().getContinuum("Physics 1"));
CoupledFlowModel coupledFlowModel_0 =
physicsContinuum_0.getModelManager().getModel(CoupledFlowModel.class);
coupledFlowModel_0.setExplicitRelaxation(0.5);
|
ExplicitRelaxationController explicitRelaxationController_0 =
coupledImplicitSolver_0.getExplicitRelaxationController();
explicitRelaxationController_0.getExplicitRelaxationControlOption().setSelected(ExplicitRelaxationControlOption.Type.NONE);
explicitRelaxationController_0.getExplicitRelaxationControlOption().setSelected(ExplicitRelaxationControlOption.Type.CONSTANT_URF);
ConstantExplicitRelaxationControl constantExplicitRelaxationControl_0 =
((ConstantExplicitRelaxationControl) explicitRelaxationController_0.getExplicitRelaxationControl());
constantExplicitRelaxationControl_0.getUrfQuantity().setValue(0.5);
|
伴随:对表面灵敏度的更改
为了提高表面灵敏度的平滑度,激活平滑度的选项已从表面灵敏度求解器移至表面灵敏度连续体模型,并可用作表面灵敏度过滤选项。此项更改已导致宏代码发生更改。
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
AdjointSolver adjointSolver_0 =
((AdjointSolver) simulation_0.getSolverManager().getSolver(AdjointSolver.class));
SurfaceSensitivitySolver surfaceSensitivitySolver_0 =
((SurfaceSensitivitySolver) adjointSolver_0.getAdjointSolverManager().getSolver(SurfaceSensitivitySolver.class));
surfaceSensitivitySolver_0.setEpsilon(1.0);
|
SurfaceSensitivityModel surfaceSensitivityModel_0 =
physicsContinuum_0.getModelManager().getModel(SurfaceSensitivityModel.class);
surfaceSensitivityModel_0.setSurfaceSensitivityFilteringEnabled(true);
surfaceSensitivityModel_0.getSurfaceSensitivityGlobalFilterRadius().setValue(0.01);
|
反应流体:对移除反应组分的更改
要移除反应组分现在必须指定要移除的组分的主机连续体。在下面的示例中,("O-- (Electrochemical Species Mixture)")
变为 ("O-- (elyte: Electrochemical Species Mixture)")
。
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
ReactionComponentMixture component =
((ReactionComponentMixture) reaction.getProducts().getProduct("O-- (Electrochemical Species Mixture)"));
reaction.getProducts().removeReactionComponent(component);
|
ReactionComponentMixture component =
((ReactionComponentMixture) reaction.getProducts().getProduct("O-- (elyte: Electrochemical Species Mixture)"));
reaction.getProducts().removeReactionComponent(component);
|
DFBI:对六自由度变形指定的更改
对于具有 6 自由度网格变形的情况和在 DFBI 体运动顶部添加的位移,六自由度变形指定边界物理条件节点内的六自由度体正位移方法已停用。它已被替换为六自由度体方法。
Simcenter STAR-CCM+ 以前版本可以在 DFBI 体运动的顶部指定增量位移。在 Simcenter STAR-CCM+ 2020.1 中,还可以指定总位移。由于大多数结构求解器通常提供总位移,因此可以在 DFBI 体表面上指定总位移,这对于这些类型的模拟而言是一项显著的改进。
作为此修改的一部分,变形增量线性位移边界物理值节点内坐标系的意义已更改。如果在体坐标系中定义了位移,则需要在此处选择该坐标系。在以前版本中,必须选择基准坐标系。
这些更改导致宏代码发生更改。
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
boundary_0.getConditions().get(DofMorpherSpecification.class).setSelected(DofMorpherSpecification.Type.SIXDOFBODYPLUSDISPL);
IncrementalDisplacementProfile incrementalDisplacementProfile_0 =
boundary_0.getValues().get(IncrementalDisplacementProfile.class);
incrementalDisplacementProfile_0.setMethod(FunctionVectorProfileMethod.class);
UserFieldFunction userFieldFunction_0 =
((UserFieldFunction) simulation_0.getFieldFunctionManager().getFunction("Displacement_0"));
incrementalDisplacementProfile_0.getMethod(FunctionVectorProfileMethod.class).setFieldFunction(userFieldFunction_0);
|
boundary_0.getConditions().get(DofMorpherSpecification.class).setSelected(DofMorpherSpecification.Type.SIXDOFBODY);
boundary_0.getConditions().get(DeformationSpecification.class).setSelected(DeformationSpecification.Type.USERDEFINED);
boundary_0.getConditions().get(DisplacementSpecification.class).setSelected(DisplacementSpecification.Type.INCREMENTAL);
IncrementalDisplacementProfile incrementalDisplacementProfile_0 =
boundary_0.getValues().get(IncrementalDisplacementProfile.class);
incrementalDisplacementProfile_0.setMethod(FunctionVectorProfileMethod.class);
UserFieldFunction userFieldFunction_0 =
((UserFieldFunction) simulation_0.getFieldFunctionManager().getFunction("Displacement_0"));
incrementalDisplacementProfile_0.getMethod(FunctionVectorProfileMethod.class).setFieldFunction(userFieldFunction_0);
LabCoordinateSystem labCoordinateSystem_0 =
simulation_0.getCoordinateSystemManager().getLabCoordinateSystem();
CartesianCoordinateSystem cartesianCoordinateSystem_0 =
((CartesianCoordinateSystem) labCoordinateSystem_0.getLocalCoordinateSystemManager().getObject("Body-CSys"));
incrementalDisplacementProfile_0.setCoordinateSystem(cartesianCoordinateSystem_0);
|
电磁
对材料属性张量的更改
为指定材料的介电常数,可用的张量已得到改进,简化了工作流程,并重命名以与其他模型一致。
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
CompositeSymmetricTensorProfileMethod
|
AnisotropicTensorProfileMethod
|
PrincipalTensorProfileMethod
|
OrthotropicTensorProfileMethod
|
AxisymmetricTensorProfileMethod
|
TransverseIsotropicTensorProfileMethod
|
要使用原有方法,如 AnisotropicElectricalConductivityProperty
的以下示例所示,更新宏。Simcenter STAR-CCM+ 2020.1 的代码中的基本行是 anisotropicElectricalConductivityMethodWithValues_0.setLegacyMethodAvailability(true);
。
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
physicsContinuum_0.enable(SolidModel.class);
physicsContinuum_0.enable(ElectromagnetismModel.class);
physicsContinuum_0.enable(ElectrodynamicsPotentialModel.class);
Region region_0 =
simulation_0.getRegionManager().createEmptyRegion();
solid_0.getMaterialProperties().getMaterialProperty(ElectricalConductivityProperty.class).setMethod(AnisotropicElectricalConductivityMethod.class);
AnisotropicElectricalConductivity anisotropicElectricalConductivity_0 =
region_0.getValues().get(AnisotropicElectricalConductivity.class);
ScalarProfile scalarProfile_0 =
anisotropicElectricalConductivity_0.getMethod(PrincipalTensorProfileMethodWithAxes.class).getProfile(0);
scalarProfile_0.getMethod(ConstantScalarProfileMethod.class).getQuantity().setValue(1.0);
|
physicsContinuum_0.enable(SolidModel.class);
physicsContinuum_0.enable(ElectromagnetismModel.class);
physicsContinuum_0.enable(ElectrodynamicsPotentialModel.class);
Region region_0 =
simulation_0.getRegionManager().createEmptyRegion();
SolidModel solidModel_0 =
physicsContinuum_0.getModelManager().getModel(SolidModel.class);
Solid solid_0 =
((Solid) solidModel_0.getMaterial());
solid_0.getMaterialProperties().getMaterialProperty(ElectricalConductivityProperty.class).setMethod(AnisotropicElectricalConductivityMethodWithValues.class);
AnisotropicElectricalConductivityMethodWithValues anisotropicElectricalConductivityMethodWithValues_0 =
((AnisotropicElectricalConductivityMethodWithValues) solid_0.getMaterialProperties().getMaterialProperty(ElectricalConductivityProperty.class).getMethod());
anisotropicElectricalConductivityMethodWithValues_0.setLegacyMethodAvailability(true);
solid_0.getMaterialProperties().getMaterialProperty(ElectricalConductivityProperty.class).setMethod(AnisotropicElectricalConductivityMethod.class);
AnisotropicElectricalConductivity anisotropicElectricalConductivity_0 =
region_0.getValues().get(AnisotropicElectricalConductivity.class);
ScalarProfile scalarProfile_0 =
anisotropicElectricalConductivity_0.getMethod(PrincipalTensorProfileMethodWithAxes.class).getProfile(0);
scalarProfile_0.getMethod(ConstantScalarProfileMethod.class).getQuantity().setValue(1.0);
|
使用 AnisotropicPermeabilityProperty
和 AnisotropicPermittivityProperty
的等效代码。
对指定的温度模型的更改
为扩展指定的温度模型与其他模型的兼容性,模型的有限元和有限体积变量已组合,从而导致宏代码发生更改。
在 Simcenter STAR-CCM+ 以前版本中,使用有限元指定的温度模型时,可以初始化模拟而无需完全指定初始条件。在 Simcenter STAR-CCM+ 2020.1 中,不再允许执行此操作。在初始化之前,要对指定的温度初始条件的所有属性进行选择,否则会显示一条错误消息。
导入
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
import star.solidstress.FeSpecifiedTemperatureModel
|
import star.solidstress.SpecifiedTemperatureModel
|
import star.solidstress.FvSpecifiedTemperatureModel
|
类名称
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
FeSpecifiedTemperatureModel.class
|
SpecifiedTemperatureModel.class
|
FvSpecifiedTemperatureModel.class
|
多相
对液膜剥离的更改
由于重构,相间相互作用参数剥离液体体积分数限制和摩擦速度比例缩放因子已从相间相互作用的基准值移至剥离相模型节点的属性。
更新这些参数的宏代码如下:
FrictionVelocityScalingFactor
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
phaseInteraction_1.get(ReferenceValueManager.class).get(FrictionVelocityScalingFactor.class).setValue(<value>);
|
phaseInteraction_1.getModelManager().getModel(FilmStrippingEMPModel.class).getFrictionVelocityScalingFactor().setValue(<value>);
|
StrippingVolumeFractionLimit
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
phaseInteraction_1.get(ReferenceValueManager.class).get(StrippingVolumeFractionLimit.class).setValue(<value>);
|
phaseInteraction_1.getModelManager().getModel(FilmStrippingEMPModel.class).getStrippingVolumeFractionLimit().setValue(<value>);
|
对 VOF 和液膜中的接触角的更改
接触角物理值节点的默认设置已从 0 更改为 90 度,该默认设置在为液膜或 VOF 相间相互作用激活表面张力相间相互作用模型时变为可用。
如果 Simcenter STAR-CCM+ 以前版本中的模拟使用以前的默认设置 0,则如以下示例所示修改宏代码以恢复该值。用于指定非默认接触角的宏不需要更新。
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
协同仿真:对外部连续体链接的更改
为了简化用户在协同仿真中与外部连续体的交互,特征已重构,从而导致导入操作的宏代码发生更改。
以前版本 |
Simcenter STAR-CCM+ 2020.1 |
import star.cosimulation.common.ExternalContinua;
import star.cosimulation.common.ExternalContinuumModel;
|
import star.cosimulation.link.common.ExternalContinua;
import star.cosimulation.link.common.ExternalContinuumModel;
|