Jump to content


- - - - -

Visualizing boundary data from OpenFoam calculations

OpenFoam Open Foam

  • Please log in to reply
1 reply to this topic

#1 Mr. Carsten Fuetterer

Mr. Carsten Fuetterer

    Moderator

  • Moderators
  • 145 posts

Posted 17 August 2015 - 08:46 AM

Hi,

 

the usal way of visualizing data from OpenFoam is to create a file like foam.case in the calculation directory and to import this file. The problem is with this method, that only the data of the internal mesh are displayed in CAESES and that you do not have the values of the boundary faces.

 

To see these values you can export your OpenFoam data to VTK. This is done with follwowing OpenFoam command:

 

foamToVTK -latestTime

 

With this command a new folder called VTK is created with the VTK files of all boundaries and patches. Theses different files can be imported into CAESES and values like Wall Yplus or pressure can be displayed.

 

Have a great start into the week :-)

 

Carsten

 

Attached Thumbnails

  • wallYPlus.png

  • 0

Carsten Fütterer
M.Sc. Energy & Process Engineering
CAE Applications Engineer
www.friendship-systems.com
Tel. +49 (0)331 967 66 28

 


#2 Mr. Gerrit Assbrock

Mr. Gerrit Assbrock

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 24 July 2017 - 02:17 PM

Hi Carsten,

 

thanks for the hint!

 

But is there also a way to import those vtk automatically, because the lastTimeStep is evaluated and the filename of these .vtk files includes the timestep? I tried something with a string parameter that reads the last timestep from a file generated by patch average but CAESES does not accept this paramter, warning me that I created a infinite recursion:

 

>>>

*** INFO Expression not assigned : Infinite recursion detected [|04_OFpostProcessing|import_vtk_fileName]

<<<

 

Moreover I am interested in plotting the ratio turbulant viscosity to kinematic viscosity (nu_t /nu) on my gridPlaneCuts. Did you ever do this before and could explain a way to get such a plot here?

 

Many thanks in advance!

 

Gerrit


  • 0





Also tagged with one or more of these keywords: OpenFoam, Open Foam