mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Correcting delta in fa consistent with fv.
Solve issue 1431 Gitlab. delta() calculation on the patch is consistent with not applying non-orthogonality on the patch.
This commit is contained in:
@ -20,7 +20,7 @@ License
|
|||||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
for more details.
|
for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -424,7 +424,8 @@ Foam::tmp<Foam::vectorField> Foam::faPatch::edgeFaceCentres() const
|
|||||||
|
|
||||||
Foam::tmp<Foam::vectorField> Foam::faPatch::delta() const
|
Foam::tmp<Foam::vectorField> Foam::faPatch::delta() const
|
||||||
{
|
{
|
||||||
return edgeCentres() - edgeFaceCentres();
|
return edgeNormals()*(edgeNormals() & (edgeCentres() - edgeFaceCentres()));
|
||||||
|
//return edgeCentres() - edgeFaceCentres();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user