43 Foam::surfaceCellSizeFunction::surfaceCellSizeFunction
46 const dictionary& surfaceCellSizeFunctionDict,
47 const searchableSurface& surface,
48 const scalar& defaultCellSize
51 dictionary(surfaceCellSizeFunctionDict),
53 coeffsDict_(optionalSubDict(
type +
"Coeffs")),
54 defaultCellSize_(defaultCellSize),
57 getOrDefault<scalar>(
"refinementFactor", 1)
66 const dictionary&
dict,
67 const searchableSurface& surface,
68 const scalar& defaultCellSize
71 const word modelType(
dict.
get<word>(
"surfaceCellSizeFunction"));
73 Info<<
indent <<
"Selecting surfaceCellSizeFunction " << modelType <<
endl;
75 auto* ctorPtr = dictionaryConstructorTable(modelType);
82 "surfaceCellSizeFunction",
84 *dictionaryConstructorTablePtr_
88 return autoPtr<surfaceCellSizeFunction>
90 ctorPtr(
dict, surface, defaultCellSize)