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

Motorbike Tutorial and No velocity data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2009, 18:34
Default Motorbike Tutorial and No velocity data
  #1
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
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
stark22 is offline   Reply With Quote

Old   November 29, 2009, 18:49
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   November 29, 2009, 19:00
Default
  #3
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
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
stark22 is offline   Reply With Quote

Old   November 29, 2009, 19:16
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Adam,
Quote:
I have the directory OpenFOAM.1.6.x in my OpenFoam directory.

Do I simply type "git pull" to update?
You can try it, when inside your OpenFOAM-1.6.x folder, but depends on how long ago you did the last update. The version I've used was from late October. I haven't visually checked the git tree for a while now (I use gitk), so I don't know if there were any recent changes that might have blown the case's cohesion.

Quote:
Also how how are you plotting the residuals?
With the version 1.6, I just looked at the output from simpleFoam, while trying to figure out why Paraview couldn't see anything at 500s. At first saw the dead numbers (INF or NAN) at 500s, then tracked upwards to when it started to go sour.

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
wyldckat is offline   Reply With Quote

Old   November 29, 2009, 20:50
Default
  #5
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
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.
stark22 is offline   Reply With Quote

Old   November 29, 2009, 22:28
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Adam,

Quote:
Also, the solution looks converged but when attempting to plot in paraview its seems that there is no velocity. Im loosing my hair.
This is a wild guess... but did you check the other time snapshots? You have one every 100s... and only the 0s one is dead in the water! So, I'll almost bet you haven't used the time controls on the top of the Paraview window

If that's not it, try this at the motorBike folder:
Code:
foamToVTK -latestTime
cd VTK
paraview
And open one or more .VTK files that there exist now. The "-latestTime" will give you the 500s snapshot. There you must have wind speed!! Hell, the motorbike picture we have at blueCAPE's website (found here), wouldn't exist if the 500s snapshot didn't have wind speed!

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:
sudo apt-get install gnuplot
It usually works for Debian based Linux distros, like Ubuntu is.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 30, 2009, 08:54
Default
  #7
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
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?
stark22 is offline   Reply With Quote

Old   November 30, 2009, 12:30
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hello Adam,

Quote:
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.
For the past two weeks or so, I've been reading various threads that report on paraFoam not working properly. They range from bad downloads to problems with recent versions of Qt and Linux (Ubuntu 9.10 and OpenSUSE 11.2), and some have problems with miss-installed graphic cards in Linux (OpenGL issues). Some are problems with Paraview's core, which isn't fully compatible with recent versions of Qt... because although they build properly, they don't work all that well.
So, you have 3 options:
  1. rebuild Paraview and the OpenFOAM plugins with Qt 4.3.5 as intended... and might want to use a version of Linux from 6 months ago;
  2. use foamToVTK, and wait for a Paraview more recent than 3.6.1 to come out;
  3. try and use the "native" reader that doesn't require OpenFOAM at all, available here.
Also, if you have issues with bad rescaling on Paraview, or some other issues, this thread has a few pearls of wisdom Which is in fact the thread dedicated to the third option.
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:
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?
You're welcome. I didn't know you would be interested in this. Check out the benchmark we made with motorBike, which compares the various runtimes. I honestly think that running OpenFOAM is best in Linux, but conditions aren't always perfect and in those situations, building for Windows is the only choice possible... you know the old saying: «the client is always right». At least, while virtualization isn't fully mainstream And yes, Linux is that good... it can run inside a virtual machine and still be faster than Windows in a real machine!
Oh and a few more useful links about that package can be found here.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 5, 2009, 16:15
Default residuals
  #9
Member
 
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17
zobekenobe is on a distinguished road
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????
zobekenobe is offline   Reply With Quote

Old   December 5, 2009, 21:31
Default
  #10
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
Have you tried converting the final time step solution directory to vtk as suggested in the post??
stark22 is offline   Reply With Quote

Old   December 6, 2009, 14:18
Default
  #11
Member
 
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17
zobekenobe is on a distinguished road
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....
zobekenobe is offline   Reply With Quote

Old   December 7, 2009, 06:15
Default solved
  #12
Member
 
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17
zobekenobe is on a distinguished road
ok i figured it out....usually paraview doesnt always give the variable output ...one would have to select it.
zobekenobe is offline   Reply With Quote

Old   December 7, 2009, 22:18
Default
  #13
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
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.
stark22 is offline   Reply With Quote

Old   December 8, 2009, 03:38
Default
  #14
Senior Member
 
Anonymous
Join Date: Mar 2009
Posts: 110
Rep Power: 17
madad2005 is on a distinguished road
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.
madad2005 is offline   Reply With Quote

Old   December 8, 2009, 18:21
Default
  #15
New Member
 
Join Date: Nov 2009
Posts: 28
Rep Power: 17
stark22 is on a distinguished road
Unfortunatly the extract block option is not available. Thank you for the quick response!
stark22 is offline   Reply With Quote

Old   April 16, 2010, 23:32
Smile Flow Visualization
  #16
New Member
 
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16
aleksey is on a distinguished road
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
Attached Images
File Type: jpg flow.jpg (66.6 KB, 58 views)
File Type: jpg motorbike.jpg (25.7 KB, 60 views)
aleksey is offline   Reply With Quote

Old   April 17, 2010, 01:27
Default
  #17
New Member
 
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16
aleksey is on a distinguished road
Quote:
Originally Posted by aleksey View Post
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
I solved my problem

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
aleksey 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



All times are GMT -4. The time now is 04:05.