#include <PiecewiseLinearFillPatchFace.H>
Collaboration diagram for PiecewiseLinearFillPatchFace:
Public Member Functions | |
PiecewiseLinearFillPatchFace () | |
~PiecewiseLinearFillPatchFace () | |
PiecewiseLinearFillPatchFace (const DisjointBoxLayout &a_fine_domain, const DisjointBoxLayout &a_coarse_domain, int a_num_comps, const Box &a_crse_problem_domain, int a_ref_ratio, int a_interp_radius) | |
PiecewiseLinearFillPatchFace (const DisjointBoxLayout &a_fine_domain, const DisjointBoxLayout &a_coarse_domain, int a_num_comps, const ProblemDomain &a_crse_problem_domain, int a_ref_ratio, int a_interp_radius) | |
void | define (const DisjointBoxLayout &a_fine_domain, const DisjointBoxLayout &a_coarse_domain, int a_num_comps, const Box &a_crse_problem_domain, int a_ref_ratio, int a_interp_radius) |
void | define (const DisjointBoxLayout &a_fine_domain, const DisjointBoxLayout &a_coarse_domain, int a_num_comps, const ProblemDomain &a_crse_problem_domain, int a_ref_ratio, int a_interp_radius) |
bool | isDefined () const |
void | fillInterp (LevelData< FluxBox > &a_fine_data, const LevelData< FluxBox > &a_old_coarse_data, const LevelData< FluxBox > &a_new_coarse_data, Real a_time_interp_coef, int a_src_comp, int a_dest_comp, int a_num_comp) |
void | printIntVectSets () const |
Protected Member Functions | |
void | timeInterp (const LevelData< FluxBox > &a_old_coarse_data, const LevelData< FluxBox > &a_new_coarse_data, Real a_time_interp_coef, int a_src_comp, int a_dest_comp, int a_num_comp) |
void | fillConstantInterp (LevelData< FluxBox > &a_fine_data, int a_src_comp, int a_dest_comp, int a_num_comp) const |
void | computeSlopes (int a_dir, int a_src_comp, int a_num_comp) |
void | incrementLinearInterpTangential (LevelData< FluxBox > &a_fine_data, int a_dir, int a_src_comp, int a_dest_comp, int a_num_comp) const |
void | incrementLinearInterpNormal (LevelData< FluxBox > &a_fine_data, int a_src_comp, int a_dest_comp, int a_num_comp) const |
Protected Attributes | |
bool | m_is_defined |
int | m_ref_ratio |
int | m_interp_radius |
LevelData< FluxBox > | m_coarsened_fine_data |
LevelData< FluxBox > | m_slopes |
ProblemDomain | m_crse_problem_domain |
LayoutData< IntVectSet > | m_fine_interp [SpaceDim] |
LayoutData< IntVectSet > | m_coarse_centered_interp [SpaceDim][SpaceDim] |
LayoutData< IntVectSet > | m_coarse_lo_interp [SpaceDim][SpaceDim] |
LayoutData< IntVectSet > | m_coarse_hi_interp [SpaceDim][SpaceDim] |
Static Protected Attributes | |
static const int | s_stencil_radius |
Fills some fine level ghost "faces" by piecewise linear interpolation from the coarse level.
This class fills the first a_interp_radius layers of fine level ghost cells that are not part of other fine level grids. It uses piecewise linear interpolation from the coarse level. The slopes are computed using van leer limiting if there is enough room for the stencil. It drops order and uses first-order one-sided differences otherwise.
|
Default constructor. User must subsequently call define(). |
|
Destructor. |
|
Defining constructor. { Arguments:}\ a_fine_domain (not modified): domain of fine level. \ a_coarse_domain (not modified): domain of coarse level. \ a_num_comps (not modified): number of components of state vector. \ a_crse_problem_domain (not modified): problem domain on the coarse level.\ a_ref_ratio (not modified): refinement ratio. \ a_interp_radius (not modified): number of layers of fine ghost cells to fill by interpolation. \ |
|
Defining constructor. { Arguments:}\ a_fine_domain (not modified): domain of fine level. \ a_coarse_domain (not modified): domain of coarse level. \ a_num_comps (not modified): number of components of state vector. \ a_crse_problem_domain (not modified): problem domain on the coarse level.\ a_ref_ratio (not modified): refinement ratio. \ a_interp_radius (not modified): number of layers of fine ghost cells to fill by interpolation. \ |
|
|
|
Defines this object. The user may call define() once and call fillInterp() multiple times with different valid data sets. { Arguments:}\ a_fine_domain (not modified): domain of fine level. \ a_coarse_domain (not modified): domain of coarse level. \ a_num_comps (not modified): number of components of state vector. \ a_crse_problem_domain (not modified): problem domain on the coarse level.\ a_ref_ratio (not modified): refinement ratio. \ a_interp_radius (not modified): number of layers of fine ghost cells to fill by interpolation. \ { This:}\ ---This object is modified.--- |
|
Defines this object. The user may call define() once and call fillInterp() multiple times with different valid data sets. { Arguments:}\ a_fine_domain (not modified): domain of fine level. \ a_coarse_domain (not modified): domain of coarse level. \ a_num_comps (not modified): number of components of state vector. \ a_crse_problem_domain (not modified): problem domain on the coarse level.\ a_ref_ratio (not modified): refinement ratio. \ a_interp_radius (not modified): number of layers of fine ghost cells to fill by interpolation. \ { This:}\ ---This object is modified.--- |
|
|
|
This is an adaptation of the Cell-centered PiecewiseLinearFillPatch class for face-centered data. Fills the first m_interp_radius layers of fine ghost cells by interpolation from the coarse level. It is an error to call if not this->isDefined(). The range components to interpolate must be specified. The corresponding components on the coarse and fine levels may be different. It is required that a_fine_data's domain is the same as was specified in the most recent call to define(). It is expected that the coarse and fine level's domains are properly nested. { Arguments:}\ a_fine_data (modified): fine-level data being interpolated to.\ a_old_coarse_data (not modified): coarse level source data at the old time.\ a_new_coarse_data (not modified): coarse level source data at the new time.\ a_time_interp_coef (not modified): time interpolation coefficient, in the range [0:1]. 0=old time, 1=new time.\ a_src_comp (not modifed): starting coarse data component.\ a_dest_comp (not modifed): starting fine data component.\ a_num_comp (not modified): number of data components to be interpolated. { This:}\ Well, it's complicated. As far as the user is concerned, this object is not modified. See the design document if you care for details. |
|
|
|
|
|
Returns true if this object was created with the defining constructor or if define() has been called. { This:}\ This object is not modified. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|