CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

how to adjust velocity in 0/u file Automatically

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2020, 06:30
Default how to adjust velocity in 0/u file Automatically
  #1
New Member
 
liwenpeng
Join Date: Jul 2020
Posts: 11
Rep Power: 6
liwenpeng is on a distinguished road
Hi,OPers
I'm new to Openfoam and wondering how to change parameters automatically after a successful run. I have a flow around cylinder case with constant inlet velocity which is simulated with pimpleFoam (in laminar mode). I want to increase the Reynolds number (by changing the inlet velocity after each successful run with the solver and then rerun the solver and I want to find an automatic way to do that.
I might have to run thousands of simulations, and manually modifying parameters is terrible ,so I'm wondering how it can be done in Openfoam.
many thanks
liwenpeng is offline   Reply With Quote

Old   July 17, 2020, 11:17
Default
  #2
Member
 
Ran
Join Date: Aug 2016
Posts: 69
Rep Power: 10
random_ran is on a distinguished road
If your Reynolds number has a range that covers from 1 to 100000,
it's hard to auto this process. Higer Re means higher grid resolution.

People usually do discretized runs. In other words, set up cases in
advance. Then run those simulations independently.
__________________
Yours in CFD,

Ran
random_ran is offline   Reply With Quote

Old   July 17, 2020, 23:48
Default
  #3
New Member
 
liwenpeng
Join Date: Jul 2020
Posts: 11
Rep Power: 6
liwenpeng is on a distinguished road
Quote:
Originally Posted by random_ran View Post
If your Reynolds number has a range that covers from 1 to 100000,
it's hard to auto this process. Higer Re means higher grid resolution.

People usually do discretized runs. In other words, set up cases in
advance. Then run those simulations independently.
the Reynold number will not larger than 5000.Did I need a pyfoam or install matlab in linux system to to run thousands of simulations automatically?
liwenpeng is offline   Reply With Quote

Old   July 18, 2020, 06:20
Default
  #4
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
For changing velocity you can use uniformFixedvalue with tabulated input..
e.g.

Iteration velocity
0 1
1000 10
2000 20

And so on.
hxaxtma is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 17:05
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18


All times are GMT -4. The time now is 12:09.