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

calculation of gradients near wall

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2009, 02:51
Default calculation of gradients near wall
  #1
New Member
 
Sumeet Kumar
Join Date: Mar 2009
Posts: 21
Rep Power: 17
crazysumi is on a distinguished road
Hi FOAMers,

I want to calculate gradients at the cell centroids connected to a wall patch.

The quantities I need to evaluate are :-
a) del Utau / del tau
b) del Unormal / del normal
c) del p / del tau

Here,
Utau is tangential component of velocity
Unormal is normal component of velocity
tau is a coordinate tangent to local wall face
normal is a coordinate normal to local wall face

Can someone assist me calculation of these quantities at the cell centroids. Hints and suggestions in this regard are greatly appreciated

Thanks & Regards
Sumeet
crazysumi is offline   Reply With Quote

Old   November 5, 2009, 09:54
Default
  #2
New Member
 
Sumeet Kumar
Join Date: Mar 2009
Posts: 21
Rep Power: 17
crazysumi is on a distinguished road
Hi Again

I tried to calculate following quanitity..

1) del p / del tau
vectorField n = patch().nf() / mag( patch().nf() ) ;
volVectorField gradP(fvc::grad(db().lookupObject<volScalarField>( "p")));
const vectorField gradPInternal = gradP.boundaryField()[patchI].patchInternalField();
const scalarField gradPtau = mag(gradPInternal - n * (gradPInternal & n));

The scalarField gradPtau will give me the required derivative

However the above method cannot be reiterated for calculation of following derivatives.-
a) del U(tau) / del tau
b) del U(normal) / del normal

because the U (tau) and U (normal) vectors are only defined at the cell centroids of patchInternalField list. How do I calculate such derivatives. Please someone advice.

Regards,
Sumeet
crazysumi 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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Warning 097- AB Siemens 6 November 15, 2004 05:41
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12
Wall function in adverse pressure gradients stephane baralon Main CFD Forum 11 September 2, 1999 05:05


All times are GMT -4. The time now is 01:55.