Face centres are calculated by area-weighting the centres of triangles that are formed by connecting each edge to a common point. The common point is taken to be the average of all the face vertices, though in principle the choice is arbitrary. The areas used to perform the weighting are now taken to be the projected areas of the triangles in the direction of the face normal (i.e., the dot product between the triangle area and the face normal). Previously the triangle area-magnitudes were used. The new approach results in a centre that for flat faces is independent of the choice of common point. It also means that concave faces have contributions to the weighted sum from reversed triangles correctly subtracted from the total. The centre of warped faces still changes with the choice of common point, but that variation is now reduced to be only in the direction of the face normal. Preliminary results suggest a positive effect of this change on the convergence of simulations on meshes with significantly distorted faces and cells. The simpleFoam motorBike tutorial now converges with residuals approximately half that previously observed. Resolves bug report https://bugs.openfoam.org/view.php?id=1993
README for OpenFOAM-dev
- About OpenFOAM
- Copyright
- Download and installation instructions
- Documentation
- Source code documentation
- OpenFOAM C++ Style Guide
- Reporting bugs in OpenFOAM
- Contacting the OpenFOAM Foundation
#
About OpenFOAM
OpenFOAM is a free, open source computational fluid dynamics (CFD) software package released by the OpenFOAM Foundation. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electromagnetics.
Copyright
OpenFOAM is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version. See the file COPYING in this directory or
http://www.gnu.org/licenses/, for a description of the GNU General Public
License terms under which you can copy the files.