evaluateCGradient ,, trying find normal vector

조회 수: 4 (최근 30일)
raed alraidmanuon
raed alraidmanuon . 2020년 9월 21일
댓글: raed alraidmanuon . 2020년 10월 10일
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.

채택된 답변

Aman Vyas
Aman Vyas 2020년 10월 8일
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
raed alraidmanuon
raed alraidmanuon 2020년 10월 10일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)


Help CenterFile Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by