1 #ifndef ERF_EB_STRUCT_H_
2 #define ERF_EB_STRUCT_H_
7 #include <AMReX_ParmParse.H>
8 #include <AMReX_Print.H>
46 amrex::ParmParse
pp(pp_prefix);
48 static std::string eb_boundary_type_string =
"NoSlipWall";
49 pp.queryAdd(
"eb_boundary_type",eb_boundary_type_string);
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")) {
58 amrex::Error(
"Don't know this eb_boundary_type");
64 amrex::Abort(
"erf.eb_cover_zero_area_faces = false is not allowed with Anelastic or "
65 "PseudoIncompressible levels");
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;
EBTauType
Embedded-boundary stress component indices.
Definition: ERF_EBStruct.H:21
@ tau_eb23
Definition: ERF_EBStruct.H:22
@ tau_eb13
Definition: ERF_EBStruct.H:22
EBBoundaryType
Boundary condition model applied on embedded-boundary surfaces.
Definition: ERF_EBStruct.H:14
EBGridType
Grid centering used for embedded-boundary data.
Definition: ERF_EBStruct.H:28
@ yface
Definition: ERF_EBStruct.H:29
@ zface
Definition: ERF_EBStruct.H:29
@ xface
Definition: ERF_EBStruct.H:29
Definition: ERF_SurfaceLayer.H:64
Definition: ERF_EBStruct.H:36
void display()
Print the configured embedded-boundary options.
Definition: ERF_EBStruct.H:74
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
void init_params(std::string pp_prefix, bool requires_cover)
Read embedded-boundary options from the input parameter database.
Definition: ERF_EBStruct.H:44
EBBoundaryType eb_boundary_type
Boundary condition model applied on embedded-boundary surfaces.
Definition: ERF_EBStruct.H:88