MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / cellSetOption

Class cellSetOption

src/fvOptions/cellSetOption/cellSetOption.H:70–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68\*---------------------------------------------------------------------------*/
69
70class cellSetOption
71:
72 public option
73{
74public:
75
76 // Public data
77
78 //- Enumeration for selection mode types
79 enum selectionModeType
80 {
81 smPoints,
82 smCellSet,
83 smCellZone,
84 smAll
85 };
86
87 //- Word list of selection mode type names
88 static const NamedEnum<selectionModeType, 4>
89 selectionModeTypeNames_;
90
91
92protected:
93
94 // Protected data
95
96 //- Time start
97 scalar timeStart_;
98
99 //- Duration
100 scalar duration_;
101
102 //- Cell selection mode
103 selectionModeType selectionMode_;
104
105 //- Name of cell set for "cellSet" and "cellZone" selectionMode
106 word cellSetName_;
107
108 //- List of points for "points" selectionMode
109 List<point> points_;
110
111 //- Set of cells to apply source to
112 labelList cells_;
113
114 //- Sum of cell volumes
115 scalar V_;
116
117
118 // Protected functions
119
120 //- Set the cellSet or points selection
121 void setSelection(const dictionary& dict);
122
123 //- Set the cell set based on the user input selection mode
124 void setCellSet();
125
126
127public:

Calls

no outgoing calls

Tested by

no test coverage detected