---
name: "blockMesh"
section: "1"
platform: "linux"
package: "openfoam"
version: "1912.200626-3+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/blockMesh"
---

# blockMesh(1)

part of OpenFOAM (The Open Source CFD Toolbox).

## NAME

blockMesh - part of **OpenFOAM** (The Open Source CFD Toolbox).

## SYNOPSIS

**blockMesh** \[*OPTIONS*\]

## DESCRIPTION

```
Block mesh generator.
  The ordering of vertex and face labels within a block as shown below.
  For the local vertex numbering in the sequence 0 to 7:
    Faces 0, 1 (x-direction) are left, right.
    Faces 2, 3 (y-direction) are front, back.
    Faces 4, 5 (z-direction) are bottom, top.
                        7 ---- 6
                 f5     |\     |\     f3
                 |      | 4 ---- 5     \
                 |      3 |--- 2 |      \
                 |       \|     \|      f2
                 f4       0 ---- 1
    Y  Z
     \ |                f0 ------ f1
      \|
       O--- X
```

## OPTIONS

- **-blockTopology**

  Write block edges and centres as obj files and exit

- **-case** *dir*

  Specify case directory to use (instead of the cwd)

- **-dict** *file*

  Alternative dictionary for the blockMesh description

- **-noClean**

  Do not remove any existing polyMesh/ directory or files

- **-region** *name*

  Specify alternative mesh region

- **-sets**

  Write cellZones as cellSets too (for processing purposes)

- **-time** *time*

  Specify a time to write mesh to (default: constant)

- **-doc**

  Display documentation in browser

- **-help**

  Display short help and exit

- **-help-full**

  Display full help and exit

### ADVANCED OPTIONS

- **-debug-switch** *name=val*

  Specify the value of a registered debug switch. Default is 1 if the value is omitted. (Can be used multiple times)

- **-fileHandler** *handler*

  Override the file handler type

- **-info-switch** *name=val*

  Specify the value of a registered info switch. Default is 1 if the value is omitted. (Can be used multiple times)

- **-lib** *name*

  Additional library or library list to load (can be used multiple times)

- **-opt-switch** *name=val*

  Specify the value of a registered optimisation switch (int/bool). Default is 1 if the value is omitted. (Can be used multiple times)

- **-doc-source**

  Display source code in browser

- **-help-compat**

  Display compatibility options and exit

- **-help-man**

  Display full help (manpage format) and exit

- **-help-notes**

  Display help notes (description) and exit

### COMPATIBILITY OPTIONS

- **-noFunctionObjects**

  This option is ignored

## SEE ALSO

Online documentation https://www.openfoam.com/documentation/

## COPYRIGHT

Copyright © 2018-2019 OpenCFD Ltd.
