1 #ifndef ERF_BOUNDARYPLANE_H
2 #define ERF_BOUNDARYPLANE_H
5 #include "AMReX_AmrCore.H"
6 #include <AMReX_BndryRegister.H>
22 const amrex::Real& rdOcp_in);
30 amrex::Array<amrex::Array<amrex::Real, AMREX_SPACEDIM*2>, AMREX_SPACEDIM+
NBCVAR_max> m_bc_extdir_vals);
33 amrex::Vector<std::unique_ptr<PlaneVector>>& data_to_fill,
34 amrex::Array<amrex::Array<amrex::Real, AMREX_SPACEDIM*2>, AMREX_SPACEDIM+
NBCVAR_max> m_bc_extdir_vals);
37 amrex::Vector<std::unique_ptr<PlaneVector>>&
interp_in_time (
const amrex::Real& time);
57 amrex::Vector<std::unique_ptr<PlaneVector>>
m_data_n;
#define NBCVAR_max
Definition: ERF_IndexDefines.H:29
amrex::Vector< amrex::FArrayBox > PlaneVector
Definition: ERF_NCWpsFile.H:13
Definition: ERF_ReadBndryPlanes.H:18
int ingested_q1() const
Definition: ERF_ReadBndryPlanes.H:45
int is_velocity_read
Definition: ERF_ReadBndryPlanes.H:95
ReadBndryPlanes(const amrex::Geometry &geom, const amrex::Real &rdOcp_in)
Definition: ERF_ReadBndryPlanes.cpp:140
void define_level_data(int lev)
Definition: ERF_ReadBndryPlanes.cpp:43
int is_q2_read
Definition: ERF_ReadBndryPlanes.H:101
amrex::Vector< std::unique_ptr< PlaneVector > > & interp_in_time(const amrex::Real &time)
Definition: ERF_ReadBndryPlanes.cpp:84
void read_input_files(amrex::Real time, amrex::Real dt, amrex::Array< amrex::Array< amrex::Real, AMREX_SPACEDIM *2 >, AMREX_SPACEDIM+NBCVAR_max > m_bc_extdir_vals)
Definition: ERF_ReadBndryPlanes.cpp:266
int is_theta_read
Definition: ERF_ReadBndryPlanes.H:98
std::string m_filename
File name for IO.
Definition: ERF_ReadBndryPlanes.H:75
amrex::Real m_tinterp
Time for plane at interpolation.
Definition: ERF_ReadBndryPlanes.H:69
int is_temperature_read
Definition: ERF_ReadBndryPlanes.H:97
amrex::Real m_tnp1
Definition: ERF_ReadBndryPlanes.H:53
int is_density_read
Definition: ERF_ReadBndryPlanes.H:96
amrex::Vector< std::unique_ptr< PlaneVector > > m_data_np2
Data at time m_tnp2.
Definition: ERF_ReadBndryPlanes.H:63
amrex::Vector< std::unique_ptr< PlaneVector > > m_data_interp
Data interpolated to the time requested.
Definition: ERF_ReadBndryPlanes.H:66
int ingested_scalar() const
Definition: ERF_ReadBndryPlanes.H:44
int last_file_read
Definition: ERF_ReadBndryPlanes.H:104
amrex::Real tinterp() const
Definition: ERF_ReadBndryPlanes.H:39
int is_KE_read
Definition: ERF_ReadBndryPlanes.H:102
amrex::Vector< int > m_in_timesteps
Definition: ERF_ReadBndryPlanes.H:82
const amrex::Real m_rdOcp
R_d/c_p is needed for reading boundary files.
Definition: ERF_ReadBndryPlanes.H:93
std::string m_time_file
File name for file holding timesteps and times.
Definition: ERF_ReadBndryPlanes.H:78
const int m_in_rad
controls extents on native bndry output
Definition: ERF_ReadBndryPlanes.H:88
int ingested_KE() const
Definition: ERF_ReadBndryPlanes.H:47
int ingested_velocity() const
Definition: ERF_ReadBndryPlanes.H:41
amrex::Vector< std::string > m_var_names
Variables to be read in.
Definition: ERF_ReadBndryPlanes.H:85
int is_scalar_read
Definition: ERF_ReadBndryPlanes.H:99
int is_q1_read
Definition: ERF_ReadBndryPlanes.H:100
int ingested_density() const
Definition: ERF_ReadBndryPlanes.H:43
int ingested_q2() const
Definition: ERF_ReadBndryPlanes.H:46
int ingested_theta() const
Definition: ERF_ReadBndryPlanes.H:42
void read_time_file()
Definition: ERF_ReadBndryPlanes.cpp:196
amrex::Real m_tnp2
Definition: ERF_ReadBndryPlanes.H:54
const int m_out_rad
Definition: ERF_ReadBndryPlanes.H:89
amrex::Vector< std::unique_ptr< PlaneVector > > m_data_n
Data at time m_tn.
Definition: ERF_ReadBndryPlanes.H:57
amrex::Real m_tn
The times for which we currently have data.
Definition: ERF_ReadBndryPlanes.H:52
amrex::Vector< amrex::Real > m_in_times
The timesteps / times that we read from time.dat.
Definition: ERF_ReadBndryPlanes.H:81
const int m_extent_rad
Definition: ERF_ReadBndryPlanes.H:90
amrex::Vector< std::unique_ptr< PlaneVector > > m_data_np1
Data at time m_tnp1.
Definition: ERF_ReadBndryPlanes.H:60
amrex::Geometry m_geom
Geometry at level 0.
Definition: ERF_ReadBndryPlanes.H:72
void read_file(int idx, amrex::Vector< std::unique_ptr< PlaneVector >> &data_to_fill, amrex::Array< amrex::Array< amrex::Real, AMREX_SPACEDIM *2 >, AMREX_SPACEDIM+NBCVAR_max > m_bc_extdir_vals)
Definition: ERF_ReadBndryPlanes.cpp:340