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

time-varying boundary conditions #1079

Closed
flybob91 opened this issue Sep 30, 2020 · 9 comments
Closed

time-varying boundary conditions #1079

flybob91 opened this issue Sep 30, 2020 · 9 comments

Comments

@flybob91
Copy link

Dear SU2 developers,
Is it possible to have a time-varying boundary condition? I would interested in the possibility to apply a time-varying velocity

Thank you for your job

Best regards

@clarkpede
Copy link
Contributor

This is possible using the Python wrapper. There are no tutorials for this yet, but you can check out PR #488, PR #503. PR #516. There's currently a regression test using unsteady heat-transfer boundary conditions at: https://github.com/su2code/SU2/tree/master/TestCases/py_wrapper/flatPlate_unsteady_CHT . You can use that as an example. Velocity BCs will be very similar.

@flybob91
Copy link
Author

flybob91 commented Oct 1, 2020

Thank you Clark,
I will come back as soon as I will be able to run the case to extend the script.

Best regards

@stale
Copy link

stale bot commented Dec 27, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still a relevant issue please comment on it to restart the discussion. Thank you for your contributions.

@stale stale bot added the stale label Dec 27, 2020
@stale stale bot closed this as completed Jan 4, 2021
@aleargix
Copy link

aleargix commented Jun 2, 2024

Hello SU2 developers,

I am reopening this topic because I am studying a case of jet impingement on a wall with a time-varying flow at the inlet. I have used compressible RANS and TOTAL_CONDITIONS as inlet BC. Specifically, I have set a time-varying stagnation pressure at inlet.

To do this, I used the Python script mentioned in the previous messages, modifying some commands to suit my problem. I should mention that I do not use Python frequently, so there are likely some errors. Indeed, I checked the documentation and noticed that the command I used to vary the pressure at the inlet (SetMarkerCustomPtotal) is not listed.

However, when I run the simulation, it seems to work quite well. Unfortunately, when examining the pressure field, it appears that the time-varying boundary conditions are applied on the walls with no-slip conditions (represented by the MARKER_ISOTHERMAL command) and not at the inlet as I want.

Could you please tell me what changes I need to make in the Python script to correctly set up the problem? For completeness, I am attaching the script I modified, the configuration file, and a video of the pressure field.
2D_jet_val_unsteady_5.zip

Thank you in advance for your help.

Best Regards.

@pcarruscag
Copy link
Member

Seems like we lost that function recently, I'll try to fix it and put together a working example, then you can adapt it to your problem.

@aleargix
Copy link

aleargix commented Jun 4, 2024

Thanks a lot for your reply. I look forward to your future updates.

@pcarruscag
Copy link
Member

I might rename some stuff before merging, but see if this helps with your case #2296

@aleargix
Copy link

Sorry to bother you again. I am trying to figure out how (from a practical point of view) implement your changes in my SU2 code. May I just add your three lines somewhere? In such case could you help me with the name of the file that I should edit? Thank you in advance for your support.

@bigfooted
Copy link
Contributor

Hi,
So I am assuming you are not so familiar with using git, so here is what you need to do.
If you follow the link #2296 and go to the section 'files changed' you can see that it's quite a lot of changes. The changes are currently added (merged) to the 'develop' branch (when you follow the link you can see this message). So what you need to do is update your github repository.
I assume that you already have a local copy of SU2 and that you obtained this from github using
git clone https://github.com/su2code/SU2.git
You switch to the develop branch:
git checkout develop
you update your develop branch:
git pull
now you have all changes, and you need to recompile.
There is an example in TestCases/py_wrapper/custom_inlet that you could use.
For completeness, here is a link to the docs: https://su2code.github.io/docs_v7/home/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants