|
[Sponsors] |
gauss grad no correction for coupled boundary??!! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 19, 2011, 19:19 |
gauss grad no correction for coupled boundary??!!
|
#1 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
In the code for gauss gradient (gaussGrad.c), the grad calcuation at the boundary is done as:
forAll(vsf.boundaryField(), patchi) { if (!vsf.boundaryField()[patchi].coupled()) { const vectorField n ( vsf.mesh().Sf().boundaryField()[patchi] / vsf.mesh().magSf().boundaryField()[patchi] ); gGrad.boundaryField()[patchi] += n * ( vsf.boundaryField()[patchi].snGrad() - (n & gGrad.boundaryField()[patchi]) ); } } So is there no correction for coupled patches?? I am getting embarrassingly wrong values of gradient at cyclic patch. Second question: In the same code, calculation of grad has been done for three sets of mesh entities: 1. On face centers on patch 2. On cell centers adjacent to patch 3. On all inside cell centers Is my understanding correct? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in fvschemes divSchemes cannot use Gauss linearUpwind | nico765 | OpenFOAM Bugs | 30 | August 9, 2018 08:39 |
please help me which solver is better for my application | Ger_US | OpenFOAM | 8 | January 8, 2013 13:29 |
natural convection | mehrdadeng | CFX | 10 | February 25, 2011 06:25 |
solution diverges when linear upwind interpolation scheme is used | subash | OpenFOAM | 0 | May 29, 2010 02:23 |
Stability problems with kepsilon in external aero | edreed | OpenFOAM Running, Solving & CFD | 21 | July 16, 2008 16:00 |