43 cellSizeAndAlignmentControl,
56 Foam::fileControl::fileControl
60 const dictionary& controlFunctionDict,
61 const conformationSurfaces& geometryToConformTo,
62 const scalar& defaultCellSize
65 cellSizeAndAlignmentControl
73 pointsFile_(controlFunctionDict.
lookup(
"pointsFile")),
74 sizesFile_(controlFunctionDict.
lookup(
"sizesFile")),
75 alignmentsFile_(controlFunctionDict.
lookup(
"alignmentsFile")),
78 Info<<
indent <<
"Loading " << name <<
" from file:" <<
nl 79 <<
indent <<
" priority : " << maxPriority_ <<
nl 80 <<
indent <<
" points : " << pointsFile_ <<
nl 81 <<
indent <<
" sizes : " << sizesFile_ <<
nl 82 <<
indent <<
" alignments : " << alignmentsFile_
170 DynamicList<Foam::point>& pts,
171 DynamicList<scalar>& sizes
185 Info<<
" Reading points from file : " << pointsFile_ <<
endl;
200 pts.transfer(pointsTmp);
202 Info<<
" Reading sizes from file : " << sizesFile_ <<
endl;
217 sizes.transfer(sizesTmp);
219 Info<<
" Reading alignments from file : " << alignmentsFile_ <<
endl;
234 alignments.transfer(alignmentsTmp);
236 if ((pts.size() != sizes.size()) || (pts.size() != alignments.size()))
239 <<
"Size of list of points, sizes and alignments do not match:" 241 <<
"Points size = " << pts.size() <<
nl 242 <<
"Sizes size = " << sizes.size() <<
nl 243 <<
"Alignments size = " << alignments.size()
Ostream & indent(Ostream &os)
Indent stream.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
vectorIOField pointIOField
pointIOField is a vectorIOField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
vectorField pointField
pointField is a vectorField.
stressControl lookup("compactNormalStress") >> compactNormalStress
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
~fileControl()
Destructor.
IOField< scalar > scalarIOField
scalarField with IO.
errorManip< error > abort(error &err)
label readLabel(Istream &is)
Field< triad > triadField
Specialisation of Field<T> for triad.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
virtual void initialVertices(pointField &pts, scalarField &sizes, triadField &alignments) const
virtual void cellSizeFunctionVertices(DynamicList< Foam::point > &pts, DynamicList< scalar > &sizes) const
IOField< triad > triadIOField
triadField with IO.