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

WIP: eb_aux_ variables #2120

Merged
merged 30 commits into from
Feb 13, 2025
Merged

WIP: eb_aux_ variables #2120

merged 30 commits into from
Feb 13, 2025

Conversation

skang67
Copy link
Contributor

@skang67 skang67 commented Feb 12, 2025

This PR is a WIP of eb_aux_ variables, which are constructed by combining two eb_cut_cell objects on the low and high sides of a face.

  1. We can now access both staggered and non-staggered EB data via the eb_ class. For example:
Array4<EBCellFlag const> const& cflag = (eb.get_const_factory()->getMultiEBCellFlagFab()).const_array(mfi); 

Array4<Real const> const& vfrac =(eb.get_u_const_factory()->getVolFrac()).const_array(mfi);
Array4<Real const> const& afrac_x =(eb.get_u_const_factory()->getAreaFrac()[0])->const_array(mfi);
  1. Among staggered eb_aux_ variables, vfrac and afrac have been verified to a reasonable extent.

  2. Other eb_aux_ variables are a WIP. I am combining the quantities from two cut cells by weighted averages.

…ell. (2) In the EB normal, area fractions are multiplied by cell areas.
@asalmgren asalmgren merged commit 7302ad2 into erf-model:development Feb 13, 2025
11 of 12 checks passed
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