/home/runner/work/amr-wind/amr-wind/amr-wind/ocean_waves/relaxation_zones/stokes_waves_ops.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
stokes_waves_ops.H
Go to the documentation of this file.
Definition Field.H:116
FieldRepo & repo() const
FieldRepo instance that manages this field.
Definition Field.H:159
Field & get_field(const std::string &name, const FieldState fstate=FieldState::New) const
Definition FieldRepo.cpp:149
int num_active_levels() const noexcept
Total number of levels currently active in the AMR mesh.
Definition FieldRepo.H:361
Definition OceanWavesTypes.H:59
OceanWavesTrait::MetaType & meta()
Definition OceanWavesTypes.H:89
OceanWavesTrait::InfoType & info()
Definition OceanWavesTypes.H:86
static constexpr amrex::Real TIGHT_TOL
A tight tolerance.
Definition constants.H:19
Definition OceanWavesOps.H:8
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void stokes_waves(int stokes_order, amrex::Real wavelength, amrex::Real water_depth, amrex::Real wave_height, amrex::Real zsl, amrex::Real g, amrex::Real x, amrex::Real z, amrex::Real time, amrex::Real phase_offset, amrex::Real &eta, amrex::Real &u_w, amrex::Real &v_w, amrex::Real &w_w)
Definition stokes_waves_K.H:254
void read_inputs(RelaxZonesBaseData &wdata, OceanWavesInfo &, const ::amr_wind::utils::MultiParser &pp)
Definition relaxation_zones_ops.cpp:15
AMREX_FORCE_INLINE amrex::Real stokes_wave_length(const amrex::Real T, const amrex::Real d, const amrex::Real H, const int order, const amrex::Real g, const amrex::Real tol, const int iter_max)
Definition stokes_waves_K.H:23
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE WaveVec harmonize_profiles_1d(const amrex::Real x, const amrex::Real left_bdy, const amrex::Real left_length, const amrex::Real right_bdy, const amrex::Real right_length, const WaveVec left, const WaveVec bulk, const WaveVec right)
Definition wave_utils_K.H:67
amrex::GpuArray< amrex::Real, 4 > WaveVec
Definition wave_utils_K.H:9
Definition StokesWaves.H:17
void operator()(StokesWaves::DataType &data, int level, const amrex::Geometry &geom, bool multiphase_mode)
Definition stokes_waves_ops.H:92
Definition OceanWavesOps.H:14
void operator()(StokesWaves::DataType &data, const ::amr_wind::utils::MultiParser &pp)
Definition stokes_waves_ops.H:16
Definition OceanWavesOps.H:11
void operator()(StokesWaves::DataType &data, const amrex::Real time)
Definition stokes_waves_ops.H:172
Definition OceanWavesOps.H:17
Generated by