relaxation_zones Namespace Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
amr_wind::ocean_waves::relaxation_zones Namespace Reference
Functions | |
void | read_inputs (RelaxZonesBaseData &wdata, OceanWavesInfo &, const ::amr_wind::utils::MultiParser &pp) |
void | init_data_structures (RelaxZonesBaseData &) |
void | apply_relaxation_zones (CFDSim &sim, const RelaxZonesBaseData &wdata) |
void | prepare_netcdf_file (const std::string &ncfile, const RelaxZonesBaseData &meta, const OceanWavesInfo &info) |
void | write_netcdf (const std::string &ncfile, const RelaxZonesBaseData &meta, const OceanWavesInfo &info, const amrex::Real time) |
void | init_data_structures (CFDSim &) |
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) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | stokes_coefficients (int StokesOrder, amrex::Real wavenumber, amrex::Real waterdepth, amrex::Real &c0, amrex::Real &a11, amrex::Real &a22, amrex::Real &b22, amrex::Real &c2, amrex::Real &d2, amrex::Real &e2, amrex::Real &a31, amrex::Real &a33, amrex::Real &b31, amrex::Real &a42, amrex::Real &a44, amrex::Real &b42, amrex::Real &b44, amrex::Real &c4, amrex::Real &d4, amrex::Real &e4, amrex::Real &a51, amrex::Real &a53, amrex::Real &a55, amrex::Real &b53, amrex::Real &b55) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | stokes_sinh_sin (int m, int n, amrex::Real phase, amrex::Real a11, amrex::Real a22, amrex::Real a31, amrex::Real a33, amrex::Real a42, amrex::Real a44, amrex::Real a51, amrex::Real a53, amrex::Real a55, amrex::Real eps, amrex::Real wavenumber, amrex::Real waterdepth, amrex::Real zsl, amrex::Real z) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | stokes_cosh_cos (int m, int n, amrex::Real phase, amrex::Real a11, amrex::Real a22, amrex::Real a31, amrex::Real a33, amrex::Real a42, amrex::Real a44, amrex::Real a51, amrex::Real a53, amrex::Real a55, amrex::Real eps, amrex::Real wavenumber, amrex::Real waterdepth, amrex::Real zsl, amrex::Real z) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | stokes_waves (int StokesOrder, amrex::Real wavelength, amrex::Real waterdepth, amrex::Real waveheight, amrex::Real zsl, amrex::Real g, amrex::Real x, amrex::Real z, amrex::Real time, amrex::Real &eta, amrex::Real &u_w, amrex::Real &v_w, amrex::Real &w_w) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | free_surface_to_vof (amrex::Real eta, amrex::Real z, amrex::Real dz) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | Gamma_generate (amrex::Real x, amrex::Real gen_length) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | Gamma_absorb (amrex::Real x, amrex::Real absorb_length, amrex::Real absorb_length_factor) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | ramp (amrex::Real time, amrex::Real ramp_period) |
Function Documentation
◆ apply_relaxation_zones()
void amr_wind::ocean_waves::relaxation_zones::apply_relaxation_zones | ( | CFDSim & | sim, |
const RelaxZonesBaseData & | wdata ) |
Set the free_surface height inside the relaxation zones
◆ free_surface_to_vof()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real amr_wind::ocean_waves::relaxation_zones::free_surface_to_vof | ( | amrex::Real | eta, |
amrex::Real | z, | ||
amrex::Real | dz ) |
◆ Gamma_absorb()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real amr_wind::ocean_waves::relaxation_zones::Gamma_absorb | ( | amrex::Real | x, |
amrex::Real | absorb_length, | ||
amrex::Real | absorb_length_factor ) |
◆ Gamma_generate()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real amr_wind::ocean_waves::relaxation_zones::Gamma_generate | ( | amrex::Real | x, |
amrex::Real | gen_length ) |
◆ init_data_structures() [1/2]
void amr_wind::ocean_waves::relaxation_zones::init_data_structures | ( | CFDSim & | ) |
Initialize core data structures when modeling the IB geometry
◆ init_data_structures() [2/2]
void amr_wind::ocean_waves::relaxation_zones::init_data_structures | ( | RelaxZonesBaseData & | ) |
◆ prepare_netcdf_file()
void amr_wind::ocean_waves::relaxation_zones::prepare_netcdf_file | ( | const std::string & | ncfile, |
const RelaxZonesBaseData & | meta, | ||
const OceanWavesInfo & | info ) |
◆ ramp()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real amr_wind::ocean_waves::relaxation_zones::ramp | ( | amrex::Real | time, |
amrex::Real | ramp_period ) |
◆ read_inputs()
void amr_wind::ocean_waves::relaxation_zones::read_inputs | ( | RelaxZonesBaseData & | , |
OceanWavesInfo & | , | ||
const ::amr_wind::utils::MultiParser & | ) |
Parse common data for modeling relaxation zones
◆ stokes_coefficients()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void amr_wind::ocean_waves::relaxation_zones::stokes_coefficients | ( | int | StokesOrder, |
amrex::Real | wavenumber, | ||
amrex::Real | waterdepth, | ||
amrex::Real & | c0, | ||
amrex::Real & | a11, | ||
amrex::Real & | a22, | ||
amrex::Real & | b22, | ||
amrex::Real & | c2, | ||
amrex::Real & | d2, | ||
amrex::Real & | e2, | ||
amrex::Real & | a31, | ||
amrex::Real & | a33, | ||
amrex::Real & | b31, | ||
amrex::Real & | a42, | ||
amrex::Real & | a44, | ||
amrex::Real & | b42, | ||
amrex::Real & | b44, | ||
amrex::Real & | c4, | ||
amrex::Real & | d4, | ||
amrex::Real & | e4, | ||
amrex::Real & | a51, | ||
amrex::Real & | a53, | ||
amrex::Real & | a55, | ||
amrex::Real & | b53, | ||
amrex::Real & | b55 ) |
◆ stokes_cosh_cos()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real amr_wind::ocean_waves::relaxation_zones::stokes_cosh_cos | ( | int | m, |
int | n, | ||
amrex::Real | phase, | ||
amrex::Real | a11, | ||
amrex::Real | a22, | ||
amrex::Real | a31, | ||
amrex::Real | a33, | ||
amrex::Real | a42, | ||
amrex::Real | a44, | ||
amrex::Real | a51, | ||
amrex::Real | a53, | ||
amrex::Real | a55, | ||
amrex::Real | eps, | ||
amrex::Real | wavenumber, | ||
amrex::Real | waterdepth, | ||
amrex::Real | zsl, | ||
amrex::Real | z ) |
◆ stokes_sinh_sin()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real amr_wind::ocean_waves::relaxation_zones::stokes_sinh_sin | ( | int | m, |
int | n, | ||
amrex::Real | phase, | ||
amrex::Real | a11, | ||
amrex::Real | a22, | ||
amrex::Real | a31, | ||
amrex::Real | a33, | ||
amrex::Real | a42, | ||
amrex::Real | a44, | ||
amrex::Real | a51, | ||
amrex::Real | a53, | ||
amrex::Real | a55, | ||
amrex::Real | eps, | ||
amrex::Real | wavenumber, | ||
amrex::Real | waterdepth, | ||
amrex::Real | zsl, | ||
amrex::Real | z ) |
◆ stokes_wave_length()
AMREX_FORCE_INLINE amrex::Real amr_wind::ocean_waves::relaxation_zones::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 ) |
◆ stokes_waves()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void amr_wind::ocean_waves::relaxation_zones::stokes_waves | ( | int | StokesOrder, |
amrex::Real | wavelength, | ||
amrex::Real | waterdepth, | ||
amrex::Real | waveheight, | ||
amrex::Real | zsl, | ||
amrex::Real | g, | ||
amrex::Real | x, | ||
amrex::Real | z, | ||
amrex::Real | time, | ||
amrex::Real & | eta, | ||
amrex::Real & | u_w, | ||
amrex::Real & | v_w, | ||
amrex::Real & | w_w ) |
◆ write_netcdf()
void amr_wind::ocean_waves::relaxation_zones::write_netcdf | ( | const std::string & | ncfile, |
const RelaxZonesBaseData & | meta, | ||
const OceanWavesInfo & | info, | ||
const amrex::Real | time ) |
Generated by 1.12.0