DirichletOp< InflowOp, WallOp > Struct Template Reference

AMR-Wind API: amr_wind::DirichletOp< InflowOp, WallOp > Struct Template Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
amr_wind::DirichletOp< InflowOp, WallOp > Struct Template Reference

#include <FieldBCOps.H>

Public Types

using InflowOpType = InflowOp
 
using WallOpType = WallOp
 

Public Member Functions

AMREX_GPU_HOST constexpr DirichletOp (const Field &fld, const int face_dir)
 
AMREX_GPU_HOST DirichletOp (const Field &fld, const InflowOpType &inflow_op, const WallOpType &wall_op, const int face_dir)
 
AMREX_GPU_DEVICE void operator() (const amrex::IntVect &iv, amrex::Array4< amrex::Real > const &field, const int dcomp, const int numcomp, amrex::GeometryData const &geom, const amrex::Real time, const amrex::BCRec *bcr, const int bcomp, const int orig_comp) const
 
AMREX_GPU_DEVICE void set_inflow (const amrex::IntVect &iv, amrex::Array4< amrex::Real > const &field, amrex::GeometryData const &geom, const amrex::Real time, amrex::Orientation ori, const int comp, const int dcomp, const int orig_comp) const
 

Public Attributes

int m_ncomp
 
amrex::GpuArray< BC, AMREX_SPACEDIM *2 > m_bc_type
 
const InflowOpType m_inflow_op
 
const WallOpType m_wall_op
 
const int m_face_dir
 

Detailed Description

template<typename InflowOp, typename WallOp>
struct amr_wind::DirichletOp< InflowOp, WallOp >

Sets constant values on specified boundaries

Member Typedef Documentation

◆ InflowOpType

template<typename InflowOp , typename WallOp >
using amr_wind::DirichletOp< InflowOp, WallOp >::InflowOpType = InflowOp

◆ WallOpType

template<typename InflowOp , typename WallOp >
using amr_wind::DirichletOp< InflowOp, WallOp >::WallOpType = WallOp

Constructor & Destructor Documentation

◆ DirichletOp() [1/2]

template<typename InflowOp , typename WallOp >
AMREX_GPU_HOST constexpr amr_wind::DirichletOp< InflowOp, WallOp >::DirichletOp ( const Field & fld,
const int face_dir )
inlineexplicitconstexpr

◆ DirichletOp() [2/2]

template<typename InflowOp , typename WallOp >
AMREX_GPU_HOST amr_wind::DirichletOp< InflowOp, WallOp >::DirichletOp ( const Field & fld,
const InflowOpType & inflow_op,
const WallOpType & wall_op,
const int face_dir )
inline

Member Function Documentation

◆ operator()()

template<typename InflowOp , typename WallOp >
AMREX_GPU_DEVICE void amr_wind::DirichletOp< InflowOp, WallOp >::operator() ( const amrex::IntVect & iv,
amrex::Array4< amrex::Real > const & field,
const int dcomp,
const int numcomp,
amrex::GeometryData const & geom,
const amrex::Real time,
const amrex::BCRec * bcr,
const int bcomp,
const int orig_comp ) const
inline

◆ set_inflow()

template<typename InflowOp , typename WallOp >
AMREX_GPU_DEVICE void amr_wind::DirichletOp< InflowOp, WallOp >::set_inflow ( const amrex::IntVect & iv,
amrex::Array4< amrex::Real > const & field,
amrex::GeometryData const & geom,
const amrex::Real time,
amrex::Orientation ori,
const int comp,
const int dcomp,
const int orig_comp ) const
inline

Member Data Documentation

◆ m_bc_type

template<typename InflowOp , typename WallOp >
amrex::GpuArray<BC, AMREX_SPACEDIM * 2> amr_wind::DirichletOp< InflowOp, WallOp >::m_bc_type

◆ m_face_dir

template<typename InflowOp , typename WallOp >
const int amr_wind::DirichletOp< InflowOp, WallOp >::m_face_dir

◆ m_inflow_op

template<typename InflowOp , typename WallOp >
const InflowOpType amr_wind::DirichletOp< InflowOp, WallOp >::m_inflow_op

◆ m_ncomp

template<typename InflowOp , typename WallOp >
int amr_wind::DirichletOp< InflowOp, WallOp >::m_ncomp

◆ m_wall_op

template<typename InflowOp , typename WallOp >
const WallOpType amr_wind::DirichletOp< InflowOp, WallOp >::m_wall_op

The documentation for this struct was generated from the following file:
  • /home/runner/work/amr-wind/amr-wind/amr-wind/core/FieldBCOps.H