Difference between revisions of "SingleCellMesh"

From OpenFOAMWiki
(First version)
 
m (Description: Improve description thanks to comments in the source code)
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Removes all but one cells of the mesh - the one with index 0 is retained. All fields are reduced to one cell.
+
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:
 
Remarks:
* All external faces are kept. So there are more than 6 faces.
+
* All external faces are kept. So there are more than 6 external faces.
 
* The reduced mesh is written in the time folders ''TimeFolder''<tt>/singleCell</tt>
 
* The reduced mesh is written in the time folders ''TimeFolder''<tt>/singleCell</tt>
  

Latest revision as of 20:20, 3 September 2012

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