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

Tangential component of gradient of scalar field at surface

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Sherlock_1812

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2007, 06:14
Default Hi, To implement a thermo
  #1
Senior Member
 
Thomas Jung
Join Date: Mar 2009
Posts: 102
Rep Power: 17
tehache is on a distinguished road
Hi,


To implement a thermocapilllary convection boundary condition, I need the gradient of temperature tangential to the surface. I know how to get the temperature patchfield, and also the gradient normal to the surface, but how to get the tangential component?
fvc::grad seems not to work on fvPatchFields, I tried this:

const fvPatchField<scalar>& TB =
lookupPatchField<volscalarfield,>("T");

const fvPatchField<vector> TGrad=fvc::grad(TB);

results in:

no matching function for call to 'grad(const Foam::fvPatchField<double>&

I could declare and compute temperature gradient as a volfield all over the volume, but I thought this should only be my last ressort, in order to save memory.

Thank you very much for any hint!

Thomas
tehache is offline   Reply With Quote

Old   March 23, 2007, 07:58
Default Unfortunately, calculating the
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Unfortunately, calculating the volume gradient is the only out-of-the-box option. To calculate patch tangential gradients would require a finiteArea formulation, which is not currently integrated to the level that would make it simple to employ.
eugene is offline   Reply With Quote

Old   June 4, 2013, 02:27
Default Any luck?
  #3
Senior Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13
Sherlock_1812 is on a distinguished road
Hi Thomas,

Were you able to implement grad T tangentially? I'm also having a problem with that.


Regards

Srivaths
Sherlock_1812 is offline   Reply With Quote

Old   June 4, 2013, 02:51
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi Srivathsan
Why do you need tangential component instead of normal one?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 4, 2013, 05:07
Default want grad T along a curved surface
  #5
Senior Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13
Sherlock_1812 is on a distinguished road
Hi ehsan

I am also working on a similar problem as Thomas. I would like to have the gradient of temperature tangential to the surface for simulating thermo-capilary effect on a curved surface.
immortality likes this.
Sherlock_1812 is offline   Reply With Quote

Old   July 4, 2013, 07:13
Default
  #6
Senior Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13
Sherlock_1812 is on a distinguished road
Quote:
Originally Posted by eugene View Post
Unfortunately, calculating the volume gradient is the only out-of-the-box option. To calculate patch tangential gradients would require a finiteArea formulation, which is not currently integrated to the level that would make it simple to employ.
Hi Eugene,

Is it possible to take the definition of fixedGradient boundary condition and map it along a patch (to get a gradient along the surface)?

What does transformFvPatchField do? Does it help here?

Thanks in advance.
__________________
Regards,

Srivaths
Sherlock_1812 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
Surface tangential gradient nzy102 OpenFOAM Post-Processing 2 December 5, 2018 09:50
from a vecor field to get a gradient of scalar dusky.he Main CFD Forum 4 March 30, 2007 09:08
scalar gradient roadracer Siemens 1 October 29, 2003 10:57
how to get a gradient of scalar xqy Phoenics 2 June 7, 2002 21:43
field by field decomposition vs. component-wise zhanglei Main CFD Forum 0 January 5, 2001 09:06


All times are GMT -4. The time now is 07:12.