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

[General] Vectors in z-direction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2012, 05:41
Default Vectors in z-direction
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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, 15:27
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 11:52
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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, 06:29
Default
  #4
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
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, 12:59
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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, 13:31
Default
  #6
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
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, 16:00
Default
  #7
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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, 16:06
Default
  #8
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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, 35 views)
Tobi is offline   Reply With Quote

Old   September 15, 2012, 16:23
Default
  #9
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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

Old   July 19, 2022, 05:40
Default
  #10
New Member
 
Paul
Join Date: Nov 2017
Posts: 15
Rep Power: 9
Paul Caicedo is on a distinguished road
Hello Tobi,

Would you mind sharing the screenshot of your calculator? I have an X plane and my equation looks like the attachment based on Takuya's answer.

I was thinking of using sqrt with z and y, but it doesn't work. There is no way to select the result array name from the calculator in the orientation array of the glyph filter.

Regards,
Paul
Attached Images
File Type: png Screenshot 2022-07-19 023654.png (26.3 KB, 11 views)

Last edited by Paul Caicedo; July 29, 2022 at 02:43.
Paul Caicedo 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
direction vectors for lift and drag in fluent nauman55 FLUENT 7 September 23, 2020 15:47
Parametric study - adjusting lift and drag direction vectors clarice FLUENT 1 April 25, 2019 12:13
Velocity Vectors shown in both direction Blue Fluent Multiphase 0 June 4, 2014 03:34
Direction vectors and adsorption in porous zones Toplaa FLUENT 0 August 16, 2013 15:22
I need help about velocity vectors direction in cylinder modeling!!! aminepoxnet FLUENT 0 March 17, 2013 18:41


All times are GMT -4. The time now is 12:41.