CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Vectors in z-direction

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 5, 2012, 04:41
Default Vectors in z-direction
  #1
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   September 8, 2012, 14:27
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   September 10, 2012, 10:52
Default
  #3
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
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
Tobi is offline   Reply With Quote

Old   September 14, 2012, 05:29
Default
  #4
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   September 15, 2012, 11:59
Default
  #5
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   September 15, 2012, 12:31
Default
  #6
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   September 15, 2012, 15:00
Default
  #7
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Oh yes - it is

Thanks a lot.
Never realized the operators "kHat, jHat, iHat" since 2 years
Tobi is offline   Reply With Quote

Old   September 15, 2012, 15:06
Default
  #8
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to 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
Attached Images
File Type: jpg 2Dvectors.jpg (66.7 KB, 8 views)
Tobi is offline   Reply With Quote

Old   September 15, 2012, 15:23
Default
  #9
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by Tobi View Post
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
SOLVED ... Thanks for reading and your advice.

Tobi
Tobi 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
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Running, Solving & CFD 0 October 27, 2009 09:47
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Programming & Development 0 October 26, 2009 13:10
Integration Points and normal area vectors Bloshchitsyn Vladimir CFX 0 November 26, 2007 08:35
direction vectors for a curved shape Judd FLUENT 3 August 27, 2007 13:12
vectors in radial, tangential and axial direction mateus FLUENT 1 April 11, 2006 05:57


All times are GMT -4. The time now is 05:24.