#include <ABLBoundaryPlane.H>
|
static void | impl_buffer_field (const amrex::Box &, const int, const int, const amrex::GpuArray< int, 2 > &, const amrex::IntVect &, const amrex::Array4< const amrex::Real > &, amrex::Gpu::ManagedVector< amrex::Real > &) |
|
Interface for ABL boundary plane I/O
This class performs the necessary file operations to read and write boundary planes.
- See also
- ABLFillInflow
◆ ABLBoundaryPlane()
amr_wind::ABLBoundaryPlane::ABLBoundaryPlane |
( |
CFDSim & | sim | ) |
|
|
explicit |
◆ boundary_native_file_levels()
int amr_wind::ABLBoundaryPlane::boundary_native_file_levels |
( |
| ) |
const |
|
private |
◆ box_intersects_boundary()
bool amr_wind::ABLBoundaryPlane::box_intersects_boundary |
( |
const amrex::Box & | bx, |
|
|
const int | lev, |
|
|
const amrex::Orientation | ori ) const |
True if box intersects the boundary.
◆ impl_buffer_field()
void amr_wind::ABLBoundaryPlane::impl_buffer_field |
( |
const amrex::Box & | bx, |
|
|
const int | n1, |
|
|
const int | nc, |
|
|
const amrex::GpuArray< int, 2 > & | perp, |
|
|
const amrex::IntVect & | v_offset, |
|
|
const amrex::Array4< const amrex::Real > & | fld, |
|
|
amrex::Gpu::ManagedVector< amrex::Real > & | buffer ) |
|
static |
◆ initialize_data()
void amr_wind::ABLBoundaryPlane::initialize_data |
( |
| ) |
|
◆ is_data_newer_than()
bool amr_wind::ABLBoundaryPlane::is_data_newer_than |
( |
const amrex::Real | time | ) |
const |
|
inline |
◆ is_initialized()
bool amr_wind::ABLBoundaryPlane::is_initialized |
( |
| ) |
const |
|
inline |
◆ mode()
io_mode amr_wind::ABLBoundaryPlane::mode |
( |
| ) |
const |
|
inline |
◆ populate_data()
void amr_wind::ABLBoundaryPlane::populate_data |
( |
const int | lev, |
|
|
const amrex::Real | time, |
|
|
Field & | fld, |
|
|
amrex::MultiFab & | mfab, |
|
|
const int | dcomp = 0, |
|
|
const int | orig_comp = 0 ) const |
◆ post_advance_work()
void amr_wind::ABLBoundaryPlane::post_advance_work |
( |
| ) |
|
◆ post_init_actions()
void amr_wind::ABLBoundaryPlane::post_init_actions |
( |
| ) |
|
Execute initialization actions after mesh has been fully generated.
◆ pre_advance_work()
void amr_wind::ABLBoundaryPlane::pre_advance_work |
( |
| ) |
|
◆ pre_predictor_work()
void amr_wind::ABLBoundaryPlane::pre_predictor_work |
( |
| ) |
|
◆ read_bndry_native_boxarrays()
amrex::Vector< amrex::BoxArray > amr_wind::ABLBoundaryPlane::read_bndry_native_boxarrays |
( |
const std::string & | chkname, |
|
|
const Field & | field ) const |
◆ read_file()
void amr_wind::ABLBoundaryPlane::read_file |
( |
const bool | nph_target_time | ) |
|
◆ read_header()
void amr_wind::ABLBoundaryPlane::read_header |
( |
| ) |
|
◆ write_bndry_native_header()
void amr_wind::ABLBoundaryPlane::write_bndry_native_header |
( |
const std::string & | chkname | ) |
|
◆ write_data()
void amr_wind::ABLBoundaryPlane::write_data |
( |
const ncutils::NCGroup & | grp, |
|
|
const amrex::Orientation | ori, |
|
|
const int | lev, |
|
|
const Field * | fld ) |
|
private |
◆ write_file()
void amr_wind::ABLBoundaryPlane::write_file |
( |
| ) |
|
◆ write_header()
void amr_wind::ABLBoundaryPlane::write_header |
( |
| ) |
|
◆ m_extent_rad
const int amr_wind::ABLBoundaryPlane::m_extent_rad = 0 |
|
private |
◆ m_fields
amrex::Vector<Field*> amr_wind::ABLBoundaryPlane::m_fields |
|
private |
◆ m_filename
std::string amr_wind::ABLBoundaryPlane::m_filename |
|
private |
◆ m_in_data
InletData amr_wind::ABLBoundaryPlane::m_in_data |
|
private |
◆ m_in_rad
const int amr_wind::ABLBoundaryPlane::m_in_rad = 1 |
|
private |
controls extents on native bndry output
◆ m_in_times
amrex::Vector<amrex::Real> amr_wind::ABLBoundaryPlane::m_in_times |
|
private |
◆ m_in_timesteps
amrex::Vector<int> amr_wind::ABLBoundaryPlane::m_in_timesteps |
|
private |
◆ m_io_mode
◆ m_is_initialized
bool amr_wind::ABLBoundaryPlane::m_is_initialized {false} |
|
private |
Flag indicating if this capability is available.
◆ m_mesh
const amrex::AmrCore& amr_wind::ABLBoundaryPlane::m_mesh |
|
private |
◆ m_out_counter
size_t amr_wind::ABLBoundaryPlane::m_out_counter {0} |
|
private |
NetCDF time output counter.
◆ m_out_fmt
std::string amr_wind::ABLBoundaryPlane::m_out_fmt {"native"} |
|
private |
output format for bndry output
◆ m_out_rad
const int amr_wind::ABLBoundaryPlane::m_out_rad = 1 |
|
private |
◆ m_out_start_time
amrex::Real amr_wind::ABLBoundaryPlane::m_out_start_time {0.0} |
|
private |
Start outputting after this time.
◆ m_plane_names
amrex::Vector<std::string> amr_wind::ABLBoundaryPlane::m_plane_names |
|
private |
Initial value:{"xlo", "ylo", "zlo",
"xhi", "yhi", "zhi"}
Plane names.
◆ m_planes
amrex::Vector<std::string> amr_wind::ABLBoundaryPlane::m_planes |
|
private |
◆ m_repo
const FieldRepo& amr_wind::ABLBoundaryPlane::m_repo |
|
private |
◆ m_time
◆ m_time_file
std::string amr_wind::ABLBoundaryPlane::m_time_file |
|
private |
File name for Native time file.
◆ m_title
std::string amr_wind::ABLBoundaryPlane::m_title {"ABL boundary planes"} |
|
private |
◆ m_var_names
amrex::Vector<std::string> amr_wind::ABLBoundaryPlane::m_var_names |
|
private |
◆ m_write_frequency
int amr_wind::ABLBoundaryPlane::m_write_frequency {1} |
|
private |
Normal direction for the boundary plane.
The documentation for this class was generated from the following files: