|
[Sponsors] |
October 13, 2008, 08:18 |
Hi to everybody!
I need to co
|
#1 |
Senior Member
|
Hi to everybody!
I need to control explicitly the interpolation scheme used in the fvc::grad operator. I read that if I use fvc::grad(phi), where phi is a vol<type>Field, the gradient is performed with the linear interpolation of phi on the cell-faces, while if I whant to control the interpolation scheme I have to set phi to a surface<type>Field. The problem is that if I put surfaceTensorField phi = mesh.Sf()*u1; it doesn't work! What's wrong? Thank you, Ivan |
|
October 14, 2008, 10:57 |
Ivan,
Actually, grad(phi) use
|
#2 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Ivan,
Actually, grad(phi) uses the corresponding technique stipulated in the fvSchemes file, which is not always linear interpolation. You can control this behavior by changing inputs, not code. -DPS |
|
October 14, 2008, 11:30 |
David,
you mean that if I wan
|
#3 |
Senior Member
|
David,
you mean that if I want to compute my gradient of volScalarField p with a (for example) cubic scheme I just have to write: fvc::grad(p) and after in the fvSchemes I have to write gradSchemes { default Gauss cubic; } ? If it is, I misunderstood the programmer's guide passage in which it says that if put a vol<type>Field in a fvc::div or in a fvc:grad, the code uses by default a linear centred interpolation for the variables... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AUSM scheme ? Central Scheme | boling | Main CFD Forum | 7 | January 7, 2016 03:41 |
control volume | leo | FLUENT | 0 | November 1, 2007 10:54 |
Solver Control | Anantha | CFX | 1 | September 4, 2007 14:30 |
control question | Pratap | Main CFD Forum | 2 | August 4, 2004 10:25 |
Help!explicit multistage scheme with upwind scheme | D .T. | Main CFD Forum | 1 | June 4, 2003 04:42 |