44 IStringStream(
"(points cellSet cellZone all)")()
55 forAll(selectionModeTypeNames_, i)
57 if (smtName == selectionModeTypeNames_[i])
65 "basicSource::selectionModeType"
66 "basicSource::wordToSelectionModeType"
70 ) <<
"Unknown selectionMode type " << smtName
71 <<
". Valid selectionMode types are:" <<
nl << selectionModeTypeNames_
83 if (smtType > selectionModeTypeNames_.size())
89 return selectionModeTypeNames_[smtType];
121 "basicSource::setSelection(const dictionary&)"
122 ) <<
"Unknown selectionMode "
134 switch (selectionMode_)
142 Info<<
indent <<
"- selecting cells using cellSet "
143 << cellSetName_ <<
endl;
145 cellSet selectedCells(mesh_, cellSetName_);
146 cells_ = selectedCells.
toc();
152 Info<<
indent <<
"- selecting cells using cellZone "
153 << cellSetName_ <<
endl;
154 label zoneID = mesh_.cellZones().findZoneID(cellSetName_);
158 <<
"Cannot find cellZone " << cellSetName_ << endl
159 <<
"Valid cellZones are " << mesh_.cellZones().names()
162 cells_ = mesh_.cellZones()[zoneID];
176 <<
"Unknown selectionMode "
177 << selectionModeTypeNames_[selectionMode_]
178 <<
". Valid selectionMode types are" << selectionModeTypeNames_
184 if (selectionMode_ != smPoints)
189 V_ += mesh_.V()[cells_[i]];
212 active_(
readBool(dict_.lookup(
"active"))),
213 timeStart_(
readScalar(dict_.lookup(
"timeStart"))),
214 duration_(
readScalar(dict_.lookup(
"duration"))),
215 selectionMode_(wordToSelectionModeType(dict_.lookup(
"selectionMode"))),
216 cellSetName_(
"none"),
236 Info<<
"Selecting model type " << typeModel <<
endl;
238 dictionaryConstructorTable::iterator cstrIter =
239 dictionaryConstructorTablePtr_->find(typeModel);
241 if (cstrIter == dictionaryConstructorTablePtr_->end())
245 "basicSource::New(const volVectorField&, "
246 "const surfaceScalarField&, transportModel&)"
247 ) <<
"Unknown Model type " << typeModel
249 <<
"Valid model types are :" <<
nl
250 << dictionaryConstructorTablePtr_->sortedToc()
265 && (mesh_.time().value() >= timeStart_)
266 && (mesh_.time().value() <= timeEnd())
270 if (mesh_.changing())