-
Notifications
You must be signed in to change notification settings - Fork 913
Python interface for updating translation and rotation rates of markers #2095
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
Conversation
|
@pcarruscag This is my first PR, so I hope that at least a few things will be ok :) |
| @@ -0,0 +1,26 @@ | |||
| import pysu2 # imports the SU2 wrapped module | |||
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.
Thanks 👍 to make a regression test from this you need to add it to parallel_regression.py
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.
Add our license header to this file please (since it's also code).
|
I'm having some trouble getting the regression tests to pass - for some reason there is a result difference in the moving wall tests. I'm not sure how this can be possible, considering I am not changing any values. The convergence seems to be slowed down considerably, but I'm having trouble identifying which function may be causing this. |
|
Why do you say the convergence is slowed down? It looks like a very small change. Did you run the cases for more iterations? |
|
Well, I've noticed the problem, because the unit tests don't pass - cavity and spinning cylinder especially. They exceed the number of iterations, and at the same time there is a result discrepancy. Increasing the number o iterations in serial_regression.py does not help, in fact it makes the delta worse. |
|
I'm actually having the same problems running the code on the develop branch.... |
|
Thank can be just due to compilation differences. |
|
So you mean I should run the tests to convergence, and compare the results between branches? I wonder why compilation problems could be the culprit, as the tests fail both locally and in the github test. Shouldn't the github test always be compiled the same way? |
|
You mentioned issues with the develop branch, those are likely due to compilation differences. |
pcarruscag
left a comment
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.
Hey @HahsFilip do you think you can wrap this up?
Take care of Kursat's comments and update the failing tests since it seem to be just numerical noise (or do you have reason to believe otherwise?)
Co-authored-by: Kürşat Yurt <57598663+kursatyurt@users.noreply.github.com>
|
You also need to add yourself to the AUTHORS.md file |
|
@pcarruscag, sorry for the delay I had to get my life together a bit after the conference :). I think I have the correct changes, I have changed the tests and removed unused lines. Filip |
pcarruscag
left a comment
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.
LGTM
| @@ -0,0 +1,26 @@ | |||
| import pysu2 # imports the SU2 wrapped module | |||
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.
Add our license header to this file please (since it's also code).
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.
You need to revert these changes to submodules, this may be why you see some failing cases
This reverts commit 4e36eee.
|
Do the hybrid tests need an update? Do any of you have any idea about why they are failing? |
pcarruscag
left a comment
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.
Because this branch has the wrong versions of various submodules
I see I assumed the last commit reverted all. As it is on a fork we cannot revert 👍🏼 |
|
@pcarruscag, is it possible to merge this PR to some temporary branch in the SU2 repo, fix the broken submodules there, and merge it to the main branch? It looks like @HahsFilip is busy. PR is almost complete but cannot be merged. I will do the required fixes. |
|
Thanks @kursatyurt submodules are fixed here 8b89e85 |
|
Thanks @pcarruscag , it looks like standard regression tests are passed without any problem, and ARM tests are problematic, as always. |
Proposed Changes
Give a brief overview of your contribution here in a few sentences.
My changes allow the changing of moving wall velocities when using the py_wrapper.
Related Work
Resolve any issues (bug fix or feature request), note any related PRs, or mention interactions with the work of others, if any.
There has been some previous work, where functionality for changing mesh rotation rates was added.
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.