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

How to display thermal gradients in Paraview

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2019, 04:00
Default How to display thermal gradients in Paraview
  #1
Member
 
Adam
Join Date: Nov 2018
Posts: 31
Rep Power: 3
Adam_K is on a distinguished road
I am using the chtMultiRegionFoam solver to look at transient conduction through multi-phase systems. The simulations are running correctly and I am able to visualize the temperature maps using Paraview, however I would like to be able to see the thermal gradients as well.

When I apply the Gradient of Unstrcutred DataSet filter in Paraview I get the following error:
Code:
ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\Filters\General\vtkGradientFilter.cxx, line 318
vtkGradientFilter (00000205FBC4A420): No input array. If this dataset is part of a composite dataset check to make sure that all non-empty blocks have this array.

ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 782
vtkPVCompositeDataPipeline (00000205F4C65220): Algorithm vtkGradientFilter(00000205FBC4A420) returned failure for request: vtkInformation (0000020592472820)
  Debug: Off
  Modified Time: 19414550
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FROM_OUTPUT_PORT: 0
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
In the T file, I can see the following lines, so it looks like a gradient has been calculated (although I don't see a direction associated to these magnitudes).:
Code:
        refGradient     uniform 0;
        valueFraction   nonuniform List<scalar> 
1520
(
0.0033887263
0.0033894414
Can anyone point me in the right direction? I have seen some cases where people need to modify the solvers itself in order to export certain fields but for something as simple as dT/dx, dT/dy and their magnitude it seems like there should be an easier way.
Adam_K is offline   Reply With Quote

Old   June 21, 2019, 03:27
Default
  #2
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 123
Rep Power: 3
yambanshee is on a distinguished road
Have you tried the "Gradient Of Unstructured Data Set" filter in paraview?
yambanshee is offline   Reply With Quote

Old   June 21, 2019, 03:31
Default
  #3
Member
 
Adam
Join Date: Nov 2018
Posts: 31
Rep Power: 3
Adam_K is on a distinguished road
Quote:
Originally Posted by yambanshee View Post
Have you tried the "Gradient Of Unstructured Data Set" filter in paraview?
Yes, it was my first approach. The error message that paraview gave me is in the original post.
Adam_K is offline   Reply With Quote

Old   June 24, 2019, 03:08
Default
  #4
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 123
Rep Power: 3
yambanshee is on a distinguished road
Sorry, I think I was a bit too scatter brained when I replied!

It seems as though the parafoam doesn't have the temperature values everywhere that you are requesting. Maybe make sure that only the internal mesh is selected, and if you're doing a 2d simulation, take a slice of the domain?
yambanshee is offline   Reply With Quote

Old   June 25, 2019, 04:39
Default
  #5
Member
 
Adam
Join Date: Nov 2018
Posts: 31
Rep Power: 3
Adam_K is on a distinguished road
Quote:
Originally Posted by yambanshee View Post
Sorry, I think I was a bit too scatter brained when I replied!

It seems as though the parafoam doesn't have the temperature values everywhere that you are requesting. Maybe make sure that only the internal mesh is selected, and if you're doing a 2d simulation, take a slice of the domain?
Ah thanks! That was it. All three of the following were checked by default. Removing the first one allowed it to correctly display the gradients.

Code:
internalMesh
phase1/internalMesh
phase2/internalMesh
Adam_K 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
decomposePar -cellDist: Display cellDecomposition in ParaView Sean95 OpenFOAM Post-Processing 4 January 24, 2019 10:56
[OpenFOAM] Paraview display problem jiejie ParaView 4 October 13, 2013 21:29
[OpenFOAM] Display lift and Drag in paraview SamerAli ParaView 1 May 16, 2013 12:51
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 07:11
Info: Short Course On Thermal Design of Electronic Equipment Arnold Free Main CFD Forum 0 August 10, 1999 10:18


All times are GMT -4. The time now is 08:36.