Vector field decomposed in tang and normal component

Mesh generators, CAD programs, and other tools
Post Reply
zeljkoT
Posts: 24
Joined: 14 Nov 2018, 12:55
Antispam: Yes

Vector field decomposed in tang and normal component

Post by zeljkoT »

Hi all

Using Paraview, I would like to split the 2D vector field along the edge of two materials in its tangential and normal components. In other words: I'm interested in the scalar value of the projection of the 2D vector field onto the tangential edge vector.

The normal and tangential vectors on the lower material I did get with following filters: 1) Threshold, 2) Extract Surface, 3) Feature Edges and lastly with a 4) Programmable Filter. You can see the vectors in yellow.
image.png
(155.33 KiB) Not downloaded yet
But I don't understand how to access now the electric field E and calculate the projection (proj=dot(E,tang)/tang_norm) to finally visualize it using a line chart.

Any help warmly welcomed... thx

*****
I posted the question already on the Paraview support page but did not get any help so far. There you can download the files. Here is the link:
https://discourse.paraview.org/t/vector ... duct/13100
*****
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Vector field decomposed in tang and normal component

Post by raback »

Hi

Maybe you could take normal from Elmer or perhaps Paraview provides one. Then

proj=|E-dot(E,nrm)*nrm|

-Peter
zeljkoT
Posts: 24
Joined: 14 Nov 2018, 12:55
Antispam: Yes

Re: Vector field decomposed in tang and normal component

Post by zeljkoT »

Hi Peter

Thank you for your reply.

Hmm, ok.
Do you know how to save the normal vectors from Elmer into the same .vtu file ? Is this even possible ? Then I can proceed as you suggested.

Thank you very much.
Cheers
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Vector field decomposed in tang and normal component

Post by raback »

Hi,

You could apply "NormalSolver". It is features in test case "normals". In many places normals are treated but this might be the easiest way to get them into a vtu file.

-Peter
Post Reply