-
Notifications
You must be signed in to change notification settings - Fork 83
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
PlaneSampler skipping normal
unless offsets
is specified
#1132
Comments
I thought this was intentional. |
I think (?) that this is a classic case of a thing being used somewhere else where it shouldn't be/bad naming/bad reuse.
This is confusing. But I am not sure what the correct fix is because this is all user facing options. Rename "normal" in the input file and break a bunch of user input files (maybe with a grace period with warnings supplied)? Rename Or did I just get all this wrong and something else is going on... |
I hesitate to make |
I figured there was a chance this was all intentional. You got my point correctly, Marc. Your picture is consistent with what is currently happening. I got used to set |
Yes, I believe the sample plane inputs were intentionally set up this way. We set it up so it used the same vectors that are in Nalu-Wind's - name: sliceData/p_hub
corner_coordinates: [0, 0, 90]
edge1_vector: [5120, 0, 0]
edge2_vector: [0, 5120, 0]
edge1_numPoints: 513
edge2_numPoints: 513
offset_vector: [0, 0, 1]
offset_spacings: [0, 20, 40] |
I don't like messing with the users but I am worried this is going to come up again. See #1137 |
I am closing this because the PR won't be merged until the next release but will be addressed. Please reopen if not. |
When using the
PlaneSampler
, thenormal
(the same asaxis3
) does not get populated unlessoffsets
is specified:amr-wind/amr-wind/utilities/sampling/PlaneSampler.cpp
Lines 28 to 29 in 3be7419
Without
offsets
,axis3
is 0, 0, 0, regardless of the value ofnormal
in the input file.The text was updated successfully, but these errors were encountered: