#include <BoundaryPlane.H>
|
| | BoundaryPlane (CFDSim &) |
| void | post_init_actions () override |
| void | pre_advance_work () override |
| void | post_advance_work () override |
| void | pre_predictor_work () override |
| void | set_velocity (int lev, amrex::Real time, const Field &fld, amrex::MultiFab &mfab, int dcomp=0, int orig_comp=0) const override |
| void | pre_advance_inner_calls () |
| void | initialize_data () |
| void | write_header () |
| void | write_bndry_native_header (const std::string &chkname) |
| void | write_file () |
| void | read_header () |
| amrex::Vector< amrex::BoxArray > | read_bndry_native_boxarrays (const std::string &chkname, const Field &field) const |
| void | read_file (bool) |
| void | populate_data (int, amrex::Real, const Field &, amrex::MultiFab &, int dcomp=0, int orig_comp=0) const |
| bool | box_intersects_boundary (const amrex::Box &, int, amrex::Orientation) const |
| | True if box intersects the boundary.
|
| bool | is_data_newer_than (const amrex::Real time) const |
| io_mode | mode () const |
| MultiBlockContainer * | mbc () |
|
| static std::string | identifier () |
| 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
- PlaneFillInflow
◆ BoundaryPlane()
| amr_wind::BoundaryPlane::BoundaryPlane |
( |
CFDSim & | sim | ) |
|
|
explicit |
◆ boundary_native_file_levels()
| int amr_wind::BoundaryPlane::boundary_native_file_levels |
( |
| ) |
const |
|
nodiscardprivate |
◆ box_intersects_boundary()
| bool amr_wind::BoundaryPlane::box_intersects_boundary |
( |
const amrex::Box & | bx, |
|
|
int | lev, |
|
|
amrex::Orientation | ori ) const |
|
nodiscard |
True if box intersects the boundary.
◆ identifier()
| std::string amr_wind::BoundaryPlane::identifier |
( |
| ) |
|
|
inlinestatic |
◆ impl_buffer_field()
| void amr_wind::BoundaryPlane::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::BoundaryPlane::initialize_data |
( |
| ) |
|
◆ is_data_newer_than()
| bool amr_wind::BoundaryPlane::is_data_newer_than |
( |
const amrex::Real | time | ) |
const |
|
inlinenodiscard |
◆ mbc()
| MultiBlockContainer * amr_wind::BoundaryPlane::mbc |
( |
| ) |
|
|
inline |
◆ mode()
| io_mode amr_wind::BoundaryPlane::mode |
( |
| ) |
const |
|
inlinenodiscard |
◆ populate_data()
| void amr_wind::BoundaryPlane::populate_data |
( |
int | lev, |
|
|
amrex::Real | time, |
|
|
const Field & | fld, |
|
|
amrex::MultiFab & | mfab, |
|
|
int | dcomp = 0, |
|
|
int | orig_comp = 0 ) const |
◆ post_advance_work()
| void amr_wind::BoundaryPlane::post_advance_work |
( |
| ) |
|
|
override |
◆ post_init_actions()
| void amr_wind::BoundaryPlane::post_init_actions |
( |
| ) |
|
|
override |
◆ pre_advance_inner_calls()
| void amr_wind::BoundaryPlane::pre_advance_inner_calls |
( |
| ) |
|
◆ pre_advance_work()
| void amr_wind::BoundaryPlane::pre_advance_work |
( |
| ) |
|
|
override |
◆ pre_predictor_work()
| void amr_wind::BoundaryPlane::pre_predictor_work |
( |
| ) |
|
|
override |
◆ read_bndry_native_boxarrays()
| amrex::Vector< amrex::BoxArray > amr_wind::BoundaryPlane::read_bndry_native_boxarrays |
( |
const std::string & | chkname, |
|
|
const Field & | field ) const |
|
nodiscard |
◆ read_file()
| void amr_wind::BoundaryPlane::read_file |
( |
bool | nph_target_time | ) |
|
◆ read_header()
| void amr_wind::BoundaryPlane::read_header |
( |
| ) |
|
◆ set_velocity()
| void amr_wind::BoundaryPlane::set_velocity |
( |
int | lev, |
|
|
amrex::Real | time, |
|
|
const Field & | fld, |
|
|
amrex::MultiFab & | mfab, |
|
|
int | dcomp = 0, |
|
|
int | orig_comp = 0 ) const |
|
override |
◆ write_bndry_native_header()
| void amr_wind::BoundaryPlane::write_bndry_native_header |
( |
const std::string & | chkname | ) |
|
◆ write_data()
| void amr_wind::BoundaryPlane::write_data |
( |
const ncutils::NCGroup & | grp, |
|
|
const amrex::Orientation | ori, |
|
|
const int | lev, |
|
|
const Field * | fld ) |
|
private |
◆ write_file()
| void amr_wind::BoundaryPlane::write_file |
( |
| ) |
|
◆ write_header()
| void amr_wind::BoundaryPlane::write_header |
( |
| ) |
|
◆ m_extent_rad
| const int amr_wind::BoundaryPlane::m_extent_rad = 0 |
|
private |
◆ m_fields
| amrex::Vector<Field*> amr_wind::BoundaryPlane::m_fields |
|
private |
◆ m_filename
| std::string amr_wind::BoundaryPlane::m_filename |
|
private |
◆ m_has_overset
| bool amr_wind::BoundaryPlane::m_has_overset {false} |
|
private |
Flag indicating if the simulation is overset – needed for complicated timing of pre_advance_work.
◆ m_in_data
◆ m_in_rad
| const int amr_wind::BoundaryPlane::m_in_rad = 1 |
|
private |
controls extents on native bndry output
◆ m_in_times
| amrex::Vector<amrex::Real> amr_wind::BoundaryPlane::m_in_times |
|
private |
◆ m_in_timesteps
| amrex::Vector<int> amr_wind::BoundaryPlane::m_in_timesteps |
|
private |
◆ m_io_mode
◆ m_mbc
| MultiBlockContainer** amr_wind::BoundaryPlane::m_mbc |
|
private |
◆ m_mesh
| const amrex::AmrCore& amr_wind::BoundaryPlane::m_mesh |
|
private |
◆ m_out_counter
| size_t amr_wind::BoundaryPlane::m_out_counter {0} |
|
private |
NetCDF time output counter.
◆ m_out_fmt
| std::string amr_wind::BoundaryPlane::m_out_fmt {"native"} |
|
private |
output format for bndry output
◆ m_out_rad
| const int amr_wind::BoundaryPlane::m_out_rad = 1 |
|
private |
◆ m_out_start_time
| amrex::Real amr_wind::BoundaryPlane::m_out_start_time {0.0_rt} |
|
private |
Start outputting after this time.
◆ m_plane_names
| amrex::Vector<std::string> amr_wind::BoundaryPlane::m_plane_names |
|
private |
Initial value:{"xlo", "ylo", "zlo",
"xhi", "yhi", "zhi"}
Plane names.
◆ m_planes
| amrex::Vector<std::string> amr_wind::BoundaryPlane::m_planes |
|
private |
◆ m_read_erf
◆ m_repo
| const FieldRepo& amr_wind::BoundaryPlane::m_repo |
|
private |
◆ m_time
◆ m_time_file
| std::string amr_wind::BoundaryPlane::m_time_file |
|
private |
File name for Native time file.
◆ m_title
| std::string amr_wind::BoundaryPlane::m_title {"ABL boundary planes"} |
|
private |
◆ m_var_names
| amrex::Vector<std::string> amr_wind::BoundaryPlane::m_var_names |
|
private |
◆ m_write_frequency
| int amr_wind::BoundaryPlane::m_write_frequency {1} |
|
private |
Normal direction for the boundary plane.
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/boundary_conditions/field_boundary_fill/BoundaryPlane.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/boundary_conditions/field_boundary_fill/BoundaryPlane.cpp