-
Notifications
You must be signed in to change notification settings - Fork 847
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
Fix NEMO Supersonic Inlet BC & BC Cleanup #1862
Conversation
Signed-off-by: jtneedels <jneedels@stanford.edu>
Here's what I see:
|
Here's my proposed changes:
|
What NEMO has for farfield is a supersonic inlet, it's not handling the outflow case correctly. |
I believe the viscous components of a lot of bcs are commented out and can probably be removed at this point. I'm not even sure if they are formulated properly for NEMO problems. I think BC_Inlet can be removed. Or all the commented code can be removed with just an error message. Regarding the outlet boundaries, supersonic outlet does seem to be redundant. However, many validation cases use a supersonic outlet, regardless of boundary layers (ASWBLI), so it may be fine to keep. |
Because it’s not considering incoming characteristics for subsonic flow? |
Good point on scramjets, I’ll start by working on fixing supersonic inlet, then we can make a call on what to do with the normal inlet. |
Supersonic outflow only has outgoing characteristics, so forcing the farfield state may not be ideal. If the flow is going out it should work as an outflow boundary. |
Signed-off-by: jtneedels <jneedels@stanford.edu>
@pcarruscag @WallyMaier Working on the supersonic inlet. I brought things mostly up to date with fluid model. There is a comment saying a root-finding method needs to be implemented to find rhoCvve. But we already have the full conservative state, could we just call cons2primvar? Any other suggestions? |
Signed-off-by: jtneedels <jneedels@stanford.edu>
The root finding method was to find Tve. I can think of 2/3 solutions: |
Signed-off-by: jtneedels <jneedels@stanford.edu>
Yeah, so there was a comment left here from someone saying a root-finding method was needed to compute rhocvve in this case. Closer look, it isn't since you assume you already have vib temp and can compute Eve. I used the setTDStatePTTv which seems to give all values needed to initialize. There are likely some bugs there but I can work through that. A few follow on Qs:
|
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
This looks good to me. Thanks for the work. |
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels <jneedels@stanford.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup 👍
Signed-off-by: jtneedels <jneedels@stanford.edu>
Signed-off-by: jtneedels jneedels@stanford.edu
Proposed Changes
Fixes supersonic inlet BC in CNEMOEulerSolver so that it becomes operational.
Clean up NEMO supersonic outlet BC.
Clean up NEMO farfield BC.
Related Work
See associated PR to update documentation: su2code/su2code.github.io#112
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.