FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
DepthProfile.h
1#pragma once
4
5#include <marenv/calc/DepthAxis.h>
6#include <marenv/marenv.h>
7
8#include <vector>
9
10namespace marenv::calc
11{
28{
29public:
33 DepthProfile(std::vector<double> depths, std::vector<double> values);
34
43 Status Evaluate(double z, double& value) const;
44
46 const DepthAxis& Axis() const { return m_axis; }
47
49 const std::vector<double>& Values() const { return m_values; }
50
51private:
52 DepthAxis m_axis;
53 std::vector<double> m_values;
54};
55} // namespace marenv::calc
Definition DepthAxis.h:38
Definition DepthProfile.h:28
Status Evaluate(double z, double &value) const
const DepthAxis & Axis() const
The depth axis.
Definition DepthProfile.h:46
const std::vector< double > & Values() const
The value at each layer.
Definition DepthProfile.h:49
DepthProfile(std::vector< double > depths, std::vector< double > values)
Status
Definition marenv.h:40