Exporting Data to CGNS Files
You specify all export settings in a CGNS link under the External Links node. Export settings include the mesh and solution data that Simcenter STAR-CCM+ exports to CGNS, the data export frequency, and the CGNS file format and location.
- Follow the instructions in Preparing the Simulation for CGNS File Exchange .
- Expand the relevant CGNS link node, for example, .
- Select the Option to Export. node and set
A zone can export boundary data (surface zone) or region data (volume zone), depending on the space model selected in the associated external continuum (see Preparing the Simulation for CGNS File Exchange). Although a link node accepts a combination of volume and surface zones, you are advised to only have one type in each link node, particularly for 2D simulations.
To export mesh data, specify the relevant surface parts (boundaries) or volume parts (regions) for export:
- Select the Volume Parts node and set Parts to the relevant Simcenter STAR-CCM+ boundaries, or regions, from which data is exported. or
- Right-click the Add Auxiliary Field and choose Scalar or Vector, as appropriate. node, select
-
Select the
node and set the following properties:
Property Setting Field Stencil Select a source stencil for data mapping. The available stencils depend on the Zone Type (see Field Stencil ). Scalar/Vector Function Select the field function whose data you want to export to CGNS. The remaining properties are read-only. If required, you can add other fields for export. If you do not add any fields under the Exported Fields node, Simcenter STAR-CCM+ exports only mesh data.
- Select the External Volume Parts and select the Parts to relevant external boundaries, or regions, to which the data is mapped. or
-
Select Options to Map Before
Export.
and set Simcenter STAR-CCM+ automatically creates a data mapper for each field that you add under the node. These mappers are defined under . You can review or change the field-mapper associations under the node.
During the simulation, at each time-step the Field Stencil that you specified for an [Exported Field] node overwrites the Source Stencil for the associated default mapper.
If you wish to set different source and target stencils, you require a custom data mapper. Setting different source and target stencils allows you to access interpolation methods such as Conservative Enclosed Face and Conservative Maximum Distance. For more information, see Mapping Fields Using Data Mappers and 求解插值模型参考.
-
To replace the default data mapper for an exported field with a
custom data mapper:
- Create and set up the required data mapper under .
- Expand the relevant node and select the desired data mapper.
-
Select the
node and set Option
as required.For more information, see Boundary Triangulation.
-
Select the
node and set Option
as required.
- If you select Merge Boundaries Into One, specify the boundary name under the node.
For more information, see Merge Boundaries.
-
Select the
node and select the required format.For more information, see Database Format.
-
Select the
node and select one of the following:
- Always Enabled—exports mesh data at every export event.
- Initially and on Mesh Change—exports the mesh in the first export event. In subsequent events, mesh export occurs only if the mesh has changed.
-
Select the
node and select one of the following:
- File Series—creates new files at every export event. The number of files depends on the specified Mesh Mode. See Output CGNS Files.
- Single File—creates a single file each for mesh and solution data during the first export event. In subsequent export events, appends data to the same file.
For more information, see File Mode.
To define a trigger for automatic data export:
-
Select the
node and set Option
to one of the following:
- None—automatic export is deactivated. You can trigger export events manually from the [Link 1] node.
- Time Step—specify the number of time-steps between export events under the node.
- Delta Time—specify the time interval between export events under the node.
-
Select the
node and select the desired Option.Depending on the selected option, set the relevant times using the Stop Time nodes.and
- Right-click the [Link 1] node and select Export File.
When exporting a File Series, you can visualize the files already exported, while Simcenter STAR-CCM+ continues the export process for subsequent files within the series.
By default, Simcenter STAR-CCM+ exports the relevant files to the current working directory. For the exported files, Simcenter STAR-CCM+ uses the name prefix, solution. To change these settings:
-
Select the
node and set its properties.For more information, see File.