FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
EnvironmentConfig.h
1#pragma once
2
8#include "seafloorForces/SeafloorForces.h"
9
10#include <fhsim/simobject/ISimObjectCreator.h>
11#include <marenv/field/ScalarField.h>
12#include <marenv/current/CurrentField.h>
13#include <marenv/seafloor/BathymetryField.h>
14#include <marenv/seafloor/BathymetryWaves.h>
15#include <marenv/wave/WaveField.h>
16#include <memory>
17#include <string>
18#include <vector>
19
20namespace environment
21{
26bool IsRandomSeedKeyword(const std::string& text);
27
32int SeedFromClock(long long clockCount);
33
40{
46 explicit EnvironmentConfig(ISimObjectCreator* creator);
47
49 int randomSeed = 1;
51 std::shared_ptr<marenv::wave::WaveField> waves;
53 std::shared_ptr<marenv::seafloor::BathymetryWaves> bathymetry;
55 std::shared_ptr<marenv::seafloor::BathymetryField> seafloor;
57 std::shared_ptr<marenv::current::CurrentField> currents;
59 std::vector<std::shared_ptr<marenv::field::ScalarField>> scalarFields;
61 std::shared_ptr<environment::SeafloorForces> seafloorForces;
62};
63} // namespace environment
Definition FlukeAnchor.h:124
int SeedFromClock(long long clockCount)
bool IsRandomSeedKeyword(const std::string &text)
Definition EnvironmentConfig.h:40
EnvironmentConfig(ISimObjectCreator *creator)
std::shared_ptr< environment::SeafloorForces > seafloorForces
Seafloor forces.
Definition EnvironmentConfig.h:61
std::shared_ptr< marenv::wave::WaveField > waves
Wave field.
Definition EnvironmentConfig.h:51
std::shared_ptr< marenv::seafloor::BathymetryWaves > bathymetry
Sum-of-sines bathymetry (also the seabed for the "SumOfSines" model, and the GPU seabed of the visual...
Definition EnvironmentConfig.h:53
int randomSeed
Random seed (RandomSeed, a number or "random", default 1): decides the wave-component phases and the ...
Definition EnvironmentConfig.h:49
std::shared_ptr< marenv::current::CurrentField > currents
Current field.
Definition EnvironmentConfig.h:57
std::shared_ptr< marenv::seafloor::BathymetryField > seafloor
Active seabed used for physics queries (may be sum-of-sines or another model).
Definition EnvironmentConfig.h:55
std::vector< std::shared_ptr< marenv::field::ScalarField > > scalarFields
Named scalar fields (temperature, salinity, species concentration). Empty when none are configured.
Definition EnvironmentConfig.h:59