Setting Up the Replace Part Operation with Local Volume Meshing

Here, you define a replace part operation that uses a file global parameter for the file being read from disk. You also assign some parts to their correct operation in order to assemble a meshing pipeline that Design Manager can execute using only the file global parameter.

In this scenario when the spoiler design is replaced, you must be able to successfully re-execute the subtract operation after the replace part operation is complete.

Before creating the replace part operation, define a file global parameter:
  1. In Simcenter STAR-CCM+, right-click Automation > Parameters and select New > File.
  2. Rename the node to PartReplacement.
  3. In the Properties window, click (Custom Editor), and select Spoiler1.x_b.
In order to replace a part within the meshing pipeline, you first create a duplicate part that acts as a placeholder in operations.
  1. In Geometry > Parts, right-click the Spoiler node and select Duplicate.
  2. Rename the duplicate part to ReplacePart.
  3. Right-click the Geometry > Operations node and select New > Surface Preparation > Replace Part.
  4. In the Create Replace Part Operation dialog:
    1. Set Obtain Mesh From to File.
    2. Click the parameter selector next to File and select PartReplacement. Click OK.
    3. For the Target Part, select ReplacePart.
    4. Click OK.
  5. Select the Fluid Domain subtract operation and set the Input Parts to:
    • Car
    • Domain
    • ReplacePart
  6. Select the Automated Mesh > Custom Controls > Surface Control (Spoiler) node and set Part Surfaces to ReplacePart.
  7. Right-click the Geometry > Operations node and select Execute All.
    This step executes all operations including mesh generation.
In cases where there are design changes, you can use local volume meshing to remesh only a specific part without regenerating a complete mesh. To mesh the spoiler using local volume meshing:
  1. Select the Automated Mesh node and activate the Perform Local Meshing option.
    The Local Extents node is added to the automated mesh operation.
  2. Create a volume extent:
    1. Right-click the Automated Mesh > Local Extents node and select New > Volume Extent.
      A Volume Extent node is added to the Local Extents node.
    2. Select the Volume Extent node and set Parts to Local Volume Enclosure.
    3. Set Inflation Distance to 2.0 mm.
    4. Set Inflation Layers to 2.
  3. Right-click the Geometry > Operations node and select Execute All.
To visualise the mesh:
  1. Click (Make Scene Transparent) to deactivate transparency.
  2. Right-click the Scenes node and select New > Mesh.


To display the latest scenes:
  1. Right-click on the Scenes node and select Apply Representation to Displayers > Volume Mesh.
You can now run the simulation.
  1. In the Solution toolbar, click (Run).
    The Residuals display is automatically opened and shows the progress of the solver.
  2. Once the simulation is complete, save the file.