FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CurrentField3DArray.h
1#pragma once
3
4#include <marenv/calc/DepthAxis.h>
5#include <marenv/current/CurrentField.h>
6
7#include <vector>
8
9namespace marenv::current
10{
28{
29public:
44 CurrentField3DArray(std::vector<double> velocityX,
45 std::vector<double> velocityY,
46 std::vector<double> velocityZ,
47 int numX,
48 int numY,
49 int numZ,
50 std::vector<double> depthZ,
51 double lengthX,
52 double lengthY);
53
66 Status GetCurrent(double time,
67 const double position[3],
68 double currentVelocity[3]) override;
69
70private:
71 std::vector<double> vx;
72 std::vector<double> vy;
73 std::vector<double> vz;
74 int nx;
75 int ny;
76 int nz;
77 calc::DepthAxis depthAxis;
78 double dx;
79 double dy;
80 double lx;
81 double ly;
82};
83} // namespace marenv::current
Definition DepthAxis.h:38
Definition CurrentField3DArray.h:28
CurrentField3DArray(std::vector< double > velocityX, std::vector< double > velocityY, std::vector< double > velocityZ, int numX, int numY, int numZ, std::vector< double > depthZ, double lengthX, double lengthY)
Status GetCurrent(double time, const double position[3], double currentVelocity[3]) override
Defines the interface for an relaying information about ocean currents.
Definition CurrentField.h:13
Status
Definition marenv.h:40