Skip to content

Fetching normals and tangents of a Tri6 #3073

Answered by jwpeterson
rebpoli asked this question in Q&A
Discussion options

You must be logged in to vote

You can call:

const std::vector<RealGradient>& dxyzdxi = fe->get_dxyzdxi();
const std::vector<RealGradient>& dxyzdeta = fe->get_dxyzdeta();

Then the "face" normal to the Tri6 at quadrature point qp should be given by:

dxyzdxi[qp].cross(dxyzdeta[qp]).unit()

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by roystgnr
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jwpeterson
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants