FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
DepthLayeredScalarField.h
1#pragma once
2
8#include <marenv/field/ScalarField.h>
9#include <string>
10#include <vector>
11
12namespace marenv::field
13{
14
37{
38public:
56 DepthLayeredScalarField(std::string name,
57 Quantity quantity,
58 std::string unit,
59 std::vector<double> depthZ,
60 std::vector<double> values,
61 std::vector<Property> properties = {});
62
64 ~DepthLayeredScalarField() override = default;
65
69 marenv::Status GetValue(double time, const double position[3], double& value) const override;
70
74 [[nodiscard]] bool IsTimeInvariant() const override { return true; }
75
79 [[nodiscard]] bool IsThreadSafe() const override { return true; }
80
81private:
83};
84
85} // namespace marenv::field
Definition DepthProfile.h:28
Definition DepthLayeredScalarField.h:37
marenv::Status GetValue(double time, const double position[3], double &value) const override
~DepthLayeredScalarField() override=default
Default destructor.
bool IsTimeInvariant() const override
Definition DepthLayeredScalarField.h:74
DepthLayeredScalarField(std::string name, Quantity quantity, std::string unit, std::vector< double > depthZ, std::vector< double > values, std::vector< Property > properties={})
bool IsThreadSafe() const override
Definition DepthLayeredScalarField.h:79
Definition ScalarField.h:81
Quantity
Definition ScalarField.h:45
Status
Definition marenv.h:44
Scalar environment fields and their static metadata.
Definition ConstantScalarField.h:16