Skip to content
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

Enable isothermal EB specification #84

Merged
merged 49 commits into from
Apr 4, 2023
Merged

Enable isothermal EB specification #84

merged 49 commits into from
Apr 4, 2023

Conversation

esclapez
Copy link
Collaborator

At this point, activating isothermal EB with peleLM.isothermal_EB = 1 set the entire EB as Dirichlet, the value of which then needs to be specified by the setEBState function, added to pelelm_prob.H.
See Exec/Regtests/EB_FlowPastCylinder for an implementation example.

@esclapez
Copy link
Collaborator Author

esclapez commented Jun 1, 2022

  • enable both Dirichlet and homogeous Neuman (adiabatic wall) by adding control over the EB diffusion coefficient

Source/PeleLMDiffusion.cpp Fixed Show fixed Hide fixed
Source/PeleLMUtils.cpp Fixed Show fixed Hide fixed
@esclapez esclapez marked this pull request as ready for review March 29, 2023 23:16
@esclapez esclapez requested a review from baperry2 March 30, 2023 03:22
Copy link
Collaborator

@baperry2 baperry2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I tried one of the test cases and the results looked qualitatively reasonable

@@ -231,14 +264,14 @@ The `eb2.small_volfrac` controls volume fraction that are deemed too small and e
This operation is done iteratively and the maximum number of iteration is prescribed by `eb2.maxiter`.
For most applications, a single AMReX object is insufficient to represent the geometry. AMReX enable to combine
objects using constructive solid geometry (CSG) in order to create complex geometry. It is up to the user to define
the combination of basic elements leading to its desired geometry. To switch to a user-defined EB definition, one
the combination of basic elements leading to his desired geometry. To switch to a user-defined EB definition, one
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change "the user" to "users" and "his" to "their"

xcell[2] + ebfc_z(i,j,k) * dx[2])};
amrex::Real ebflagtype = 0.0;
setEBType(xface, ebflagtype, geomdata, *lprobparm);
ebdiff(i,j,k) = diff_cc(i,j,k) * ebflagtype;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that if running with an LES model this will only get the molecular component of the thermal diffusivity because the turbulent component is added when moving from cc to fc. I believe this behavior is the same for how the no slip condition on EBs is presently implemented, and is fine. If using WALE and enough resolution at the boundaries the turbulent part should go to 0 anyway, and if not then we'd want to add a wall model.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. It's probably worth adding a note in the doc for that.

@esclapez esclapez merged commit 63c6bf0 into development Apr 4, 2023
@esclapez esclapez deleted the isoT_EB branch April 4, 2023 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants