openfoam/tutorials/incompressible
Mark Olesen 1804d3fed5 ENH: additional #word and #message dictionary directives (#2276)
- use `#word` to concatenate, expand content with the resulting string
  being treated as a word token. Can be used in dictionary or
  primitive context.

  In dictionary context, it fills the gap for constructing dictionary
  names on-the-fly. For example,

  ```
  #word "some_prefix_solverInfo_${application}"
  {
      type    solverInfo;
      libs    (utilityFunctionObjects);
      ...
  }
  ```

  The '#word' directive will automatically squeeze out non-word
  characters. In the block content form, it will also strip out
  comments. This means that this type of content should also work:

  ```
  #word {
     some_prefix_solverInfo
     /* Appended with application name (if defined) */
     ${application:+_}  // Use '_' separator
     ${application}     // The application
  }
  {
      type    solverInfo;
      libs    (utilityFunctionObjects);
      ...
  }
  ```
  This is admittedly quite ugly, but illustrates its capabilities.

- use `#message` to report expanded string content to stderr.
  For example,

  ```
  T
  {
     solver          PBiCG;
     preconditioner  DILU;
     tolerance       1e-10;
     relTol          0;
     #message "using solver: $solver"
  }
  ```
  Only reports on the master node.
2021-11-25 17:05:37 +01:00
..
adjointOptimisationFoam CONFIG: add date and paths information for tutorial Allrun script 2021-09-22 17:42:21 +02:00
adjointShapeOptimizationFoam/pitzDaily CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
boundaryFoam/steadyBoundaryLayer ENH: finer granularity for CleanFunctions 2021-07-28 10:02:27 +02:00
icoFoam CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
lumpedPointMotion ENH: improve flexibility of error, messageStream output 2021-11-03 11:46:13 +01:00
nonNewtonianIcoFoam/offsetCylinder CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
overPimpleDyMFoam CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
overSimpleFoam/aeroFoil CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
pimpleFoam ENH: additional #word and #message dictionary directives (#2276) 2021-11-25 17:05:37 +01:00
pisoFoam CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
porousSimpleFoam TUT: replace m4 versions of angledDuct blockMeshDict with native forms 2021-07-28 13:14:44 +02:00
shallowWaterFoam/squareBump CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
simpleFoam TUT: use mergeType points for wedge geometries (#2241) 2021-10-21 15:31:11 +02:00
SRFPimpleFoam/rotor2D CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00
SRFSimpleFoam/mixer CONFIG: Updated headers to v2106 2021-06-28 09:14:42 +01:00