FieldFillConstScalar Class Reference

AMR-Wind API: amr_wind::FieldFillConstScalar Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <FieldFillPatchOps.H>

Inheritance diagram for amr_wind::FieldFillConstScalar:
[legend]
Collaboration diagram for amr_wind::FieldFillConstScalar:
[legend]

Public Member Functions

 FieldFillConstScalar (Field &, amrex::Real fill_val)
 
void fillpatch (int, amrex::Real, amrex::MultiFab &mfab, const amrex::IntVect &, const FieldState) override
 
void fillpatch_sibling_fields (int, amrex::Real, amrex::Array< amrex::MultiFab *, AMREX_SPACEDIM > &mfabs, amrex::Array< amrex::MultiFab *, AMREX_SPACEDIM > &, amrex::Array< amrex::MultiFab *, AMREX_SPACEDIM > &, const amrex::IntVect &, const amrex::Vector< amrex::BCRec > &, const amrex::Vector< amrex::BCRec > &, const FieldState) override
 
void fillpatch_from_coarse (int, amrex::Real, amrex::MultiFab &mfab, const amrex::IntVect &, const FieldState) override
 Implementation that handles filling patches from a coarse to fine level.
 
void fillphysbc (int, amrex::Real, amrex::MultiFab &mfab, const amrex::IntVect &, const FieldState) override
 Implementation that handles filling physical boundary conditions.
 
void set_inflow (int, amrex::Real, amrex::MultiFab &, const amrex::IntVect &, const FieldState) override
 
- Public Member Functions inherited from amr_wind::FieldFillPatchOpsBase
 FieldFillPatchOpsBase ()=default
 
virtual ~FieldFillPatchOpsBase ()=default
 
virtual void set_inflow_sibling_fields (const int lev, const amrex::Real time, amrex::Array< amrex::MultiFab *, AMREX_SPACEDIM > mfabs)=0
 

Private Attributes

amrex::Real m_fill_val
 

Detailed Description

Implementation that just fills a constant value on newly created grids

Constructor & Destructor Documentation

◆ FieldFillConstScalar()

amr_wind::FieldFillConstScalar::FieldFillConstScalar ( Field & ,
amrex::Real fill_val )
inline

Member Function Documentation

◆ fillpatch()

void amr_wind::FieldFillConstScalar::fillpatch ( int lev,
amrex::Real time,
amrex::MultiFab & mfab,
const amrex::IntVect & nghost,
const FieldState fstate )
inlineoverridevirtual

Implementation that handles filling patches on a single level as well as across a coarse-fine interface.

Implements amr_wind::FieldFillPatchOpsBase.

◆ fillpatch_from_coarse()

void amr_wind::FieldFillConstScalar::fillpatch_from_coarse ( int lev,
amrex::Real time,
amrex::MultiFab & mfab,
const amrex::IntVect & nghost,
const FieldState fstate )
inlineoverridevirtual

Implementation that handles filling patches from a coarse to fine level.

Implements amr_wind::FieldFillPatchOpsBase.

◆ fillpatch_sibling_fields()

void amr_wind::FieldFillConstScalar::fillpatch_sibling_fields ( int lev,
amrex::Real time,
amrex::Array< amrex::MultiFab *, AMREX_SPACEDIM > & mfabs,
amrex::Array< amrex::MultiFab *, AMREX_SPACEDIM > & ffabs,
amrex::Array< amrex::MultiFab *, AMREX_SPACEDIM > & cfabs,
const amrex::IntVect & nghost,
const amrex::Vector< amrex::BCRec > & fillpatch_bcrec,
const amrex::Vector< amrex::BCRec > & physbc_bcrec,
const FieldState fstate )
inlineoverridevirtual

Implementation that handles filling patches on a single level as well as across a coarse-fine interface, for an array of different fields

Implements amr_wind::FieldFillPatchOpsBase.

◆ fillphysbc()

void amr_wind::FieldFillConstScalar::fillphysbc ( int lev,
amrex::Real time,
amrex::MultiFab & mfab,
const amrex::IntVect & nghost,
const FieldState fstate )
inlineoverridevirtual

Implementation that handles filling physical boundary conditions.

Implements amr_wind::FieldFillPatchOpsBase.

◆ set_inflow()

void amr_wind::FieldFillConstScalar::set_inflow ( int ,
amrex::Real ,
amrex::MultiFab & ,
const amrex::IntVect & ,
const FieldState  )
inlineoverridevirtual

Member Data Documentation

◆ m_fill_val

amrex::Real amr_wind::FieldFillConstScalar::m_fill_val
private

The documentation for this class was generated from the following file: