53 label nElem = values.size();
63 while ((i2 < nElem) && (values[i2] < xIn))
84 ddx = (xIn - values[i1])/(values[i2] - values[i1]);
132 <<
"No blade data specified"
186 interpolateWeights(radius, radius_, i1, i2, invDr);
188 twist = invDr*(twist_[i2] - twist_[i1]) + twist_[i1];
189 chord = invDr*(chord_[i2] - chord_[i1]) + chord_[i1];
Input from file stream, using an ISstream.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(const label n)
Alias for resize()
T * first()
The first entry in the list.
Blade model class calculates:
const List< scalar > & chord() const
Return const access to the chord list.
const List< label > & profileID() const
Return const access to the profile ID list.
List< word > profileName_
Corresponding profile name per section.
const List< scalar > & radius() const
Return const access to the radius list.
List< label > profileID_
Corresponding profile ID per section.
const List< word > & profileName() const
Return const access to the profile name list.
List< scalar > radius_
Radius [m].
List< scalar > chord_
Chord [m].
const List< scalar > & twist() const
Return const access to the twist list.
bool readFromFile() const
Return true if file name is set.
void interpolateWeights(const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const
Return the interpolation indices and gradient.
fileName fName_
File name (optional)
List< scalar > twist_
Twist [deg] on input, converted to [rad].
Database for solution data, solver performance and other reduced data.
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, bool mandatory=true) const
bool interpolate() const noexcept
Same as isPointData()
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
constexpr scalar degToRad() noexcept
Multiplication factor for degrees to radians conversion.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.
Unit conversion functions.