|
[Sponsors] |
Problem with definition of normal gradient to a surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 23, 2012, 04:53 |
Problem with definition of normal gradient to a surface
|
#1 |
Member
Simone
Join Date: Sep 2012
Posts: 95
Rep Power: 14 |
Hi guys!
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); vectorField gradUT(fvc::snGrad(UT)); But it doesn't work. Do you have any ideas? I really don't know what to do. Cheers Simone Last edited by batta31; October 24, 2012 at 10:36. |
|
October 26, 2012, 09:48 |
|
#2 |
Member
Simone
Join Date: Sep 2012
Posts: 95
Rep Power: 14 |
There isn't anyone who can give me a suggestion?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
surface tension as function of normal gradient | tom | FLUENT | 2 | September 7, 2016 04:48 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03: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 08:59 |