60 while ((i2 < nElem) && (values[i2] < xIn))
81 ddx = (xIn - values[i1])/(values[i2] - values[i1]);
106 dict.
lookup(
"data") >> data;
121 radius_[i] = data[i].second()[0];
123 chord_[i] = data[i].second()[2];
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< scalar > radius_
Radius [m].
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const List< scalar > & radius() const
Return const access to the radius list.
Unit conversion functions.
void size(const label)
Override size to be inconsistent with allocated storage.
static const fileName null
An empty fileName.
List< scalar > chord_
Chord [m].
List< scalar > twist_
Twist [deg] on input, converted to [rad].
T & first()
Return the first element of the list.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
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.
virtual ~bladeModel()
Destructor.
bladeModel(const dictionary &dict)
Constructor.
const List< scalar > & twist() const
Return const access to the twist list.
List< word > profileName_
Corresponding profile name per section.
const List< label > & profileID() const
Return const access to the profile ID list.
bool readFromFile() const
Return true if file name is set.
Database for solution and other reduced data.
const List< scalar > & chord() const
Return const access to the chord list.
List< label > profileID_
Corresponding profile ID per section.
labelList second(const UList< labelPair > &p)
void interpolateWeights(const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const
Return the interpolation indices and gradient.
void setSize(const label)
Reset size of List.
fileName fName_
File name (optional)
const List< word > & profileName() const
Return const access to the profile name list.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.