|
[Sponsors] |
how to adjust velocity in 0/u file Automatically |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 17, 2020, 06:30 |
how to adjust velocity in 0/u file Automatically
|
#1 |
New Member
liwenpeng
Join Date: Jul 2020
Posts: 11
Rep Power: 6 |
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 |
|
July 17, 2020, 11:17 |
|
#2 |
Member
Ran
Join Date: Aug 2016
Posts: 69
Rep Power: 10 |
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 |
|
July 17, 2020, 23:48 |
|
#3 |
New Member
liwenpeng
Join Date: Jul 2020
Posts: 11
Rep Power: 6 |
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?
|
|
July 18, 2020, 06:20 |
|
#4 |
Senior Member
Join Date: Jan 2014
Posts: 179
Rep Power: 12 |
For changing velocity you can use uniformFixedvalue with tabulated input..
e.g. Iteration velocity 0 1 1000 10 2000 20 And so 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 |