CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Problem with definition of normal gradient to a surface

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2012, 03:53
Post Problem with definition of normal gradient to a surface
  #1
Member
 
Simone
Join Date: Sep 2012
Posts: 95
Rep Power: 13
batta31 is on a distinguished road
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 09:36.
batta31 is offline   Reply With Quote

Old   October 26, 2012, 08:48
Default
  #2
Member
 
Simone
Join Date: Sep 2012
Posts: 95
Rep Power: 13
batta31 is on a distinguished road
There isn't anyone who can give me a suggestion?
batta31 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
surface tension as function of normal gradient tom FLUENT 2 September 7, 2016 03:48
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
[ICEM] Problem making structured mesh on a surface froztbear ANSYS Meshing & Geometry 4 November 10, 2011 08:52
[ICEM] Problem making structural mesh on a surface froztbear ANSYS Meshing & Geometry 1 November 10, 2011 08:52
How do I compute the normal vector to a surface with FEM Vasilis Main CFD Forum 3 July 31, 2009 07:59


All times are GMT -4. The time now is 08:11.