src/embedded_boundaries/eb_spherecube.cpp
/********************************************************************************
 *                                                                              *
 * Function to create a simple sphereCUBE EB.                                     *
 *                                                                              *
 ********************************************************************************/
Function to create a simple sphereCUBE EB.
Function to create a simple sphereCUBE EB .
void incflo::make_eb_spherecube()
{
    amrex::Print() << " " << std::endl;
    amrex::Print() << " SPERECUUUUBE: " << std::endl;
    EB2::SphereIF sphere(0.5, {1.8, 1.8, 2.8}, false);
    EB2::BoxIF cube({1.85, 1.85, 2.85}, {2.5, 2.5, 3.5}, false);
    auto cubesphere = EB2::makeUnion(sphere, cube);
    auto gshop = EB2::makeShop(cubesphere);
    int max_level_here = 0;
    int max_coarsening_level = 100;
    EB2::Build(gshop, geom.back(), max_level_here, max_level_here + max_coarsening_level);
}
void incflo :: make_eb_spherecube ( ) { amrex :: Print ( ) << " " << std :: endl ; amrex :: Print ( ) << " " << std :: endl ; EB2 :: SphereIF sphere ( 0.5 , { 1.8 , 1.8 , 2.8 } , false ) ; EB2 :: BoxIF cube ( { 1.85 , 1.85 , 2.85 } , { 2.5 , 2.5 , 3.5 } , false ) ; auto cubesphere = EB2 :: makeUnion ( sphere , cube ) ; auto gshop = EB2 :: makeShop ( cubesphere ) ; int max_level_here = 0 ; int max_coarsening_level = 100 ; EB2 :: Build ( gshop , geom . back ( ) , max_level_here , max_level_here + max_coarsening_level ) ; }
Function to create a simple sphereCUBE EB.
Function to create a simple sphereCUBE EB .
// Build the sphere implicit function // Generate GeometryShop // Build index space