# Tangential component of gradient of scalar field at surface

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

 March 23, 2007, 07:14 Hi, To implement a thermo #1 Senior Member   Thomas Jung Join Date: Mar 2009 Posts: 100 Rep Power: 8 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& TB = lookupPatchField("T"); const fvPatchField TGrad=fvc::grad(TB); results in: no matching function for call to 'grad(const Foam::fvPatchField& 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

 March 23, 2007, 08:58 Unfortunately, calculating the #2 Senior Member   Eugene de Villiers Join Date: Mar 2009 Posts: 725 Rep Power: 12 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.

 June 4, 2013, 02:27 Any luck? #3 Senior Member   Srivathsan N Join Date: Jan 2013 Location: India Posts: 101 Rep Power: 4 Hi Thomas, Were you able to implement grad T tangentially? I'm also having a problem with that. Regards Srivaths

 June 4, 2013, 02:51 #4 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,185 Rep Power: 16 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.

 June 4, 2013, 05:07 want grad T along a curved surface #5 Senior Member   Srivathsan N Join Date: Jan 2013 Location: India Posts: 101 Rep Power: 4 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.

July 4, 2013, 07:13
#6
Senior Member

Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 4
Quote:
 Originally Posted by eugene 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?

__________________
Regards,

Srivaths

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post nzy102 OpenFOAM Post-Processing 1 October 15, 2008 02:22 dusky.he Main CFD Forum 4 March 30, 2007 09:08 roadracer CD-adapco 1 October 29, 2003 11:57 xqy Phoenics 2 June 7, 2002 21:43 zhanglei Main CFD Forum 0 January 5, 2001 10:06

All times are GMT -4. The time now is 22:57.