mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: rateOfChange function for interpolationTable.
Creates linear slope only from low and high elements around the sample value, so rate will be discontinuous. Would be better with higher order gradient calculation.
This commit is contained in:
@ -26,7 +26,7 @@ Class
|
||||
|
||||
Description
|
||||
An interpolation/look-up table of scalar vs <Type> values.
|
||||
The reference scalar values must be positive and monotonically increasing.
|
||||
The reference scalar values must be monotonically increasing.
|
||||
|
||||
The handling of out-of-bounds values depends on the current setting
|
||||
of @a outOfBounds.
|
||||
@ -139,6 +139,10 @@ public:
|
||||
//- Write
|
||||
void write(Ostream& os) const;
|
||||
|
||||
//- Return the rate of change at the interpolation location
|
||||
// for the give value
|
||||
Type rateOfChange(const scalar) const;
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
|
||||
Reference in New Issue
Block a user