Vectors in z-direction

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

 September 5, 2012, 04:41 Vectors in z-direction #1 Senior Member     Tobias Holzmann Join Date: Oct 2010 Location: Leoben (Austria) Posts: 1,552 Blog Entries: 6 Rep Power: 27 Hey all, just a (simple?) question. I wanna show the glyph on a slice only on the z-velocity component. If I am using the filter glyph I get the vector of the mag(U). Is it possible to show only the glyph in z-direction? If yes (and I think that is not a problem) how can I manage it. Thanks in advance Tobi

 September 8, 2012, 14:27 #2 Super Moderator   Bruno Santos Join Date: Mar 2009 Location: Lisbon, Portugal Posts: 9,748 Blog Entries: 39 Rep Power: 103 Hi Tobi, I'm a bit late to answer you, but one of the answers is rather simple: use the Calculator filter! Use it to create a new vector, based on the original one, but which you only copy the Z data Or you could even use it to point to X or Y Best regards, Bruno __________________ OpenFOAM: FAQ | Getting started Forum: How to get help, to post code/output and forum guide What am I doing/planning: blog/wiki Read this before sending me PM

September 10, 2012, 10:52
#3
Senior Member

Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,552
Blog Entries: 6
Rep Power: 27
Quote:
 Originally Posted by wyldckat Hi Tobi, I'm a bit late to answer you, but one of the answers is rather simple: use the Calculator filter! Use it to create a new vector, based on the original one, but which you only copy the Z data Or you could even use it to point to X or Y Best regards, Bruno

Hi Bruno,

I used the calculator filter - but how can I create a Vectorfield ?
Well I ll have a look at it later again.

Tobi

 September 14, 2012, 05:29 #4 Super Moderator   Takuya OSHIMA Join Date: Mar 2009 Location: Niigata City, Japan Posts: 518 Blog Entries: 1 Rep Power: 12 Tobi, If your have a vector field named e.g. "velocity", try "velocity_Z*kHat" as the calculator expression, where the field name with a _Z (or _X or _Y for x- and y-axes) appended denotes a scalar field of the z-axis component of the vector field and kHat is a z-directional unit vector (0 0 1). And glyph the "Result" vector field. Also, when you check the result by making a comparison with a glyph representation of the original vector field, don't forget to set the scale factors of the glyph filters (for the Z-component field and for the original field) to an identical value so that they have the same visual magnification. Takuya

 September 15, 2012, 11:59 #5 Senior Member     Tobias Holzmann Join Date: Oct 2010 Location: Leoben (Austria) Posts: 1,552 Blog Entries: 6 Rep Power: 27 Hi all, I forget something and mixed up some wrong details. I have a plane with the normal to z. So I wanna have the Glyph on that plane with the x and y components. the z - component should be zero Well one way I found out is to plot the glyph as normal and set the view direction normal to the surface so you can not see the z-components couse that is parallel to the direction of view and so you do not realize that. After it I switch to 2D - glyph and it looks very nice. But is there a other solution? More like the way Takuya goes? Hope now its clear? Tobi

 September 15, 2012, 12:31 #6 Super Moderator   Takuya OSHIMA Join Date: Mar 2009 Location: Niigata City, Japan Posts: 518 Blog Entries: 1 Rep Power: 12 It is so trivial if you get the full idea of my previous post that I'd leave you to find the solution by yourself. Just look for the x- and y-directional unit vector names (similar to kHat for the z direction) from the calculator panel. T

 September 15, 2012, 15:00 #7 Senior Member     Tobias Holzmann Join Date: Oct 2010 Location: Leoben (Austria) Posts: 1,552 Blog Entries: 6 Rep Power: 27 Oh yes - it is Thanks a lot. Never realized the operators "kHat, jHat, iHat" since 2 years

September 15, 2012, 15:06
#8
Senior Member

Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,552
Blog Entries: 6
Rep Power: 27
Hey Takuya,

well a further question.
Do you know how to remove the vectors on the boundarys ? :/

Like in the picture? I tried to set the z-component to zero but it dont work?
Any suggestions?

Tobi
Attached Images
 2Dvectors.jpg (66.7 KB, 9 views)

September 15, 2012, 15:23
#9
Senior Member

Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,552
Blog Entries: 6
Rep Power: 27
Quote:
 Originally Posted by Tobi Hey Takuya, well a further question. Do you know how to remove the vectors on the boundarys ? :/ Like in the picture? I tried to set the z-component to zero but it dont work? Any suggestions? Tobi

Tobi

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post sebastian_vogl OpenFOAM Programming & Development 1 October 11, 2016 13:17 sebastian_vogl OpenFOAM Running, Solving & CFD 0 October 27, 2009 09:47 Bloshchitsyn Vladimir CFX 0 November 26, 2007 08:35 Judd FLUENT 3 August 27, 2007 13:12 mateus FLUENT 1 April 11, 2006 05:57

All times are GMT -4. The time now is 09:52.