- 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; } } ```
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v2012 |
|
|
| \\ / A nd | Website: www.openfoam.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object faMeshDefinition;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
polyMeshPatches ( "top.*" );
|
|
|
|
boundary
|
|
{
|
|
inlet1
|
|
{
|
|
type patch;
|
|
ownerPolyPatch top1;
|
|
neighbourPolyPatch inlet;
|
|
}
|
|
|
|
inlet2
|
|
{
|
|
type patch;
|
|
ownerPolyPatch top2;
|
|
neighbourPolyPatch inlet;
|
|
}
|
|
|
|
outlet
|
|
{
|
|
type patch;
|
|
neighbourPolyPatch outflow;
|
|
}
|
|
|
|
bound
|
|
{
|
|
type symmetry;
|
|
neighbourPolyPatch bound;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************** //
|