Hi, To implement a thermo
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 =
const fvPatchField<vector> TGrad=fvc::grad(TB);
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!
Unfortunately, calculating the
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.
Were you able to implement grad T tangentially? I'm also having a problem with that.
Why do you need tangential component instead of normal one?
want grad T along a curved surface
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.
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.
|All times are GMT -4. The time now is 19:07.|