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 stokes_order, amrex::Real wavenumber, amrex::Real water_depth, amrex::Real &c0, amrex::Real &a11, amrex::Real &a22, amrex::Real &b22, amrex::Real &c2, 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 &a51, amrex::Real &a53, amrex::Real &a55, amrex::Real &b53, amrex::Real &b55) |
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) |
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
◆ 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 ) |
◆ 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 | stokes_order, |
amrex::Real | wavenumber, | ||
amrex::Real | water_depth, | ||
amrex::Real & | c0, | ||
amrex::Real & | a11, | ||
amrex::Real & | a22, | ||
amrex::Real & | b22, | ||
amrex::Real & | c2, | ||
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 & | a51, | ||
amrex::Real & | a53, | ||
amrex::Real & | a55, | ||
amrex::Real & | b53, | ||
amrex::Real & | b55 ) |
◆ 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 | 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 ) |
◆ 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