How do we shift inward-pointing normal vectors (pointing towards the interior of the surface) outward? The arrows are invisble underneath the surface of the bluff body

normal(i,j,:)= cross(V2,V1)/((norm(V1)).*(norm(V2))); quiver3 (Sx,Sy,Sz,(normal(i,j,1)),(normal(i,j,2)),(normal(i,j,3)),'b'); hold on

Answers (1)

A simple solution is to reverse the direction of normal vector by multiplying them with -1 like this
normal(i,j,:)= cross(V2,V1)/((norm(V1)).*(norm(V2)));
quiver3 (Sx,Sy,Sz,-(normal(i,j,1)),-(normal(i,j,2)),-(normal(i,j,3)),'b');
hold on

Categories

Find more on Fluid Dynamics in Help Center and File Exchange

Asked:

on 5 May 2018

Answered:

on 5 May 2018

Community Treasure Hunt

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

Start Hunting!