|
[Sponsors] |
Face areas affect scheme switching criterion for leastSquares |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 30, 2008, 09:31 |
Description:
The switching-to
|
#1 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Description:
The switching-to-Gauss criterion at line 253 of leastSquaresVectors.C<pre> if (det(dd[celli]) <3)</pre> is affected by face areas of the cell, since dd has the dimension of face areas. Probably this is not what you meant. Source file: OpenFOAM-1.4.1/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/leastS quaresVectors.C Version: OpenFOAM 1.4.1 Notes: None Takuya |
|
June 30, 2008, 11:35 |
Thanks for the bug-report. Th
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
Thanks for the bug-report. The problem is that in the previous incarnation dd was not area-weighted and the switching based on dd was correct. When I added the area-weighting (which gives better accuracy for distorted meshes) I did not notice that the switching needed updating -- sorry about that.
Actually the switching was never that successful; on bad meshes the least-squares would still fail because not enough cells were switched to Gauss. This whole issue needs more work so for 1.5 I propose to remove the switching and will re-instate it after we have had time to develop a more reliable switching criterion. H |
|
July 4, 2008, 01:44 |
Thanks for the answer. Removin
|
#3 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Thanks for the answer. Removing the switching stuff worked like a charm. My solidDisplacementFoam cases are now physically reasonable and agrees nicely with solutions of statically indeterminate frames. I happened to have got even smoother gradients for a bad mesh region with rather aggressive setting of extendedLeastSquares (extendedLeastSquares 7.0), which does not do face area weighting AFAIK. But it may depend on cases.
Hope the patched version in openfoam-extend SVN repo to be fixed as well since without the fix leastSquares is mostly useless unless the case is 2D or the total face area of a cell is of order of a square meter. Takuya |
|
July 4, 2008, 03:40 |
I am glad you have found exten
|
#4 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
I am glad you have found extendedLeastSquares useful. It seemed like a great idea when I implemented it to solve some of the stability problems of leastSquares on VERY bad meshes but unfortunately it didn't help and reverting to Gauss for the bad cells seems to be the only way forward.
We are now developing and testing higher-order schemes which are formally more accurate than leastSquares on distorted meshes and hope to release this functionality in the version after 1.5. Henry |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
flux through individual cells / face areas | Mike | FLUENT | 2 | February 16, 2009 11:43 |
DPM - do the particles affect the liquid? | Nikhil Dani | FLUENT | 0 | January 1, 2009 12:58 |
how does it affect???????? | jamal | FLUENT | 3 | January 16, 2008 00:05 |
use of face areas in flux function | Andrew Garrard | FLUENT | 1 | February 1, 2005 14:46 |
face areas UDF | Andrew Garrard | FLUENT | 0 | October 19, 2004 10:55 |