CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Paraview doesn't seem to be picking up data generated by icofoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2015, 07:41
Default Paraview doesn't seem to be picking up data generated by icofoam
  #1
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 11
MikeHersee is on a distinguished road
I'm running the first tutorial on OpenFoam, here: http://openfoam.org/docs/user/cavity.php#x5-40002.1 . I've followed the instructions in that I've run 'blockMesh', and that produces reasonable-looking output (to my untutored eye). I've run paraview in batch by doing 'paraview &', and following the instructions to look at the mesh, I get the same picture as the tutorial (even though with a later version of paraview, v 4.1, and the display tab is merged with properties, and the colours are slightly different.)

Then I run icoFoam, and it runs for a second or so, and produces a final set of data in the terminal window that looks like this:

Time = 0.5

Courant Number mean: 0.222158 max: 0.852134
smoothSolver: Solving for Ux, Initial residual = 2.32737e-07, Final residual = 2.32737e-07, No Iterations 0
smoothSolver: Solving for Uy, Initial residual = 5.07002e-07, Final residual = 5.07002e-07, No Iterations 0
DICPCG: Solving for p, Initial residual = 1.0281e-06, Final residual = 2.77237e-07, No Iterations 1
time step continuity errors : sum local = 4.0374e-09, global = -9.0204e-19, cumulative = -2.44407e-18
DICPCG: Solving for p, Initial residual = 5.31987e-07, Final residual = 5.31987e-07, No Iterations 0
time step continuity errors : sum local = 6.12557e-09, global = -3.93738e-20, cumulative = -2.48344e-18
ExecutionTime = 0.49 s ClockTime = 1 s

End


So that looks ok, although the numbers look a bit on the low side to me, and I have no idea whether the courant numbers are reasonable or not. When I return to the paraview window which is still open, the instructions say I should click on 'refesh times' to load the generated data, which I do. However, according to the data range axis the range is between 0 and 1e-16 - ie, while I'm not a mathematical genius, it appears to me that the numbers for pressure range between approximately zero and zero and I effectively get a solid coloured box the same throughout. On the colour map editor, under 'mapping data' it says, "data range too small to render". According to the example in the tutorial, the pressure data range should be somewhere in the range of -4.4 to 4.88.

So it looks to me as though paraview is not picking up the data that icoFoam has generated. But then, where is the data? I went looking for a suitable file and couldn't find anything that had any thing that looked like data in it. Both icoFoam and paraview were initiated from the same session and the same directory that the tutorial says to use. So where is the data stored that icoFoam generates?

Any help in getting over this hurdle also - which I'm sure won't be the last - would be much appreciated.

** UPDATE ** ok, I've found the data output by icoFoam, I've just realised it is output by tenth of a second in this instance, and each tenth of a second is stored in a separate directory by the looks of it, but how can I get paraview to load the data? I can't seem to find a way to load the relevant 'P' or 'U' file.
MikeHersee is offline   Reply With Quote

Old   January 6, 2015, 08:06
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You've updated time step data with 'Refresh times' button but still at the first frame (so you're looking at the initial flow field). You should use 'Last frame' button to go to the last time step.
alexeym is offline   Reply With Quote

Old   January 6, 2015, 08:27
Default
  #3
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 11
MikeHersee is on a distinguished road
Aha! Now it all works. Thank you very much :-)
MikeHersee is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Export Particle Data From Fluent to Paraview liliana FLUENT 2 November 18, 2016 09:14
[General] Extract Paraview data (vtkUnstructured Grid) using pvpython lu_siyah ParaView 1 November 3, 2013 06:10
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data? jaffar ParaView 0 November 27, 2012 09:36
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 23:34.