45 cellSizeAndAlignmentControl,
62 const dictionary& controlFunctionDict,
63 const conformationSurfaces& geometryToConformTo,
64 const scalar& defaultCellSize
67 cellSizeAndAlignmentControl
75 pointsFile_(controlFunctionDict.
get<fileName>(
"pointsFile")),
76 sizesFile_(controlFunctionDict.
get<fileName>(
"sizesFile")),
77 alignmentsFile_(controlFunctionDict.
get<fileName>(
"alignmentsFile")),
78 maxPriority_(controlFunctionDict.
get<label>(
"priority"))
81 <<
indent <<
" priority : " << maxPriority_ <<
nl
82 <<
indent <<
" points : " << pointsFile_ <<
nl
83 <<
indent <<
" sizes : " << sizesFile_ <<
nl
84 <<
indent <<
" alignments : " << alignmentsFile_
166 DynamicList<Foam::point>& pts,
167 DynamicList<scalar>& sizes
181 Info<<
" Reading points from file : " << pointsFile_ <<
endl;
196 pts.transfer(pointsTmp);
198 Info<<
" Reading sizes from file : " << sizesFile_ <<
endl;
213 sizes.transfer(sizesTmp);
215 Info<<
" Reading alignments from file : " << alignmentsFile_ <<
endl;
230 alignments.transfer(alignmentsTmp);
232 if ((pts.size() != sizes.size()) || (pts.size() != alignments.size()))
235 <<
"Size of list of points, sizes and alignments do not match:"
237 <<
"Points size = " << pts.size() <<
nl
238 <<
"Sizes size = " << sizes.size() <<
nl
239 <<
"Alignments size = " << alignments.size()
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual void cellSizeFunctionVertices(DynamicList< Foam::point > &pts, DynamicList< scalar > &sizes) const
virtual void initialVertices(pointField &pts, scalarField &sizes, triadField &alignments) const
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
IOField< triad > triadIOField
triadField with IO.
messageStream Info
Information stream (stdout output on master, null elsewhere)
IOField< scalar > scalarIOField
scalarField with IO.
vectorField pointField
pointField is a vectorField.
Field< triad > triadField
Specialisation of Field<T> for triad.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
vectorIOField pointIOField
pointIOField is a vectorIOField.
errorManip< error > abort(error &err)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)