|October 23, 2012, 03:53||
Problem with definition of normal gradient to a surface
Join Date: Sep 2012
Posts: 95Rep Power: 5
I'm experiencing some troubles with the definition of the normal gradient of the velocity to a patch. What I need to obtain is the normal gradient to the patch of the normal component of the velocity and the tangential component of the velocity separately.
So I've tried so implement this piece of code:
word patchName1 = "foil";
label patchID1 = mesh.boundary().findPatchID(patchName1);
vectorField UN((mesh.boundary()[patchID1].nf() & U.boundaryField()[patchID1]) * mesh.boundary()[patchID1].nf());
vectorField UT(U.boundaryField()[patchID1] - UN);
But it doesn't work. Do you have any ideas? I really don't know what to do.
Last edited by batta31; October 24, 2012 at 09:36.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Problem with Gmsh||nishant_hull||Open Source Meshers: Gmsh, Netgen, CGNS, ...||23||August 5, 2015 02:09|
|[ICEM] Problem making structured mesh on a surface||froztbear||ANSYS Meshing & Geometry||4||November 10, 2011 09:52|
|[ICEM] Problem making structural mesh on a surface||froztbear||ANSYS Meshing & Geometry||1||November 10, 2011 09:52|
|How do I compute the normal vector to a surface with FEM||Vasilis||Main CFD Forum||3||July 31, 2009 07:59|
|surface tension as function of normal gradient||tom||FLUENT||0||April 30, 2008 14:47|