44 cellSizeAndAlignmentControl,
54 Foam::fileControl::fileControl
58 const dictionary& controlFunctionDict,
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;
179 pts = pointIOField::readContents
190 Info<<
" Reading sizes from file : " << sizesFile_ <<
endl;
192 sizes = scalarIOField::readContents
203 Info<<
" Reading alignments from file : " << alignmentsFile_ <<
endl;
205 alignments = triadIOField::readContents
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()
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void size(const label n)
Older name for setAddressableSize.
virtual void initialVertices(pointField &pts, scalarField &sizes, triadField &alignments) const
Ostream & indent(Ostream &os)
Indent stream.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void cellSizeFunctionVertices(DynamicList< Foam::point > &pts, DynamicList< scalar > &sizes) const
Macros for easy insertion into run-time selection tables.
vectorField pointField
pointField is a vectorField.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
errorManip< error > abort(error &err)
Field< triad > triadField
Specialisation of Field<T> for triad.
defineTypeNameAndDebug(combustionModel, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)