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

Data Sampler for Plane/Line Output #1897

Merged
merged 7 commits into from
Oct 21, 2024

Conversation

AMLattanzi
Copy link
Collaborator

This PR creates an object in ERF that holds interfaces to structs that can acquire MultiFabs that contain data along a prescribed line or plane. The structs also contain interfaces for writing that data into native plotfiles. This needs to be tested in parallel and on GPU.

This PR requires a change in AMReX where bounded sampling is done.

@AMLattanzi AMLattanzi requested a review from asalmgren October 18, 2024 20:48
WeiqunZhang pushed a commit to AMReX-Codes/amrex that referenced this pull request Oct 21, 2024
The `get_line_data` and `get_slice_data` routines do not currently allow
for a natural way to bound the returned MultiFab. In the former case,
the line length is dictated by the bottom and top of the boxarray at
that level. In the latter case, the plane is dictated by the problem
domain at that level.

This PR adds an optional `Box` argument to the `get_line_data` call and
an optional `RealBox` argument to the `get_slice_data` call. These
optional arguments bound the returned MuliFab. This feature has
application in the ERF code in [PR
1897](erf-model/ERF#1897) where it is of great
value to sample velocities in planes/lines just upstream of a wind
turbine. Since the wind turbine is small in relation to the problem
domain, the bounding feature ensures the returned data is actually what
the user wants.
@AMLattanzi AMLattanzi marked this pull request as ready for review October 21, 2024 21:04
@AMLattanzi AMLattanzi merged commit be89c40 into erf-model:development Oct 21, 2024
12 checks passed
@AMLattanzi AMLattanzi deleted the SampleData branch November 12, 2024 21:22
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