From d98d2c371adce6bf2224d9149c9ac4bf97d5ab5d Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Tue, 25 Jul 2023 09:00:57 +0100 Subject: [PATCH] MPLIC: Add an explicit error detailing incompatibility with NCC Resolves bug report https://bugs.openfoam.org/view.php?id=3999 --- src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C b/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C index d7fc6c1e35..9e4ae8ac68 100644 --- a/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C +++ b/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -187,6 +187,13 @@ Foam::tmp Foam::MPLIC::surfaceAlpha } } + if (!mesh.conformal()) + { + FatalErrorInFunction + << "The " << type() << " scheme is not compatible with " + << "non-conformal meshes" << exit(FatalError); + } + // Convert the alphaPhi spliced field into a surfaceScalarField tmp tslicedAlpha (