|
[Sponsors] |
November 29, 2009, 18:34 |
Motorbike Tutorial and No velocity data
|
#1 |
New Member
Join Date: Nov 2009
Posts: 28
Rep Power: 17 |
Hello Everyone,
I manage to generate the mesh and run a solution. I can plot the pressure contours on the surface of the bike but there doesnt seem to be any velocity data. Because of this, if a plot the velocity contours on the bike surface it remains a "single color". Also, Im not able to generate streamlines (and this is what i think) because there is no velocity data to plot. Thoughts on why its not solving for the velocity field? Thank you |
|
November 29, 2009, 18:49 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi,
If you are using the 1.6 version, then it's only natural that it won't work all that well. I've tried running it with different architectures and the residues would always go to smithereens at around 300s... Try the 1.6.x version, it works waaay better! Best regards, Bruno |
|
November 29, 2009, 19:00 |
|
#3 |
New Member
Join Date: Nov 2009
Posts: 28
Rep Power: 17 |
Bruno,
I have the directory OpenFOAM.1.6.x in my OpenFoam directory. Do I simply type "git pull" to update? Also how how are you plotting the residuals? Thank you, Adam |
|
November 29, 2009, 19:16 |
|
#4 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Adam,
Quote:
Quote:
I don't usually plot the residuals. But by what I've read, PyFoam seems to be one of the best choices. Oh, and a recent thread has a few more tips on plotting residuals! And you're welcome Bruno |
|||
November 29, 2009, 20:50 |
|
#5 |
New Member
Join Date: Nov 2009
Posts: 28
Rep Power: 17 |
Bruno and to anyone else following this post,
I am new to Linux and OpenFoam so to get gnuplot I typed in the terminal sudo app-get install gnuplot Please correct me if this was not the best method. Then use the script found here so you can view the residuals real time: http://www.cfd-online.com/Forums/ope...residuals.html I hope this helps. Thanks again Bruno Also, the solution looks converged but when attempting to plot in paraview its seems that there is no velocity. Im loosing my hair. Last edited by stark22; November 29, 2009 at 21:36. |
|
November 29, 2009, 22:28 |
|
#6 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Adam,
Quote:
If that's not it, try this at the motorBike folder: Code:
foamToVTK -latestTime cd VTK paraview If that still won't work, try downloading the prebuilt paraview available here, and use it to open the VTK files! As for (minor glitch you have there): Quote:
Best regards, Bruno |
|||
November 30, 2009, 08:54 |
|
#7 |
New Member
Join Date: Nov 2009
Posts: 28
Rep Power: 17 |
Bruno,
I usually run paraFoam from the working directory (per the tutorials) and in paraview I do make sure I am at the appropriate time step. It's interesting that I can't use paraFoam on the motorbike tutorial. As you recommended I ran vtk and opened the vtk file in paraview and it contains all the appropriate data so thank you once again! Any thoughs as to why this vtk file contains the data and why I wouldn't be able to view the same information by running paraFoam? Also, thanks for that link to the pre-compiled version of OpenFoam for windows, very cool. Do you prefer windowns over a linux OS? Has anyone compared convergence speed for the same case on both OS's? |
|
November 30, 2009, 12:30 |
|
#8 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hello Adam,
Quote:
So, you have 3 options:
If you go through the threads of the last few days, you might find what I've talked about... I'm just not posting the links here, because there are about 5 or 6 of them Quote:
Oh and a few more useful links about that package can be found here. Best regards, Bruno |
|||
December 5, 2009, 16:15 |
residuals
|
#9 |
Member
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17 |
for residuals this is the command that i use
solver_name log & pyFoamPlotWatcher.py --silent log this plots the residuals and also the continuity vs cummulative curves i have a similar problem where paraview doesnt simply show me the output to one of the variables (that i have created by modyfing the solver) how could i get it to display the output???? |
|
December 5, 2009, 21:31 |
|
#10 |
New Member
Join Date: Nov 2009
Posts: 28
Rep Power: 17 |
Have you tried converting the final time step solution directory to vtk as suggested in the post??
|
|
December 6, 2009, 14:18 |
|
#11 |
Member
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17 |
not as of yet .....paraview hasnt recognised the addition of a new variable ...everything is working just fine with P and U.....but then nothing for the new varible ...could it a be a compiling problem??
thanks alot stark i'll still too try converting it to vtk and see what happens.... |
|
December 7, 2009, 06:15 |
solved
|
#12 |
Member
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17 |
ok i figured it out....usually paraview doesnt always give the variable output ...one would have to select it.
|
|
December 7, 2009, 22:18 |
|
#13 |
New Member
Join Date: Nov 2009
Posts: 28
Rep Power: 17 |
So here is my next question:
I am now able to view the mesh via paraview however I can only view the biker when I display the wireframe. I would like to view the biker as a surface but, when I attempt to do this, it shows the fluid domain thus hiding the biker. Thoughts on how to view only the bike when post-processing? Thank you everyone. |
|
December 8, 2009, 03:38 |
|
#14 |
Senior Member
Anonymous
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
Use Filters->Alphabetical->Extract Block to extract all motorBike_* surfaces if you just wish to look at the biker itself. Use Filters->Alphabetical->Slice for taking slices through the domain.
|
|
December 8, 2009, 18:21 |
|
#15 |
New Member
Join Date: Nov 2009
Posts: 28
Rep Power: 17 |
Unfortunatly the extract block option is not available. Thank you for the quick response!
|
|
April 16, 2010, 23:32 |
Flow Visualization
|
#16 |
New Member
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16 |
I have a quick question in regards to visualizing the flow in ParaView...
I pretty much copied and pasted the motorBike example and put in an aircraft fuselage in there, however, I can't seem to figure out how to visualize the flow in a manner as done here (motorBiker.png/from blueCAPE website). I have the streamtracer turned ON, but it seems to me that I'm missing something big. Can anyone help guide me along? Also, kind of on another topic; the motorBike example is analyzed until 500 s? but why when you open it up in ParaView, the time goes from 0 to 1? Thanks in advance! Aleksey |
|
April 17, 2010, 01:27 |
|
#17 | |
New Member
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16 |
Quote:
I was running the case under parallel, and I forgot to run the "reconstructPar" command after simpleFoam analysis. After I ran the reconstruction, everything fell into place (the flow visualization and time). Aleksey |
||
|
|