evaluateCGradient ,, trying find normal vector

6 visualizaciones (últimos 30 días)
raed alraidmanuon
raed alraidmanuon el 21 de Sept. de 2020
Comentada: raed alraidmanuon el 10 de Oct. de 2020
Hi
I would get the outward normal vector for at a boundary where I have a solution by pde. I have used 'evaluate Gradient' but unfortunately I have no idea to get the normal vector of the boundary.
Thanks

Respuesta aceptada

Aman Vyas
Aman Vyas el 8 de Oct. de 2020
Hi,
I think you can break this problem in two parts.
1) Detecting the boundary of the surface, object etc.
2) Finding the normal on the boundary.
Sinc you have solution from PDE, you will have exact information of boundary conditions using boundary function. Once you have boundary available apply evaluateCGradient which gives flux of the PDE. Flux actually flows as outward normal vector to the surface and thus this function will help you get the normal vector.
There are various features available in this function. You can take a look at this link:
Hope it helps !
  1 comentario
raed alraidmanuon
raed alraidmanuon el 10 de Oct. de 2020
Thank you so much Aman for your help. I was doubting to use evaluateCGradient but now you give me the green light to use it.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by