Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 989
Python interface for updating translation and rotation rates of the moving frame #2024
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
Merged
pcarruscag
merged 25 commits into
su2code:develop
from
ArneVoss:feature_python_interface_for_moving_frame
May 21, 2023
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
ae828e3
First try to implement a python wrapper for updating the dynamic mesh
ArneVoss 1fcd7b2
Implementing the python wrapper for updating the translational mesh
ArneVoss aa786d8
Make sure that the velocity field from a rotating frame is reset in e…
ArneVoss 9363637
Merge remote-tracking branch 'origin/develop' into
ArneVoss 75777c7
Make comment more clear as suggested in code review
ArneVoss d7e3e6c
Add a test case that updates the translation and rotation rates given in
ArneVoss 28f4133
Removed units from screen output as the values can be non-dimensional,
ArneVoss cf4fc61
Removed calculation of moving frame grid velocities due to Roating frame
ArneVoss faf2d2c
Added new testcase from previous commit to the regression tests.
ArneVoss 4a5d80a
Aplly sugestion form Code scanning / CodeQL
ArneVoss c8c7931
Undoing 28f4133 as rotations are always in rad/s
ArneVoss 4f00bcc
Removing print messages from python interface.
ArneVoss cdd2e61
Removing reference results file for
ArneVoss 1d8e956
Move the translating frame as well so that it can be updated from the
ArneVoss e3a44fb
Apply sugestion form Code scanning / CodeQL
ArneVoss 67f6e93
Revert "Removing reference results file for ARM64"
ArneVoss 9dd3ecb
Removing reference results file in the right folder
ArneVoss 3b60113
Use reference results calculated by GitHub runner
ArneVoss 95628ce
Remove unused variable Kind_Grid_Movement
ArneVoss e93f258
C++ seems to require a break statement when using switch/case...
ArneVoss 8331045
Apply suggestions from code review
pcarruscag c14d783
Apply suggestions from code review
pcarruscag 254fe21
Update SU2_CFD/src/iteration/CIteration.cpp
pcarruscag dea5d41
Apply suggestions from code review
pcarruscag 54d9347
Merge branch 'develop' into feature_python_interface_for_moving_frame
pcarruscag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
TestCases/py_wrapper/updated_moving_frame_NACA12/config.cfg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| % PROBLEM DEFINITION | ||
| % | ||
| SOLVER= EULER | ||
|
pcarruscag marked this conversation as resolved.
|
||
| REF_DIMENSIONALIZATION= FREESTREAM_VEL_EQ_MACH | ||
| MATH_PROBLEM= DIRECT | ||
| RESTART_SOL= NO | ||
|
|
||
| % FREE-STREAM DEFINITION | ||
| % | ||
| % We are translating the domain instead of having farfield velocity. | ||
| % Note: The rotating frame is intended for 3D cases. To use the feature in a 2D case, | ||
| % care must be taken with respect to the axes, e.g. to obtain a pitching motion, a | ||
| % rotation about the z-axis can be used. | ||
| GRID_MOVEMENT= ROTATING_FRAME | ||
| MOTION_ORIGIN= 0.0, 0.0, 0.0 | ||
| ROTATION_RATE= 0.0, 0.0, 0.0 | ||
| TRANSLATION_RATE= -265.05707641411146, 0.0, 0.0 | ||
| MACH_NUMBER= 0.0 | ||
| FREESTREAM_PRESSURE= 101325.0 | ||
| FREESTREAM_TEMPERATURE= 273.15 | ||
|
|
||
| % REFERENCE VALUES | ||
| % | ||
| % The AOA is only needed to compute CD and CL, it should match the translation rate. | ||
| AOA= 0.0 | ||
| % Same for the Mach number of the motion. | ||
| MACH_MOTION= 0.8 | ||
| REF_ORIGIN_MOMENT_X= 0.00 | ||
| REF_ORIGIN_MOMENT_Y= 0.00 | ||
| REF_ORIGIN_MOMENT_Z= 0.00 | ||
| REF_LENGTH= 1.0 | ||
| REF_AREA= 1.0 | ||
|
|
||
| % BOUNDARY CONDITIONS | ||
| % | ||
| MARKER_EULER= ( airfoil ) | ||
| MARKER_FAR= ( farfield ) | ||
| MARKER_PLOTTING= ( airfoil ) | ||
| MARKER_MONITORING= ( airfoil ) | ||
| % We are specifying this marker to have an easy way to access it in python. | ||
| MARKER_DEFORM_MESH= ( airfoil ) | ||
|
|
||
| % DISCRETIZATION METHODS | ||
| % | ||
| CONV_NUM_METHOD_FLOW= ROE | ||
| MUSCL_FLOW= YES | ||
| NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES | ||
| SLOPE_LIMITER_FLOW= VENKATAKRISHNAN_WANG | ||
| VENKAT_LIMITER_COEFF= 0.1 | ||
|
|
||
| % SOLUTION ACCELERATION | ||
| % | ||
| CFL_NUMBER= 1e3 | ||
| CFL_ADAPT= NO | ||
| % | ||
| MGLEVEL= 3 | ||
| MGCYCLE= W_CYCLE | ||
| % | ||
| LINEAR_SOLVER= FGMRES | ||
| LINEAR_SOLVER_PREC= ILU | ||
| LINEAR_SOLVER_ERROR= 0.1 | ||
| LINEAR_SOLVER_ITER= 10 | ||
|
|
||
| % CONVERGENCE PARAMETERS | ||
| % | ||
| ITER= 250 | ||
| CONV_FIELD= RMS_DENSITY | ||
| CONV_RESIDUAL_MINVAL= -9 | ||
|
|
||
| % INPUT/OUTPUT | ||
| % | ||
| MESH_FILENAME= ../../euler/naca0012/mesh_NACA0012_inv.su2 | ||
| MESH_FORMAT= SU2 | ||
| SCREEN_OUTPUT= (INNER_ITER, RMS_RES, FORCE_X, FORCE_Y, FORCE_Z, MOMENT_X, MOMENT_Y, MOMENT_Z) | ||
| HISTORY_OUTPUT= (INNER_ITER, RMS_RES, AERO_COEFF) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You can’t perform that action at this time.

Uh oh!
There was an error while loading. Please reload this page.