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 <array>
8#include <vector>
9
10namespace marenv::current
11{
29{
30public:
45 CurrentField3DArray(std::vector<double> velocityX,
46 std::vector<double> velocityY,
47 std::vector<double> velocityZ,
48 int numX,
49 int numY,
50 int numZ,
51 std::vector<double> depthZ,
52 double lengthX,
53 double lengthY);
54
67 Status GetCurrent(double time,
68 const double position[3],
69 double currentVelocity[3]) override;
70
71private:
72 using Node = std::array<double, 3>;
73 std::vector<Node> nodes;
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:29
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 a field relaying information about ocean currents.
Definition CurrentField.h:13
Status
Definition marenv.h:44