Class Diffusion

class Diffusion

Public Functions

Diffusion(amrex::Amr *Parent, amrex::BCRec *_phys_bc)
Parameters:
  • Parent

  • _phys_bc

~Diffusion() = default
Diffusion(const Diffusion&) = delete

Remove copy/move constructors/assignment operators.

Diffusion(Diffusion&&) = delete
Diffusion &operator=(const Diffusion&) = delete
Diffusion &operator=(Diffusion&&) = delete
void read_params()
void install_level(int level, amrex::AmrLevel *level_data, amrex::MultiFab &volume, amrex::MultiFab *area)
Parameters:
  • level

  • level_data

  • volume

  • area

void applyop(int level, amrex::MultiFab &Temperature, amrex::MultiFab &CrseTemp, amrex::MultiFab &DiffTerm, amrex::Vector<std::unique_ptr<amrex::MultiFab>> &temp_cond_coef)
Parameters:
  • level

  • Temperature

  • CrseTemp

  • DiffTerm

  • temp_cond_coef

void make_mg_bc()

Public Static Functions

static void output_job_info_params(std::ostream &jobInfoFile)
Parameters:

jobInfoFile

Protected Functions

void weight_cc(int level, amrex::MultiFab &cc)
Parameters:
  • level

  • cc

void unweight_cc(int level, amrex::MultiFab &cc)
Parameters:
  • level

  • cc

void applyop_mlmg(int level, amrex::MultiFab &Temperature, amrex::MultiFab &CrseTemp, amrex::MultiFab &DiffTerm, amrex::Vector<std::unique_ptr<amrex::MultiFab>> &temp_cond_coef)
Parameters:
  • level

  • Temperature

  • CrseTemp

  • DiffTerm

  • temp_cond_coef

Protected Attributes

amrex::Amr *parent

Pointers to amr,amrlevel.

amrex::Vector<amrex::AmrLevel*> LevelData
amrex::Vector<amrex::BoxArray> grids

BoxArray at each level

amrex::Vector<amrex::MultiFab*> volume

Volume and area fractions.

amrex::Vector<amrex::MultiFab*> area
amrex::BCRec *phys_bc
std::array<amrex::MLLinOp::BCType, AMREX_SPACEDIM> mlmg_lobc
std::array<amrex::MLLinOp::BCType, AMREX_SPACEDIM> mlmg_hibc