BCFillPatchExtrap Class Reference

Kynema-SGF API: kynema_sgf::BCFillPatchExtrap Class Reference
Kynema-SGF API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <BCInterface.H>

Inheritance diagram for kynema_sgf::BCFillPatchExtrap:
[legend]
Collaboration diagram for kynema_sgf::BCFillPatchExtrap:
[legend]

Public Member Functions

 BCFillPatchExtrap (Field &field, amrex::BCType::mathematicalBndryTypes bctype=amrex::BCType::hoextrap)
Public Member Functions inherited from kynema_sgf::BCIface
 BCIface (Field &field)
virtual ~BCIface ()=default
virtual void operator() (amrex::Real value=0.0_rt)
 Operator that performs init actions and syncs the BC data to device.
amrex::Array< const std::string, 3 > get_dirichlet_udfs ()
 User-defined functions for Dirichlet-type boundaries.

Protected Member Functions

void set_bcrec () override
 Setup AMReX mathematical BC types.
void read_values () override
 Read input data for specific fields based on BC types.
Protected Member Functions inherited from kynema_sgf::BCIface
virtual void read_bctype ()
 Parse custom BCs specified for this field.
virtual void set_bcfuncs ()
 BC functions for Neumann type boundaries.
void set_default_value (amrex::Real value)
 Set default BC values for the field.
virtual amrex::Array< const std::string, 3 > inflow_udfs ()
void read_inflow_values ()
void set_bcrec_lo (int dir, amrex::BCType::mathematicalBndryTypes bcrec)
 Set AMReX mathematical boundary types for the lower boundaries.
void set_bcrec_hi (int dir, amrex::BCType::mathematicalBndryTypes bcrec)
 Set AMReX mathematical boundary types for the upper boundaries.

Protected Attributes

amrex::BCType::mathematicalBndryTypes m_extrap_type
Protected Attributes inherited from kynema_sgf::BCIface
Field & m_field
 Field instance where BC is being set.

Additional Inherited Members

Public Types inherited from kynema_sgf::BCIface
using IncfloBC = amrex::GpuArray<BC, AMREX_SPACEDIM * 2>
Static Public Member Functions inherited from kynema_sgf::BCIface
static void validate_inflow_values (const FieldRepo &repo, const FieldBoundaryMgr &boundaries, InflowValidationStage stage=InflowValidationStage::initialized)
 Validate configuration before meshing, then actual coverage after setup.

Detailed Description

Default BC that can be applied on any field

This operator is used to initialize defaults for any field that might require valid BC data. It sets higher-order extrapolation for mathematical BC.

Constructor & Destructor Documentation

◆ BCFillPatchExtrap()

kynema_sgf::BCFillPatchExtrap::BCFillPatchExtrap ( Field & field,
amrex::BCType::mathematicalBndryTypes bctype = amrex::BCType::hoextrap )
inlineexplicit

Member Function Documentation

◆ read_values()

void kynema_sgf::BCFillPatchExtrap::read_values ( )
inlineoverrideprotectedvirtual

Read input data for specific fields based on BC types.

Implements kynema_sgf::BCIface.

◆ set_bcrec()

void kynema_sgf::BCFillPatchExtrap::set_bcrec ( )
overrideprotectedvirtual

Setup AMReX mathematical BC types.

Implements kynema_sgf::BCIface.

Member Data Documentation

◆ m_extrap_type

amrex::BCType::mathematicalBndryTypes kynema_sgf::BCFillPatchExtrap::m_extrap_type
protected

The documentation for this class was generated from the following files:
  • /home/runner/work/kynema-sgf/kynema-sgf/src/boundary_conditions/BCInterface.H
  • /home/runner/work/kynema-sgf/kynema-sgf/src/boundary_conditions/BCInterface.cpp