CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Display velocity-vectors in Paraview 3.10 (https://www.cfd-online.com/Forums/paraview/89972-display-velocity-vectors-paraview-3-10-a.html)

Silence19 June 27, 2011 17:52

Display velocity-vectors in Paraview 3.10
 
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

Bernhard June 28, 2011 04:58

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?

Silence19 June 28, 2011 11:00

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

Bernhard June 28, 2011 11:22

Hmm, I now realize you're using Fluent, than I cannot really help you.

arjun June 29, 2011 04:35

Quote:

Originally Posted by Silence19 (Post 313915)
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

Silence19 June 29, 2011 10:30

Sorry, I forgot to mention that I only run a 2D simulation. so there was no z-component to export.

arjun June 29, 2011 18:30

Quote:

Originally Posted by Silence19 (Post 314077)
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.

aliqasemi October 7, 2012 09:34

I know its too late, but changing ihat to iHat, etc, might help


All times are GMT -4. The time now is 21:42.