A topoSetCellSource to select cells based on master or slave side of given faceZone(s).
| Operand | Type | Location |
|---|---|---|
| input | faceZone(s) | $FOAM_CASE/constant/polyMesh/faceZones |
| output | cellSet | $FOAM_CASE/constant/polyMesh/sets/<set> |
Example of the faceZoneToCell topoSet by using actions sub-dictionary in system/topoSetDict file:
{
// Mandatory (inherited) entries
name <name>;
type cellSet;
action <action>;
// Mandatory entries
source faceZoneToCell;
option <option>;
// Conditional mandatory entries
// Select either of the below
// Option-1
zones
(
<faceZoneName1>
<faceZoneName2>
...
);
// Option-2
set <faceZoneName>;
}
where the entries mean:
| Property | Description | Type | Required | Default |
|---|---|---|---|---|
| name | Name of cellSet | word | yes | - |
| type | Type name: cellSet | word | yes | - |
| action | Action applied on cells - see below | word | yes | - |
| source | Source name: faceZoneToCell | word | yes | - |
| option | Selection type - see below | word | yes | - |
Options for the action entry:
new | Create a new cellSet from selected cells add | Add selected cells into this cellSet subtract | Remove selected cells from this cellSet
Options for the option entry:
master | Master side of the faceZone slave | Slave side of the faceZone
Options for the conditional mandatory entries:
Entry | Description | Type | Requiredd | Default zones | Names of input faceZones | wordList | conditional | - zone | Name of input faceZone | word | conditional | -
The order of precedence among the conditional mandatory entries from the highest to the lowest is zones, and zone.
Tutorial:
Source code:
History
| Would you like to suggest an improvement to this page? | Create an issue |
Copyright © 2020 OpenCFD Ltd.