Hi,

 

to calculate the gradient of a CellVariable one can use .getGrad or 
.getFaceGrad.

 

For .getFaceGrad I have no problem, (it calculate the gradient between cell : 
(phi[1]-phi[0]/x[1] -x[0]) and return a FaceVar ...but I don't understand 
.getGrad. What it does? 

As it compute the gradient the values should be more or less the same as 
.getFaceGrad but its values are far wrong (+30%,+50%, + 100%).

 

I would like to use .getGrad as I need to compute a source term :   q = 
C*grad(V)   and so I need q as CellVariable; but if I use .getFaceGrad for 
computing the gradient I get a FaceVariable. 

What can I do?

There is a way to transform a FaceVar into CellVar ?

 

Thanks.

           Eduard
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

Reply via email to