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

Function setSelection

src/fvOptions/cellSetOption/cellSetOption.C:57–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
56
57void Foam::fv::cellSetOption::setSelection(const dictionary& dict)
58{
59 switch (selectionMode_)
60 {
61 case smPoints:
62 {
63 dict.lookup("points") >> points_;
64 break;
65 }
66 case smCellSet:
67 {
68 dict.lookup("cellSet") >> cellSetName_;
69 break;
70 }
71 case smCellZone:
72 {
73 dict.lookup("cellZone") >> cellSetName_;
74 break;
75 }
76 case smAll:
77 {
78 break;
79 }
80 default:
81 {
82 FatalErrorInFunction
83 << "Unknown selectionMode "
84 << selectionModeTypeNames_[selectionMode_]
85 << ". Valid selectionMode types are" << selectionModeTypeNames_
86 << exit(FatalError);
87 }
88 }
89}
90
91
92void Foam::fv::cellSetOption::setCellSet()

Callers 1

cellSetOption.CFile · 0.85

Calls 2

lookupMethod · 0.80
exitFunction · 0.50

Tested by

no test coverage detected