|
[Sponsors] |
Linear variation of gradient of a scalar in a cell. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 15, 2020, 09:45 |
Linear variation of gradient of a scalar in a cell.
|
#1 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
If the temperature (or any scalar) is varying linearly in a cell, will the variation of the gradient of the temperature also be linear?
If we say that temperature, T, is varying linearly in a square plate given by T = Tp +(x-xp)grad(Tp) where Tp is the Temperature at the centroid of the square plate, xp is the centroid, x is any point on the plate so (x-xp) is the position (so a vector) of any point on the plate from the centroid, grad(Tp) is the temperature gradient at the centroid. Is it correct to write, a) grad(T) = grad(Tp)+(x-xp)grad(grad(Tp)) as (x-xp), even though is a vector, doesn't actually change with x,y,z OR b) grad(T) = grad(Tp)+grad[(x-xp)grad(Tp)] as we cannot consider (x-xp) to be a constant with respect to x, y, z. Ref: Prof.Hrvoje Jasak Thesis, Error Analysis and Estimation for the Finite Volume Method with Applications to Fluid Flows |
|
March 15, 2020, 11:53 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Once the temperature is assumed linear, its derivative is a constant in the cell: T(x)=T0+T1*x -> dT/dx=T1 |
||
March 15, 2020, 14:11 |
|
#3 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
||
March 15, 2020, 14:16 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Well, be careful that grad is also a vector operator. Work on the components dT/dx and dT/dy. But this way you are assuming a quadratic law for the temperature |
||
March 15, 2020, 14:26 |
|
#5 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
I am trying to use a second-order FVM method. I was told that using the second-order FVM method means all the variables (which I am starting to understand just means the primitive variables and not the gradient of the said variables) would be assumed to vary linearly within the cell. So as I am already assuming the temperature to vary linearly, and so I cannot assume the grad(T) to vary linearly again.
|
|
March 15, 2020, 14:41 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Indeed in a FVM you have a second order accuracy using a linear assumption for the function. The derivative is constant on each of the face so that you can evaluate their difference |
||
Tags |
finite volume calculus, gradient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Periodic flow using Cyclic - comparison with Fluent | nusivares | OpenFOAM Running, Solving & CFD | 30 | December 12, 2017 06:35 |
Neighboring cells in tetrahedral mesh | vishwesh | OpenFOAM Programming & Development | 9 | November 10, 2017 08:06 |
Diverging solution in transonicMRFDyMFoam | tsalter | OpenFOAM Running, Solving & CFD | 30 | July 7, 2014 07:20 |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |