CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Display velocity-vectors in Paraview 3.10

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

Reply
 
LinkBack Thread Tools 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: 5
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: 787
Rep Power: 11
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: 5
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: 787
Rep Power: 11
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: 353
Rep Power: 9
arjun is on a distinguished road
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: 5
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: 353
Rep Power: 9
arjun is on a distinguished road
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: 21
Rep Power: 6
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paraview display problem jiejie OpenFOAM Paraview & paraFoam 4 October 13, 2013 21:29
Question about velocity vectors kbaker FLUENT 5 June 15, 2011 16:47
Visualize velocity vectors along a line Ruehri OpenFOAM Paraview & paraFoam 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 07:17.