A topoSetCellSource
to select cells based on volScalarField
values, i.e. select cells with given field value of >= min and <= max.
Operand | Type | Location |
---|---|---|
input | volScalarField | $FOAM_CASE/<time>/<inpField> |
output | cellSet | $FOAM_CASE/constant/polyMesh/sets/<set> |
Example of the fieldToCell
topoSet by using actions
sub-dictionary in system/topoSetDict
file:
{ // Mandatory (inherited) entries name <name>; type cellSet; action <action>; // Mandatory entries source fieldToCell; field <fieldName>; min <minFieldValue>; max <maxFieldValue>; }
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: fieldToCell | word | yes | - |
field | Name of volScalarField to use | word | yes | - |
min | The min value for the subset | scalar | yes | - |
max | The max value for the subset | scalar | 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
Tutorial:
Source code:
History
Would you like to suggest an improvement to this page? | Create an issue |
Copyright © 2020 OpenCFD Ltd.