Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::FaceLinear Class Reference

Piecewise constant tangential interpolation / linear normal interpolation of face data. More...

#include <AMReX_Interpolater.H>

Inheritance diagram for amrex::FaceLinear:
amrex::Interpolater amrex::InterpBase

Public Member Functions

Box CoarseBox (const Box &fine, int ratio) override
 Returns coarsened box given fine box and refinement ratio.
Box CoarseBox (const Box &fine, const IntVect &ratio) override
 Returns coarsened box given fine box and refinement ratio.
void interp (const FArrayBox &crse, int crse_comp, FArrayBox &fine, int fine_comp, int ncomp, const Box &fine_region, const IntVect &ratio, const Geometry &crse_geom, const Geometry &fine_geom, Vector< BCRec > const &bcr, int actual_comp, int actual_state, RunOn runon) override
 Coarse to fine interpolation in space.
void interp_face (const FArrayBox &crse, int crse_comp, FArrayBox &fine, int fine_comp, int ncomp, const Box &fine_region, const IntVect &ratio, const IArrayBox &solve_mask, const Geometry &crse_geom, const Geometry &fine_geom, Vector< BCRec > const &bcr, int bccomp, RunOn runon) override
 Coarse to fine interpolation in space for face-based data.
void interp_arr (Array< FArrayBox *, 3 > const &crse, int crse_comp, Array< FArrayBox *, 3 > const &fine, int fine_comp, int ncomp, const Box &fine_region, const IntVect &ratio, Array< IArrayBox *, 3 > const &solve_mask, const Geometry &, const Geometry &, Vector< Array< BCRec, 3 > > const &, int, int, RunOn runon) override
 Coarse to fine interpolation in space.
Public Member Functions inherited from amrex::Interpolater
virtual void protect (const FArrayBox &, int, FArrayBox &, int, FArrayBox &, int, int, const Box &, const IntVect &, const Geometry &, const Geometry &, Vector< BCRec > &, RunOn)
 Optional limiter hook that reprojects fine data to avoid undershoot/overshoot.
Public Member Functions inherited from amrex::InterpBase
 InterpBase ()=default
virtual ~InterpBase ()=default
 InterpBase (InterpBase const &) noexcept=default
 InterpBase (InterpBase &&) noexcept=default
InterpBase & operator= (InterpBase const &) noexcept=default
InterpBase & operator= (InterpBase &&) noexcept=default
InterpolaterBoxCoarsener BoxCoarsener (const IntVect &ratio)
 Convenience helper that returns a BoxConverter bound to this interpolater.

Additional Inherited Members

Static Public Member Functions inherited from amrex::InterpBase
static Vector< int > GetBCArray (const Vector< BCRec > &bcr)
 Convert BCRec entries to an integer array that interpolaters can consume.

Detailed Description

Piecewise constant tangential interpolation / linear normal interpolation of face data.

Piecewise constant tangential interpolation / linear normal interpolation of face data.

Member Function Documentation

◆ CoarseBox() [1/2]

Box amrex::FaceLinear::CoarseBox ( const Box & fine,
const IntVect & ratio )
overridevirtual

Returns coarsened box given fine box and refinement ratio.

Parameters
fine
ratio

Implements amrex::InterpBase.

◆ CoarseBox() [2/2]

Box amrex::FaceLinear::CoarseBox ( const Box & fine,
int ratio )
overridevirtual

Returns coarsened box given fine box and refinement ratio.

Parameters
fine
ratio

Implements amrex::InterpBase.

◆ interp()

void amrex::FaceLinear::interp ( const FArrayBox & crse,
int crse_comp,
FArrayBox & fine,
int fine_comp,
int ncomp,
const Box & fine_region,
const IntVect & ratio,
const Geometry & crse_geom,
const Geometry & fine_geom,
Vector< BCRec > const & bcr,
int actual_comp,
int actual_state,
RunOn runon )
overridevirtual

Coarse to fine interpolation in space.

Parameters
crse
crse_comp
fine
fine_comp
ncomp
fine_region
ratio
crse_geom
fine_geom
bcr
actual_comp
actual_state
runon

Implements amrex::Interpolater.

◆ interp_arr()

void amrex::FaceLinear::interp_arr ( Array< FArrayBox *, 3 > const & crse,
int crse_comp,
Array< FArrayBox *, 3 > const & fine,
int fine_comp,
int ncomp,
const Box & fine_region,
const IntVect & ratio,
Array< IArrayBox *, 3 > const & solve_mask,
const Geometry & ,
const Geometry & ,
Vector< Array< BCRec, 3 > > const & ,
int ,
int ,
RunOn runon )
overridevirtual

Coarse to fine interpolation in space.

Parameters
crse
crse_comp
fine
fine_comp
ncomp
fine_region
ratio
solve_mask
runon

Reimplemented from amrex::Interpolater.

◆ interp_face()

void amrex::FaceLinear::interp_face ( const FArrayBox & crse,
int crse_comp,
FArrayBox & fine,
int fine_comp,
int ncomp,
const Box & fine_region,
const IntVect & ratio,
const IArrayBox & solve_mask,
const Geometry & crse_geom,
const Geometry & fine_geom,
Vector< BCRec > const & bcr,
int bccomp,
RunOn runon )
overridevirtual

Coarse to fine interpolation in space for face-based data.

Parameters
crse
crse_comp
fine
fine_comp
ncomp
fine_region
ratio
solve_mask
crse_geom
fine_geom
bcr
bccomp
runon

Reimplemented from amrex::Interpolater.


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