ENH: ensightWrite, vtkWrite support for excluding fields and patches

- functionality similar to that provided by foamToEnsight, foamToVTK
  which allows blocking out patches (eg, outer walls, inlet/outlet)
  that are not particularly interesting to visualize
This commit is contained in:
Mark Olesen
2022-11-18 15:28:14 +01:00
parent ec1d66d640
commit d9ab5d54ef
10 changed files with 192 additions and 118 deletions

View File

@ -12,6 +12,11 @@ ensightWrite
writeControl writeTime;
writeInterval 1;
//patches ( "motorBike.*" );
//- These patches are uninteresting
excludePatches ( inlet outlet frontAndBack ".*[Ww]all" );
}

View File

@ -6,6 +6,10 @@ vtkWrite
libs (utilityFunctionObjects);
log true;
//- Write more frequent than fields
writeControl timeStep;
writeInterval 25;
// Fields to output (words or regex)
fields (U p "(k|epsilon|omega)");
@ -21,9 +25,8 @@ vtkWrite
//- Write cell ids as field - Default=true
writeIds false;
//- Write more frequent than fields
writeControl timeStep;
writeInterval 25;
//- These patches are uninteresting
excludePatches ( inlet outlet frontAndBack );
}
subset
@ -32,6 +35,10 @@ subset
libs (utilityFunctionObjects);
log true;
//- Write more frequent than fields
writeControl timeStep;
writeInterval 25;
// boundary false;
interpolate true;
@ -42,9 +49,8 @@ subset
//- Write cell ids as field - Default=true
writeIds false;
//- Write more frequent than fields
writeControl timeStep;
writeInterval 25;
//- These patches are uninteresting
excludePatches ( inlet outlet frontAndBack );
// Region of interest
selection