54Foam::fileControl::fileControl
59 const conformationSurfaces& geometryToConformTo,
60 const scalar& defaultCellSize
63 cellSizeAndAlignmentControl
71 pointsFile_(controlFunctionDict.
get<fileName>(
"pointsFile")),
72 sizesFile_(controlFunctionDict.
get<fileName>(
"sizesFile")),
73 alignmentsFile_(controlFunctionDict.
get<fileName>(
"alignmentsFile")),
74 maxPriority_(controlFunctionDict.
get<label>(
"priority"))
77 <<
indent <<
" priority : " << maxPriority_ <<
nl
78 <<
indent <<
" points : " << pointsFile_ <<
nl
79 <<
indent <<
" sizes : " << sizesFile_ <<
nl
80 <<
indent <<
" alignments : " << alignmentsFile_
162 DynamicList<Foam::point>&
pts,
163 DynamicList<scalar>& sizes
177 Info<<
" Reading points from file : " << pointsFile_ <<
endl;
190 Info<<
" Reading sizes from file : " << sizesFile_ <<
endl;
203 Info<<
" Reading alignments from file : " << alignmentsFile_ <<
endl;
216 if ((
pts.
size() != sizes.size()) || (
pts.
size() != alignments.size()))
219 <<
"Size of list of points, sizes and alignments do not match:"
222 <<
"Sizes size = " << sizes.size() <<
nl
223 <<
"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.
static Field< vector > readContents(const IOobject &io)
@ MUST_READ
Reading required.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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)
List of values generated by applying the access operation to each list item.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
errorManip< error > abort(error &err)
Field< triad > triadField
Specialisation of Field<T> for triad.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
vectorField pointField
pointField is a vectorField.
constexpr char nl
The newline '\n' character (0x0a).