Marine systems simulation
Loading...
Searching...
No Matches
DepthVaryingCurrentField.h
1#pragma once
3
4#include <marenv/current/CurrentField.h>
5
6#include <vector>
7
8namespace marenv::current
9{
19{
20public:
28 DepthVaryingCurrentField(std::vector<double> velocity,
29 std::vector<double> directionRad,
30 std::vector<double> depthZ);
32
33 ~DepthVaryingCurrentField() override = default;
34
43 Status GetCurrent(double time,
44 const double position[3],
45 double currentVelocity[3]) override;
46
47private:
48 std::vector<double> m_v;
49 std::vector<double> m_rad;
50 std::vector<double> m_cosRad;
51 std::vector<double> m_sinRad;
52 std::vector<double> m_dz;
53 double m_lz;
54};
55} // namespace marenv::current
Defines the interface for an relaying information about ocean currents.
Definition CurrentField.h:13
Definition DepthVaryingCurrentField.h:19
Status GetCurrent(double time, const double position[3], double currentVelocity[3]) override
~DepthVaryingCurrentField() override=default
Default destructor.
DepthVaryingCurrentField(std::vector< double > velocity, std::vector< double > directionRad, std::vector< double > depthZ)
Status
Definition marenv.h:40