|
FhSim
3.1.0
Marine systems simulation
|
#include <DepthAxis.h>
Public Member Functions | |
| DepthAxis (std::vector< double > depths) | |
| DepthInterval | Locate (double z) const |
| const std::vector< double > & | Depths () const |
| The layer depths. | |
| std::size_t | Size () const |
| Number of layers, at least 2. | |
Layer depths of a depth profile, validated: finite, at least two, strictly increasing (owner ruling R122, MENV-0053).
Shared by the depth profiles of marenv (DepthProfile, DepthVaryingCurrentField, the depth axis of CurrentField3DArray), so that every profile accepts the same layers and ends the same way: linear between layers, clamped to the first or the last layer outside them with Status::OUT_OF_RANGE_INACCURATE.
|
explicit |
| [in] | depths | Layer depths, m (or any vertical coordinate), strictly increasing. |
| std::invalid_argument | for fewer than two layers, a depth that is not finite, or depths that do not strictly increase. |
| DepthInterval marenv::calc::DepthAxis::Locate | ( | double | z | ) | const |
Returns the interval of z and the weight of its deeper layer.
| [in] | z | Depth, in the measure of the layers. |