SingleCellMesh

From OpenFOAMWiki

1 Name

singleCellMesh - Removes all but one cells of the mesh. Used to generate mesh and fields that can be used for boundary-only data. Might easily result in illegal mesh though so only look at boundaries in paraview.

Valid versions: OF Version 21.png

2 Synopsis

singleCellMesh [OPTIONS]

3 Description

Reads all fields and maps them to a mesh with all internal faces removed (singleCellFvMesh) which gets written to region "singleCell".

Used to generate mesh and fields that can be used for boundary-only data.

Might easily result in illegal mesh though so only look at boundaries in paraview.

Remarks:

  • All external faces are kept. So there are more than 6 external faces.
  • The reduced mesh is written in the time folders TimeFolder/singleCell

-noZero

Exclude the 0 directory from the times list

-time RANGES

Select time steps. RANGES follows the time selection rules

-latestTime

Apply only on the latest time available

-constant

Include the constant directory in the times list

-parallel

Run the utility in parallel

-roots "(DIR1 [...DIRN])"

Directories through which the data are distributed

-case DIR

Execute the command on the case directory DIR. If not provided, use the current directory

-noFunctionObjects

Skip the execution of the functionObjects

-help

Display the help and exit