53 Info<<
"Reading control points from file " <<
endl;
60 dict.dictName() +
"cpsBsplines" +
mesh.time().timeName(),
61 mesh.time().caseConstant(),
70 cpsDict.readEntry(
"controlPoints",
cps_);
74 if (
cps_.
size() != nCPsU*nCPsV*nCPsW)
77 <<
"Number of control points does not agree with "
86Foam::fromFile::fromFile(NURBS3DVolume& box)
88 controlPointsDefinition(box)
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
NURBS3DVolume morpher. Includes support functions for gradient computations Base class providing supp...
const dictionary & dict() const
Get dictionary.
const NURBSbasis & basisV() const
const NURBSbasis & basisW() const
const fvMesh & mesh() const
Get mesh.
const NURBSbasis & basisU() const
Get basis functions.
const label & nCPs() const
void size(const label n)
Older name for setAddressableSize.
Abstract base for selecting how to construct the control points of a volumetric B-Splines morpher.
vectorField & cps_
The volumetric B-Splines control points.
NURBS3DVolume & box_
The volumetric B-Splines box.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
Reads control points from constant/controlPoints.
virtual void computeControlPoints()
Compute control points.
Mesh data needed to do the Finite Volume discretisation.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)