|
[Sponsors] |
May 25, 2010, 17:13 |
first order gradient scheme ??
|
#1 |
Member
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 34
Rep Power: 17 |
Hi.
I want to implement something seemingly simple, but I've managed to waste half a day on this already... All I want to do is to implement a gradient scheme for a scalar that is first order upwind. (ie; for a discrete jump in field values, I only want ONE cell to show a value for the gradient) presumably, something along the lines of: gradSchemes { grad(p) Gauss linearUpwind ; } should work, but this takes me down a path of error messages such as: request for surfaceScalarField Gauss from objectRegistry region0 failed available objects of type surfaceScalarField are 3 ( weightingFactors differenceFactors_ phi ) where following the suggested options leads to nothing useful. Any help sincerely appreciated. |
|
May 25, 2010, 23:06 |
|
#2 |
Member
|
I do not know why you need a linear upwind differencing for the pressure gradient. Upwind is applied for the convection term in the N-S equation.
The error message means that the field in the grad operator (in your case p) is not a surfaceScalarField. I think gradSchemes { grad(p) Gauss linear; } will work in your case. Best,
__________________
Jinbiao |
|
May 26, 2010, 10:51 |
|
#3 |
Member
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 34
Rep Power: 17 |
I never said I was solving NS equations, using the scalar p perhaps confuses people.
Let me graphically illustrate what I'm seeking: |
|
May 26, 2010, 13:08 |
|
#4 |
Member
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 34
Rep Power: 17 |
by just not giving up, I got what I wanted:
the magic code: grad(s) faceLimited Gauss upwind phi 0; thanks to all who looked in on this. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
High order scheme vs Specified Blend factor 1 | realanony87 | CFX | 1 | November 10, 2015 11:36 |
How to compute UDS fourth order gradient | Emma66 | FLUENT | 1 | April 27, 2010 06:44 |
divergence with higher order scheme | shekharc | Main CFD Forum | 1 | July 23, 2009 14:53 |
Higher order downwind scheme | jelmer | OpenFOAM Running, Solving & CFD | 4 | August 9, 2006 07:43 |
Discretisation scheme in CFX-1st or 2nd order? | Pete | CFX | 10 | January 12, 2005 13:48 |