Replies: 2 comments 4 replies
-
This might help, might not. In our other code, PeleC, we do things slightly differently but this guts of the code looks the same and might give you lots of examples of geometries: https://github.com/AMReX-Combustion/PeleC/blob/development/Source/Geometry.cpp The geometry you have there should have added a single box as you defined it. It will however be the only thing in the domain (if your domain bounds are set right). Also I am pretty sure you want |
Beta Was this translation helpful? Give feedback.
-
Yeah this capability is definitely under-documented. The examples @marchdf points out should be helpful to show the capability. The functions for building and combining different EB shapes are all defined in the AMReX source code, so you can look in there for more information as well. But what you want to do is pretty simple and can be accomplished by combining two boxes:
Also, note that due to a file naming convention change, this function should go in |
Beta Was this translation helpful? Give feedback.
-
Hello Everyone,
I'm Massen, I've just started working with PeleLMeX. I'm in the process of running and customizing templates to get familiar with the environment. Currently, I'm running the "Backward facing step anchored premixed flame" template, and I aim to simply add an extra step to the upper part of the box. Despite several attempts in editing EBUserDefined.H, I couldn't get what I want (nothing shows up!). Could you guide me on how to add another step into my simulation?
You can see the sketch below, that this is the step I want to add to my simulation:
This is my code in EB_UserDefined.H:
void
EBUserDefined(
const Geometry& geom,
const int required_coarsening_level,
const int max_coarsening_level)
{
// ParmParse your geometry parameters
// Build geometry pieces using EB2::* methods
EB2::BoxIF box({-0.01, 0.005}, {0.01, 0.010},false);
// Build your geometry shop using EB2::makeShop
auto gshop = EB2::makeShop(box);
// Build geom using EB2::Build
EB2::Build(gshop, geom, 0,0);
}
Beta Was this translation helpful? Give feedback.
All reactions