|
[Sponsors] |
September 10, 2013, 04:01 |
Flow simulation in wind tunnel
|
#1 |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
I want to simulate flow inside a wind tunnel which is enhanced by VG. Which openFoam library cases is gapplicable for me? Is there any list of openFoam library cases so that I can easily figure out the appropriate solver for my simulation?
Last edited by mukut; September 10, 2013 at 04:02. Reason: correction |
|
September 10, 2013, 04:30 |
|
#2 |
Senior Member
|
I suppose that you haven't had at least a brief look at the list of available solvers, right?
http://www.openfoam.org/docs/user/st...p#x13-890003.5 |
|
September 10, 2013, 04:52 |
|
#3 |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
Thanks for your reply. I am a new user of openFoam. I have checked the list of standard solver already. It states the name of solver only but I am looking for a tutorial (if any) which simulates the flow inside a wind tunnel. Would you please help me in this regard?
|
|
September 10, 2013, 05:02 |
|
#4 |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
I have run "motorbike" tutorial, but where is the motorbike inside the tunnel? Possibly I can use this for my purpose.
|
|
September 10, 2013, 05:35 |
|
#5 |
Senior Member
|
I would stick to the usual CFD workflow: First choose a mathematical model that represents the physics properly (compressible/incompressible, laminar/turbulent, transient/unsteady, etc.) and select a solver accordingly.
After the selection of the solver, have a look at the tutorials for the solver and reuse them for your purposes. My guess is that you will go with something like simpleFoam or pimpleFoam, but I rarely do single phase flows. And before you start with anything else, skim over the relevant parts of the user guide. |
|
September 10, 2013, 05:50 |
|
#6 | |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
Quote:
Another question: How can I view each patch in paraFoam? |
||
September 10, 2013, 06:16 |
|
#7 |
Senior Member
|
I suppose that you used the Allrun script, that is provided alongside with the motorbike tutorial? If you have a look at it, you'll see that snappyHexMesh is executed in parallel and hence the constant/polyMesh directory does not store the actual mesh. This is done by the processor* directories, that store the decomposed mesh.
Inspecting each patch separately in paraFoam can be done by selecting each particular patch in the lower left corner. Please consider reading the user's guide, this explains a lot of the stuff you are dealing with at the moment. |
|
September 10, 2013, 06:31 |
|
#8 | |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
Quote:
Thanks again. It is quite hard to get answer of all of my findings from user manual, but experts like you and others can easily figure my points out. I am sorry if I bother you. But every of your reply helps me to learn quickly. How is the sequence of running Allrun? like blockMeash>Allrun>simpleFoam>paraFoam? |
||
September 10, 2013, 07:56 |
|
#9 |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
Finally I found the way about how to run allrun. after that I excute paraFoam but in terminal it showed following error:
QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action X Error: BadMatch (invalid parameter attributes) 8 Extension: 154 (Uknown extension) Minor opcode: 11 (Unknown request) Resource id: 0x3800066 and also output message: p, li { white-space: pre-wrap; } [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action X Error: BadMatch (invalid parameter attributes) 8 Extension: 154 (Uknown extension) Minor opcode: 11 (Unknown request) Resource id: 0x3800066 what's the problem? motorbike.jpg |
|
September 10, 2013, 08:23 |
|
#10 |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
I want to modify motorbike tutorial for my wind tunnel flow simulation. So, in order to remove bike geometry what should I do? If I don't run the Allrun script, is it enough? or some more modification is necessary so that bike is removed from domain?
|
|
September 10, 2013, 08:26 |
|
#11 | |
Senior Member
|
Quote:
|
||
September 10, 2013, 08:31 |
|
#12 | |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
Quote:
#!/bin/sh cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions # copy motorbike surface from resources folder cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/ runApplication surfaceFeatureExtract runApplication blockMesh runApplication decomposePar runParallel snappyHexMesh 6 -overwrite #- For non-parallel running #cp -r 0.org 0 > /dev/null 2>&1 #- For parallel running ls -d processor* | xargs -i rm -rf ./{}/0 $1 ls -d processor* | xargs -i cp -r 0.org ./{}/0 $1 runParallel patchSummary 6 runParallel potentialFoam 6 -noFunctionObjects -writep runParallel $(getApplication) 6 runApplication reconstructParMesh -constant runApplication reconstructPar -latestTime # ----------------------------------------------------------------- end-of-file Allrun script executed without any problem, but error message appeared when paraFoam is executed |
||
September 10, 2013, 08:31 |
|
#13 | |
Senior Member
|
Quote:
You have to wrap your head around the fact that it is highly unlikely that you will be able to define, setup and run your desired case properly, without practicing:
Just follow some tutorials and try to change them. There is nothing anybody can help you with, as you have to learn how things work in OF. As for Allrun: I have the script in my OF release as well and had a look at it . I cannot tell why paraFoam does not work. Maybe something with your X. |
||
September 10, 2013, 08:34 |
|
#14 | |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
Quote:
For other tutorial cases like cavity, cavityfine etc, paraFoam is working. |
||
September 11, 2013, 23:29 |
|
#15 |
Member
|
You should explore the different folder
0/ system/ constant/ you can start by system/controlDict where you define everything of your simulation 0/ for know the boundary condition. Depending what you wanna do you can also install swak4foam It s a good tool for dealing with boundary, you could also use pyFoam how is actually a good tool for checking your boundary condition, cloning your cases, follow your run, to check the iteration, which parameter going crazy or if your simulation is not converging. It can save a lot of time! But as say before, openFoam is quiet complex, me after 2 years I still learn new things, so follow some tutorial, search some exemple do the same change the parameters and good luck . |
|
September 11, 2013, 23:43 |
|
#16 | |
Senior Member
Mominul MuKuT
Join Date: Mar 2009
Location: Bangladesh
Posts: 124
Rep Power: 17 |
Quote:
|
||
Tags |
openfoam, simulation, wind tunnel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulation of a complex wing in solidworks flow simulation | niels1900 | FloEFD, FloWorks & FloTHERM | 6 | April 20, 2011 11:44 |
Wind Tunnel Testing | Francesco Nicolosi | Main CFD Forum | 0 | November 25, 2008 13:55 |
Push/Pull blower simulation, open wind tunnel | Roland | CFX | 3 | February 20, 2008 17:42 |
defining velocity profile in a wind tunnel model | Erdem | FLUENT | 0 | June 20, 2006 14:00 |
Virtual Wind Tunnel in FLUENT | ND | FLUENT | 0 | April 7, 2006 08:43 |