/home/runner/work/amr-wind/amr-wind/amr-wind/fvm/stencils.H File Reference

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/fvm/stencils.H File Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
stencils.H File Reference

Second-order finite volume discretization stencil coefficients. More...

#include "AMReX_REAL.H"
#include "AMReX_Box.H"
#include "AMReX_Orientation.H"
#include "AMReX_Geometry.H"
Include dependency graph for stencils.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  amr_wind::fvm::stencil::StencilInterior
struct  amr_wind::fvm::stencil::StencilILO
struct  amr_wind::fvm::stencil::StencilJLO
struct  amr_wind::fvm::stencil::StencilKLO
struct  amr_wind::fvm::stencil::StencilIHI
struct  amr_wind::fvm::stencil::StencilJHI
struct  amr_wind::fvm::stencil::StencilKHI
struct  amr_wind::fvm::stencil::StencilIloJlo
struct  amr_wind::fvm::stencil::StencilJloKlo
struct  amr_wind::fvm::stencil::StencilIloKlo
struct  amr_wind::fvm::stencil::StencilIhiJhi
struct  amr_wind::fvm::stencil::StencilJhiKhi
struct  amr_wind::fvm::stencil::StencilIhiKhi
struct  amr_wind::fvm::stencil::StencilIloJhi
struct  amr_wind::fvm::stencil::StencilJloKhi
struct  amr_wind::fvm::stencil::StencilIloKhi
struct  amr_wind::fvm::stencil::StencilIhiJlo
struct  amr_wind::fvm::stencil::StencilJhiKlo
struct  amr_wind::fvm::stencil::StencilIhiKlo
struct  amr_wind::fvm::stencil::StencilIloJloKlo
struct  amr_wind::fvm::stencil::StencilIloJhiKlo
struct  amr_wind::fvm::stencil::StencilIhiJloKlo
struct  amr_wind::fvm::stencil::StencilIhiJhiKlo
struct  amr_wind::fvm::stencil::StencilIloJloKhi
struct  amr_wind::fvm::stencil::StencilIloJhiKhi
struct  amr_wind::fvm::stencil::StencilIhiJloKhi
struct  amr_wind::fvm::stencil::StencilIhiJhiKhi

Namespaces

namespace  amr_wind
 This test case is intended as an evaluation of the momentum advection scheme.
namespace  amr_wind::fvm
namespace  amr_wind::fvm::stencil
namespace  amr_wind::fvm::stencil::impl

Functions

amrex::Box amr_wind::fvm::stencil::impl::box_lo (const amrex::Box &bx, const amrex::Geometry &geom, const int idir)
amrex::Box amr_wind::fvm::stencil::impl::box_hi (const amrex::Box &bx, const amrex::Geometry &geom, const int idir)

Detailed Description

Second-order finite volume discretization stencil coefficients.

The stencils are defined using 9 coefficients corresponding to i+1, i and i-1 respectively in each of the three directions (see table below).

Coefficients for the first derivative

| | +1 | 0 | -1 |
|---+-----+-----+-----|
| i | c00 | c01 | c02 |
| j | c10 | c11 | c12 |
| k | c20 | c21 | c22 |

Coefficients for the second derivative

| | +1 | 0 | -1 |
|---+-----+-----+-----|
| i | s00 | s01 | s02 |
| j | s10 | s11 | s12 |
| k | s20 | s21 | s22 |

Coefficients for the filter

| | +1 | 0 | -1 |
|---+-----+-----+-----|
| i | f00 | f01 | f02 |
| j | f10 | f11 | f12 |
| k | f20 | f21 | f22 |