mapFields, mapFieldPar: Support meshes with non-conformal couplings

Resolves bug report https://bugs.openfoam.org/view.php?id=4209
This commit is contained in:
Will Bainbridge
2025-02-04 17:43:20 +00:00
parent c25313dc14
commit 3538462d50
2 changed files with 54 additions and 2 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2025 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -229,6 +229,8 @@ int main(int argc, char *argv[])
false
);
srcMesh.postConstruct(false, fvMesh::stitchType::nonGeometric);
fvMesh tgtMesh
(
IOobject
@ -240,6 +242,8 @@ int main(int argc, char *argv[])
false
);
tgtMesh.postConstruct(false, fvMesh::stitchType::nonGeometric);
Info<< "Source mesh size: "
<< returnReduce(srcMesh.nCells(), sumOp<label>())
<< ", Target mesh size: "