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.
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
*****
Vector field decomposed in tang and normal component
-
- Site Admin
- Posts: 4838
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Vector field decomposed in tang and normal component
Hi
Maybe you could take normal from Elmer or perhaps Paraview provides one. Then
proj=|E-dot(E,nrm)*nrm|
-Peter
Maybe you could take normal from Elmer or perhaps Paraview provides one. Then
proj=|E-dot(E,nrm)*nrm|
-Peter
Re: Vector field decomposed in tang and normal component
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
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
-
- Site Admin
- Posts: 4838
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Vector field decomposed in tang and normal component
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
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