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

[OpenFOAM] Display velocity-vectors in Paraview 3.10

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2011, 17:52
Default Display velocity-vectors in Paraview 3.10
  #1
New Member
 
Max
Join Date: Feb 2011
Location: Germany
Posts: 4
Rep Power: 15
Silence19 is on a distinguished road
Hello,

I'm almost new to Paraview. I used Fluent 6.3 an exported the case and variables of interest (velocity, temperature etc) to ensight case gold format. I open Paraview and import the case file with the variables. No problem.

Now I want to display the velocity vectors. I read that I have to calculate them and then run a glyph. But it does not work. I watched a few tutorials on youtube and the Paraview-homepage but I could not find any helpful stuff.

Can somebody help me?

Kind regards

Max
Silence19 is offline   Reply With Quote

Old   June 28, 2011, 04:58
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
I don't really get your problem? What is wrong with the Glyphs? You say, it doesn't work, but what part doesn't work?
Bernhard is offline   Reply With Quote

Old   June 28, 2011, 11:00
Default
  #3
New Member
 
Max
Join Date: Feb 2011
Location: Germany
Posts: 4
Rep Power: 15
Silence19 is on a distinguished road
Hello,

first I need to calculate the velocity vector. I open the calculator and choose cell data for the attribute mode. Then I type: (x_velocity*ihat) + (y_velocity*jhat). x and y velocity are the exported scalars.

when I click Apply I get these errors:

p, li { white-space: pre-wrap; }
ERROR: In ..\..\..\..\source\VTK\Common\vtkFunctionParser.cx x, line 1461
vtkFunctionParser (0B6E3700): Syntax error: expecting a variable name; see position 0




Warning: In ..\..\..\..\source\VTK\Graphics\vtkArrayCalculator .cxx, line 401
vtkPVArrayCalculator (10E502A8): An error occured when parsing the calculator's function. See previous errors.



I think its a simple problem that I just don't get

Any idears?

Best regards

Max
Silence19 is offline   Reply With Quote

Old   June 28, 2011, 11:22
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Hmm, I now realize you're using Fluent, than I cannot really help you.
Bernhard is offline   Reply With Quote

Old   June 29, 2011, 04:35
Default
  #5
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,273
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by Silence19 View Post
Hello,

first I need to calculate the velocity vector. I open the calculator and choose cell data for the attribute mode. Then I type: (x_velocity*ihat) + (y_velocity*jhat). x and y velocity are the exported scalars.

when I click Apply I get these errors:

p, li { white-space: pre-wrap; }
ERROR: In ..\..\..\..\source\VTK\Common\vtkFunctionParser.cx x, line 1461
vtkFunctionParser (0B6E3700): Syntax error: expecting a variable name; see position 0




Warning: In ..\..\..\..\source\VTK\Graphics\vtkArrayCalculator .cxx, line 401
vtkPVArrayCalculator (10E502A8): An error occured when parsing the calculator's function. See previous errors.



I think its a simple problem that I just don't get

Any idears?

Best regards

Max

I think, (I might be wrong), but you are trying to create a vector with only two components,

(x_velocity*ihat) + (y_velocity*jhat)

you shall need z_velocity too, because most probably paraview stores every thing as 3D data. So he might be complaining:

Syntax error: expecting a variable name; see position 0


that expected variable might be z_velocity
arjun is offline   Reply With Quote

Old   June 29, 2011, 10:30
Default
  #6
New Member
 
Max
Join Date: Feb 2011
Location: Germany
Posts: 4
Rep Power: 15
Silence19 is on a distinguished road
Sorry, I forgot to mention that I only run a 2D simulation. so there was no z-component to export.
Silence19 is offline   Reply With Quote

Old   June 29, 2011, 18:30
Default
  #7
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,273
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by Silence19 View Post
Sorry, I forgot to mention that I only run a 2D simulation. so there was no z-component to export.

that i understood when i posted that message. Was talking about how paraview *MIGHT* be handling it.
arjun is offline   Reply With Quote

Old   October 7, 2012, 09:34
Default
  #8
New Member
 
Ali Q Raeini
Join Date: Feb 2010
Posts: 24
Rep Power: 16
aliqasemi is on a distinguished road
I know its too late, but changing ihat to iHat, etc, might help
aliqasemi 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Paraview 5.4 in shell environment of5x - Segmentation fault (core dumped) dslbkxd OpenFOAM Installation 1 February 3, 2018 00:56
plottting tangnetial and axial velocity vectors on a plane Shamoon Jamshed Tecplot 2 December 4, 2017 13:55
[OpenFOAM] Visualize velocity vectors along a line Ruehri ParaView 1 July 29, 2010 16:29
relative velocity vectors carno FLUENT 0 May 9, 2008 06:59
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 02:11.