ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
EBChoice Struct Reference

#include <ERF_EBStruct.H>

Collaboration diagram for EBChoice:

Public Member Functions

void init_params (std::string pp_prefix, bool requires_cover)
 Read embedded-boundary options from the input parameter database. More...
 
void display ()
 Print the configured embedded-boundary options. More...
 

Public Attributes

EBBoundaryType eb_boundary_type = EBBoundaryType::SlipWall
 Boundary condition model applied on embedded-boundary surfaces. More...
 
bool eb_cover_zero_area_faces = false
 Cover FC EB cells at faces with zero CC area fraction (forced on with a projection). More...
 

Detailed Description

Container holding EB-related choices

Member Function Documentation

◆ display()

void EBChoice::display ( )
inline

Print the configured embedded-boundary options.

75  {
76  amrex::Print() << "EB choices: " << std::endl;
78  amrex::Print() << " eb_boundary_type : SlipWall" << std::endl;
80  amrex::Print() << " eb_boundary_type : NoSlipWall" << std::endl;
82  amrex::Print() << " eb_boundary_type : SurfaceLayer" << std::endl;
83  }
84  amrex::Print() << " eb_cover_zero_area_faces: " << (eb_cover_zero_area_faces ? "true" : "false")
85  << std::endl;
86  }
bool eb_cover_zero_area_faces
Cover FC EB cells at faces with zero CC area fraction (forced on with a projection).
Definition: ERF_EBStruct.H:89
EBBoundaryType eb_boundary_type
Boundary condition model applied on embedded-boundary surfaces.
Definition: ERF_EBStruct.H:88

Referenced by SolverChoice::display().

Here is the caller graph for this function:

◆ init_params()

void EBChoice::init_params ( std::string  pp_prefix,
bool  requires_cover 
)
inline

Read embedded-boundary options from the input parameter database.

Parameters
pp_prefixParmParse prefix for the ERF input namespace.
requires_coverForce eb_cover_zero_area_faces on (a level projects every step: the projection does not constrain momentum on faces of zero CC area fraction).
45  {
46  amrex::ParmParse pp(pp_prefix);
47 
48  static std::string eb_boundary_type_string = "NoSlipWall";
49  pp.queryAdd("eb_boundary_type",eb_boundary_type_string);
50 
51  if (!eb_boundary_type_string.compare("SlipWall")) {
53  } else if (!eb_boundary_type_string.compare("NoSlipWall")) {
55  } else if (!eb_boundary_type_string.compare("SurfaceLayer")) {
57  } else {
58  amrex::Error("Don't know this eb_boundary_type");
59  }
60 
61  const bool given = pp.query("eb_cover_zero_area_faces", eb_cover_zero_area_faces);
62  if (requires_cover) {
63  if (given && !eb_cover_zero_area_faces) {
64  amrex::Abort("erf.eb_cover_zero_area_faces = false is not allowed with Anelastic or "
65  "PseudoIncompressible levels");
66  }
68  }
69  }
ParmParse pp("prob")

Referenced by SolverChoice::init_params().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ eb_boundary_type

EBChoice::eb_boundary_type = EBBoundaryType::SlipWall

Boundary condition model applied on embedded-boundary surfaces.

Referenced by DiffusionSrcForState_EB(), display(), erf_slow_rhs_pre(), and init_params().

◆ eb_cover_zero_area_faces

EBChoice::eb_cover_zero_area_faces = false

Cover FC EB cells at faces with zero CC area fraction (forced on with a projection).

Referenced by display(), and init_params().


The documentation for this struct was generated from the following file: