ENH: more flexible finiteArea patch selection (#2084)

- support wordRes for selecting patch names

- ownerPolyPatch specification is now optional, which simplifies input
  and also supports a faMesh spanning different patches but with a
  single boundary condition.

  Alternatively, can specify more granularity if required.

  ```
  polyMeshPatches  ( "top.*" );

  boundary
  {
      inlet1
      {
          type patch;
          ownerPolyPatch top1;    // <- specific to this portion
          neighbourPolyPatch inlet;
      }
      inlet2
      {
          type patch;
          ownerPolyPatch top2;    // <- specific to this portion
          neighbourPolyPatch inlet;
      }
      outlet
      {
          type patch;
          neighbourPolyPatch outflow;
      }
      bound
      {
          type symmetry;
          neighbourPolyPatch bound;
      }
  }
  ```
This commit is contained in:
Mark Olesen
2021-06-09 20:32:09 +02:00
parent 7b14af4230
commit 239a7884a6
13 changed files with 196 additions and 98 deletions

View File

@ -21,21 +21,18 @@ boundary
left
{
type patch;
ownerPolyPatch top;
neighbourPolyPatch left;
}
right
{
type patch;
ownerPolyPatch top;
neighbourPolyPatch right;
}
frontAndBack
{
type empty;
ownerPolyPatch top;
neighbourPolyPatch frontAndBack;
}
}

View File

@ -21,7 +21,6 @@ boundary
frontAndBack
{
type empty;
ownerPolyPatch freeSurface;
neighbourPolyPatch frontAndBack;
}
}

View File

@ -21,21 +21,18 @@ boundary
left
{
type patch;
ownerPolyPatch top;
neighbourPolyPatch left;
}
right
{
type patch;
ownerPolyPatch top;
neighbourPolyPatch right;
}
frontAndBack
{
type empty;
ownerPolyPatch top;
neighbourPolyPatch frontAndBack;
}
}