mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: provide separate geometry description per region/patch (issue #278)
- Also fixed bug noted in issue #269 - Previous implementation had all faces together, which made it difficult (impossible) for external applications to figure out which geometry was being referred to. - Provide separate region/patches as follows: // Patch: <regionName> <patchName> For example, // Group: coupleGroup // Patch: heater minY 8( ... ) The region-name is always present, even if there is only one region. - This change is a partial reversion to the behaviour in 2.4.x, except that we can now also handle multi-region geometries. Changing the leading comment from "# " to "// " facilitates parsing of the files with OpenFOAM itself if necessary.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2015-2016 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -319,10 +319,10 @@ public:
|
||||
//- Runtime type information
|
||||
TypeName("externalCoupled");
|
||||
|
||||
//- Name of lock file
|
||||
//- Name of lock file (normally 'OpenFOAM.lock')
|
||||
static word lockName;
|
||||
|
||||
//- Name of patch key, e.g. '# Patch:' when looking for start of patch data
|
||||
//- Name of patch key, e.g. '// Patch:' when looking for start of patch data
|
||||
static string patchKey;
|
||||
|
||||
|
||||
@ -391,7 +391,7 @@ public:
|
||||
// separated by '_'
|
||||
static word compositeName(const wordList&);
|
||||
|
||||
//- Write geometry for the group/patch
|
||||
//- Write geometry for the group as region/patch
|
||||
static void writeGeometry
|
||||
(
|
||||
const UPtrList<const fvMesh>& meshes,
|
||||
|
||||
Reference in New Issue
Block a user