|
[Sponsors] |
Tangential component of gradient of scalar field at surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2007, 07:14 |
Hi,
To implement a thermo
|
#1 |
Senior Member
Thomas Jung
Join Date: Mar 2009
Posts: 102
Rep Power: 17 |
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 |
|
March 23, 2007, 08:58 |
Unfortunately, calculating the
|
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
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, 03:27 |
Any luck?
|
#3 |
Senior Member
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13 |
Hi Thomas,
Were you able to implement grad T tangentially? I'm also having a problem with that. Regards Srivaths |
|
June 4, 2013, 03:51 |
|
#4 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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, 06:07 |
want grad T along a curved surface
|
#5 |
Senior Member
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13 |
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. |
|
July 4, 2013, 08:13 |
|
#6 | |
Senior Member
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13 |
Quote:
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface tangential gradient | nzy102 | OpenFOAM Post-Processing | 2 | December 5, 2018 10:50 |
from a vecor field to get a gradient of scalar | dusky.he | Main CFD Forum | 4 | March 30, 2007 10:08 |
scalar gradient | roadracer | Siemens | 1 | October 29, 2003 11:57 |
how to get a gradient of scalar | xqy | Phoenics | 2 | June 7, 2002 22:43 |
field by field decomposition vs. component-wise | zhanglei | Main CFD Forum | 0 | January 5, 2001 10:06 |