Go to the documentation of this file.
60 while ((i2 < nElem) && (values[i2] < xIn))
81 ddx = (xIn - values[i1])/(values[i2] - values[i1]);
187 interpolateWeights(radius, radius_, i1, i2, invDr);
189 twist = invDr*(twist_[i2] - twist_[i1]) + twist_[i1];
190 chord = invDr*(chord_[i2] - chord_[i1]) + chord_[i1];
const List< word > & profileName() const
Return const access to the profile name list.
const List< scalar > & radius() const
Return const access to the radius list.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
const List< scalar > & chord() const
Return const access to the chord list.
void interpolateWeights(const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const
Return the interpolation indices and gradient.
const List< scalar > & twist() const
Return const access to the twist list.
Unit conversion functions.
virtual void interpolate(const scalar radius, scalar &twist, scalar &chord, label &i1, label &i2, scalar &invDr) const
Return the twist and chord for a given radius.
fileName fName_
File name (optional)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e....
static const fileName null
An empty fileName.
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< word > profileName_
Corresponding profile name per section.
virtual ~bladeModel()
Destructor.
void setSize(const label)
Reset size of List.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< scalar > radius_
Radius [m].
const List< label > & profileID() const
Return const access to the profile ID list.
List< label > profileID_
Corresponding profile ID per section.
List< scalar > twist_
Twist [deg] on input, converted to [rad].
void size(const label)
Override size to be inconsistent with allocated storage.
Database for solution data, solver performance and other reduced data.
bool readFromFile() const
Return ture if file name is set.
bladeModel(const dictionary &dict)
Constructor.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
List< scalar > chord_
Chord [m].