WarpX
Loading...
Searching...
No Matches
InjectorDensityFromFile Struct Reference

#include <InjectorDensity.H>

Public Member Functions

 InjectorDensityFromFile (std::string const &a_file_name, amrex::Geometry const &a_geom, bool a_distributed)
 
void clear ()
 
void prepare (amrex::BoxArray const &grids, amrex::DistributionMapping const &dmap, amrex::IntVect const &ngrow, std::function< amrex::Real(amrex::Real)> const &get_zlab)
 
void prepare (amrex::RealBox const &pbox, int moving_dir, int moving_sign, std::function< amrex::Real(amrex::Real)> const &get_zlab)
 
void prepare (int li)
 
bool distributed () const
 
AMREX_GPU_HOST_DEVICE amrex::Real getDensity (amrex::Real x, amrex::Real y, amrex::Real z) const noexcept
 

Private Attributes

ExternalFieldView m_external_field_view
 
ExternalFieldReaderm_external_field_reader = nullptr
 

Constructor & Destructor Documentation

◆ InjectorDensityFromFile()

InjectorDensityFromFile::InjectorDensityFromFile ( std::string const & a_file_name,
amrex::Geometry const & a_geom,
bool a_distributed )

Member Function Documentation

◆ clear()

void InjectorDensityFromFile::clear ( )

◆ distributed()

bool InjectorDensityFromFile::distributed ( ) const
nodiscard

◆ getDensity()

AMREX_GPU_HOST_DEVICE amrex::Real InjectorDensityFromFile::getDensity ( amrex::Real x,
amrex::Real y,
amrex::Real z ) const
inlinenodiscardnoexcept

◆ prepare() [1/3]

void InjectorDensityFromFile::prepare ( amrex::BoxArray const & grids,
amrex::DistributionMapping const & dmap,
amrex::IntVect const & ngrow,
std::function< amrex::Real(amrex::Real)> const & get_zlab )

◆ prepare() [2/3]

void InjectorDensityFromFile::prepare ( amrex::RealBox const & pbox,
int moving_dir,
int moving_sign,
std::function< amrex::Real(amrex::Real)> const & get_zlab )

◆ prepare() [3/3]

void InjectorDensityFromFile::prepare ( int li)

Member Data Documentation

◆ m_external_field_reader

ExternalFieldReader* InjectorDensityFromFile::m_external_field_reader = nullptr
private

◆ m_external_field_view

ExternalFieldView InjectorDensityFromFile::m_external_field_view
private

The documentation for this struct was generated from the following files: