-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable boundary conditions on embedded boundaries #251
Comments
Case 1.During initialization of PeleC, the temperature on the boundary is set to a uniform value in a sparse data structure of type
Replacing that code with the following will set the boundary temperature to be varying as a function of space.
Caveats with the above code: I am also not able to iterate over Mixed Dirichlet/Neumann temperature boundary conditions: This is not exposed (as far as I can see) anywhere in From the user perspective, a hacky but simple way of specifying Neumann on parts of the boundary would be to set the appropriate temperature as above for the Dirichlet regions, but set negative values in the regions Neumann is desired. I don't know whether that is doable, or if there is a chance this negative temperature gets used in some thermo routine that throws a fit? |
Hello everyone, I am curious if other boundary conditions on EBs (like localized fuel injection from a boundary of an EB, like a jet or so) can be implemented as suggested here. I tried doing the injection from the EB case using other “Q” variables like
|
I am working on a strategy for this, but its is a bit tricky to design. First off, the code currently requests boundary conditions in terms of the (conserved) state variables, rather than the primitive variables directly. However, it certainly is the case the actual BC's are typically known, and applied numerically, in terms of the primitive variables. So, for the time being, the user will have to convert - I have created some functions to convert back and forth as part of a PR I'm working on. The hard design problem though is providing a coordinate system along the EB that can be used to specify where on the boundary to apply things like jets, etc, and within the jet, specifying the shape/extents. Sometimes, the problem is such that one can use the global coordinates to do this, but not always. It would be much better if there was a way to specify a location on the EB and a local orientation of surface coordinates. For example, in Åsmund's example, being able to specify a linear temperature variation along the surface would require a reference location, and a direction along which one could specify a slope. I haven't come up with a strategy yet, and am open to ideas, or even just clear descriptions of use cases that can help flesh out a workable design. |
Hi all, someone asked me today about setting bc vals. I had some code hacked together that kind of did that so I made a draft PR (linked above). I don't know how it fits in the whole discussion above but maybe it helps to have some code to look at and improve. |
Opening an issue to discuss inhomogeneous boundary conditions on the embedded boundaries, as suggested by @drummerdoc .
This might be implemented in PeleLM by @esclapez first (AMReX-Combustion/PeleLM#157) and then taken up into PeleC.
In principle there are two cases - one that is simple to implement, one that is more general:
For case 1 I have something that seems to be working, which I'll describe in the next comment.
For case 2 I will leave it up for discussion.
The text was updated successfully, but these errors were encountered: