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
65 Status GetCurrent(double time,
66 const double position[3],
67 double currentVelocity[3]) override;
68
69private:
70 std::vector<double> vx;
71 std::vector<double> vy;
72 std::vector<double> vz;
73 int nx;
74 int ny;
75 int nz;
76 calc::DepthAxis depthAxis;
77 double dx;
78 double dy;
79 double lx;
80 double ly;
81};
82} // 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