|
[Sponsors] |
May 9, 2011, 11:57 |
Bug in patchInternalField()
|
#1 |
Senior Member
Pawel Sosnowski
Join Date: Mar 2009
Location: Munich, Germany
Posts: 105
Rep Power: 18 |
Greetings,
I believe that there is a problem in implementation of the function patchInternalField(). The distribution is OpenFoam-1.7.1. The problem was discovered while working on updateCoeffs() function of derivedFvPatchField (derived from mixedFvPatchField): Code:
void Foam::myFvPatchScalarField::updateCoeffs() { // <some code> const scalarField& thisIntField = patchInternalField(); Info << thisIntField << endl; // <some more code> } Instead, some cells contain zero value. Code:
value nonuniform List<scalar> 2160 ( 6.92193e-310 6.92193e-310 0 0 300 300 300 <...> ); New boundary condition is applied only on the inner patch. Anomalies appear only on the faces that are next to the edges, selective, not all. Usually several first ones (like in the example above). If the "inner" patch is divided into 6 ones, with applied new derivedBC, anomalies are not observed. Presented usage of the function is quite basic- this drives to conclusion that there is something wrong deeper in the code. Please this bug into consideration. I would also be very grateful for any other possible explanation of the described problem. Best, Pawel S |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 08:15 |
On Bug of Fluent 12.0 | lzgwhy | FLUENT | 0 | August 26, 2009 06:41 |
Bug in twoPhaseEulerFoam wallfunctions | alberto | OpenFOAM Bugs | 1 | February 9, 2007 14:15 |
Bug reports | Mattijs Janssens (Mattijs) | OpenFOAM | 0 | January 10, 2005 10:05 |
Forum y2k Bug | Jonas Larsson | Main CFD Forum | 1 | January 5, 2000 10:22 |