openfoam/tutorials
Mark Olesen 7b2bcfda0b ENH: improved handling of coordinateSystems
- in continuation of #2565 (rotationCentre for surface output formats)
  it is helpful to also support READ_IF_PRESENT behaviour for the
  'origin' keyword.

  This can be safely used wherever the coordinate system definition
  is embedded within a sub-dictionary scope.

  Eg,
      dict1
      {
          coordinateSystem
          {
              origin (0 0 0);  // now optional here
              rotation ...;
          }
      }

   but remains mandatory if constructed without a sub-dict:

      dict2
      {
          origin (0 0 0);   // still mandatory
          e1  (1 0 0);
          e3  (0 0 1);
      }

   With this change, the "transform" sub-dictionary can written
   more naturally:

       formatOptions
       {
           vtk
           {
               scale 1000;  // m -> mm
               transform
               {
                   rotationCentre  (1 0 0);
                   rotation axisAngle;
                   axis    (0 0 1);
                   angle   -45;
               }
           }
       }

ENH: simplify handling of "coordinateSystem" dictionary lookups

- coordinateSystems::NewIfPresent method for optional entries:

    coordSysPtr_ = coordinateSystem::NewIfPresent(mesh, dict);

  Instead of

    if (dict.found(coordinateSystem::typeName, keyType::LITERAL))
    {
        coordSysPtr_ =
            coordinateSystem::New
            (
                mesh_,
                dict,
                coordinateSystem::typeName
            );
    }
    else
    {
        coordSysPtr_.reset();
    }

ENH: more consistent handling of priorities for binModels, forces (#2598)

- if the dictionaries are overspecified, give a 'coordinateSystem'
  entry a higher prioriy than the 'CofR' shortcuts.

  Was previously slightly inconsistent between the different models.
2022-10-04 15:51:27 +02:00
..
basic ENH: tutorial: add comment 2022-07-20 13:38:31 +01:00
combustion RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
compressible ENH: improved handling of coordinateSystems 2022-10-04 15:51:27 +02:00
discreteMethods RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
DNS/dnsFoam/boxTurb16 RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
electromagnetics RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
financial/financialFoam/europeanCall RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
finiteArea ENH: add finite-area support to setFields (#2591) 2022-09-26 18:03:23 +02:00
heatTransfer TUT: add multi-patch versions using regionFaModels 2022-09-22 17:24:21 +02:00
incompressible TUT: use simpler faMeshDefinition 2022-09-22 16:09:14 +02:00
IO RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
lagrangian GIT: missing tutorial files 2022-09-23 12:35:07 +02:00
mesh BUG: blockMesh mergePatchPairs fails with edge-shared points (fixes #2589) 2022-09-26 18:03:23 +02:00
modules CONFIG: additional packaging helpers, tutorial test helper 2020-04-21 14:59:07 +02:00
multiphase ENH: add finite-area support to setFields (#2591) 2022-09-26 18:03:23 +02:00
preProcessing RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
resources RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
stressAnalysis RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
verificationAndValidation RELEASE: Updated headers for v2206 2022-06-24 15:41:02 +01:00
Allclean ENH: foamRunTutorials -dry-run option 2022-06-14 15:23:08 +02:00
Allcollect ENH: foamRunTutorials -dry-run option 2022-06-14 15:23:08 +02:00
Allrun CONFIG: add date and paths information for tutorial Allrun script 2021-09-22 17:42:21 +02:00
Alltest CONFIG: inline _foamEval within <etc/config.sh/setup> 2021-06-18 17:14:22 +02:00