37 const word& entryName,
39 const dictionary&
dict,
40 const bool faceValues,
46 const dictionary* coeffs = (eptr ? eptr->dictPtr() :
nullptr);
66 ITstream& is = eptr->stream();
71 if (!firstToken.isWord())
74 is.putBack(firstToken);
76 const Type constValue = pTraits<Type>(is);
78 return autoPtr<PatchFunction1<Type>>
80 new PatchFunction1Types::ConstantField<Type>
91 modelType = firstToken.wordToken();
94 if (modelType ==
"uniform" || modelType ==
"nonuniform")
96 return autoPtr<PatchFunction1<Type>>
98 new PatchFunction1Types::ConstantField<Type>
113 if (modelType.empty())
120 <<
"Missing or invalid PatchFunction1 entry: "
139 coeffs = &
dict.optionalSubDict(kw +
"Coeffs", keyType::LITERAL);
143 auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
145 if (!cstrIter.found())
148 <<
"Unknown PatchFunction1 type "
149 << modelType <<
" for " << entryName
150 <<
"\n\nValid PatchFunction1 types :\n"
151 << dictionaryConstructorTablePtr_->sortedToc() <<
nl
155 return cstrIter()(pp, modelType, entryName, *coeffs, faceValues);
164 const word& entryName,
166 const bool faceValues,
174 dict.findEntry(entryName, keyType::LITERAL),
187 const word& entryName,
188 std::initializer_list<std::pair<const char*,int>> compat,
190 const bool faceValues,
198 dict.findCompat(entryName, compat, keyType::LITERAL),
211 const word& entryName,
213 const bool faceValues