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

wallGradU components

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 1 Post By fumiya
  • 2 Post By fumiya
  • 2 Post By fumiya
  • 1 Post By anishtain4

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2013, 09:26
Default wallGradU components
  #1
Member
 
Amin
Join Date: Mar 2012
Posts: 60
Rep Power: 14
amin66 is on a distinguished road
Hi all
when I use "wallGradU" command for a curved wall (like a cylinder or sphere), i have 3 components for wallGradU in paraview. what are them?

are ( dUx/dx , dUy/dy , dUz/dz )? if x, y, z been cartesian system....

or if, for the curved wall, we assume normal spatial component to "n" and tangential components to "t1" and "t2" , then 3 components of wallGradU are (dUn/dn , dUt1/dt1 , dUt2/dt2 ) ???

Thanks all
Amin

Last edited by amin66; February 19, 2013 at 09:42.
amin66 is offline   Reply With Quote

Old   February 20, 2013, 10:14
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi Amin,

I think the three components of wallGradU are (Ux/Δ , Uy/Δ , Uz/Δ).

where
Δ: distance between cell center and the wall
U = (Ux, Uy, Uz)

The vector wallGradU is the approximation of dU/dn (n: wall normal direction).

Hope that helps,
Fumiya
lucasbraganca likes this.
fumiya is offline   Reply With Quote

Old   February 20, 2013, 17:55
Default
  #3
New Member
 
Antonio
Join Date: Jan 2013
Posts: 6
Rep Power: 13
Antonio.vucci is on a distinguished road
Hello Friends

fumiya, how can you find the location af separation point at a curvactured wall with this component?

Last edited by Antonio.vucci; February 20, 2013 at 19:33.
Antonio.vucci is offline   Reply With Quote

Old   February 21, 2013, 04:07
Default
  #4
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Separation point is where the second derivative becomes zero, there is no way you can find it with first derivative
anishtain4 is offline   Reply With Quote

Old   February 21, 2013, 06:14
Default
  #5
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
I have misunderstood the utility "wallGradU" and the "snGrad()" function used in it.
In the utility "wallGradU", the wall normal gradient is calculated using the "snGrad()"
function and this function discretizes the normal gradient using the following first
order approximation:

In fvPatchField.C
Code:
00176    // Return gradient at boundary
00177    template<class Type>
00178    Foam::tmp<Foam::Field<Type> > Foam::fvPatchField<Type>::snGrad() const
00179    {
00180        return (*this - patchInternalField())*patch_.deltaCoeffs();
00181    }
snGrad() = (U[faceI]-U[cellI])/mag(Cf[faceI]-Cn[cellI])
where
faceI: label of the face on which we calculate the normal gradient
cellI: label of the cell adjacent to the faceI
Cf: position vector of face center
Cn: position vector of cell center

As you can see, the surface normal gradient calculated by wallGradU does not apply any
non-orthogonality or skewness corrections.

Hope that helps,
Fumiya
cfdsolver1 and Ethon like this.
fumiya is offline   Reply With Quote

Old   March 1, 2013, 10:36
Default
  #6
Member
 
Amin
Join Date: Mar 2012
Posts: 60
Rep Power: 14
amin66 is on a distinguished road
thanks all
Mahdi, as i know separation occurs when the first derivation of velocity near the wall becomes zero.

Fumiya, is there any way to determine separation point with wallGradU on cylinder? or even with other methods?
amin66 is offline   Reply With Quote

Old   March 1, 2013, 11:41
Default
  #7
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi Amin,

I think it depends on your simulations:
  1. Solving laminar flows
  2. Solving turbulent flows with low Re trubulence model
  3. Solving turbulent flows with high Re turbulence model

In the case of 1 and 2:
You can use the wallGradU to find the positions where wall normal gradient of velocity is zero.

In the case of 3:
You can use the wallShearStress utility to find the positions where the wall shear stress vanishes.

Correct the mistakes, if any, in my post.

Fumiya
amin66 and Ethon like this.
fumiya is offline   Reply With Quote

Old   March 2, 2013, 08:49
Default
  #8
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Quote:
Originally Posted by fumiya View Post
Solving turbulent flows with high Re turbulence model

You can use the wallGradU to find the positions where wall normal gradient of velocity is zero.

Fumiya
As you know when you capture viscose sub-layer it is a linear profile, so the derivative of it is zero, while the flow is not separated. Flow separates when you have zero shear stress ( You can derive it easily from NS equations, just put non-slip conditions and look for zero pressure gradient )

So I believe third method Fumiya mentioned would be the best and most reliable
amin66 likes this.
anishtain4 is offline   Reply With Quote

Old   March 3, 2013, 11:12
Default
  #9
Member
 
Amin
Join Date: Mar 2012
Posts: 60
Rep Power: 14
amin66 is on a distinguished road
Hi Fumiya & Mahdi

Thank you. your comments was so usefull.

Regards
Amin
amin66 is offline   Reply With Quote

Old   March 25, 2016, 21:09
Default
  #10
Member
 
RacMat
Join Date: Jan 2013
Posts: 78
Rep Power: 13
rvl565 is on a distinguished road
Quote:
Originally Posted by fumiya View Post
I have misunderstood the utility "wallGradU" and the "snGrad()" function used in it.
In the utility "wallGradU", the wall normal gradient is calculated using the "snGrad()"
function and this function discretizes the normal gradient using the following first
order approximation:

In fvPatchField.C
Code:
00176    // Return gradient at boundary
00177    template<class Type>
00178    Foam::tmp<Foam::Field<Type> > Foam::fvPatchField<Type>::snGrad() const
00179    {
00180        return (*this - patchInternalField())*patch_.deltaCoeffs();
00181    }
snGrad() = (U[faceI]-U[cellI])/mag(Cf[faceI]-Cn[cellI])
where
faceI: label of the face on which we calculate the normal gradient
cellI: label of the cell adjacent to the faceI
Cf: position vector of face center
Cn: position vector of cell center

As you can see, the surface normal gradient calculated by wallGradU does not apply any
non-orthogonality or skewness corrections.

Hope that helps,
Fumiya
Hi!

So this means that the first component of GradU is dU/dn ?

Thanks
rvl565 is offline   Reply With Quote

Reply


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
getting (0 0 0) wallGradU value when i m probing wallGradU at some points suryawanshi_nitin OpenFOAM 1 December 9, 2013 12:36
how to extract the components of radial and tangential velocities renyun0511 OpenFOAM Running, Solving & CFD 0 April 8, 2011 08:15
Transient Statistics for turbo components Suzzn CFX 5 May 4, 2010 10:56
velocity components in cylindrical coordinates iperten CFX 2 March 31, 2009 09:22
reynolds stress components in CEL Roberto CFX 0 December 3, 2008 04:29


All times are GMT -4. The time now is 17:25.