openfoam/applications/solvers
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
..
acoustic/acousticFoam COMP: link finiteArea whenever regionFaModel is used 2022-09-22 11:50:50 +02:00
basic ENH: unify use of dictionary method names 2020-06-02 17:26:03 +02:00
combustion STYLE: adjust range check in Foam::factorial (FULLDEBUG) 2022-09-07 16:25:45 +02:00
compressible COMP: link finiteArea whenever regionFaModel is used 2022-09-22 11:50:50 +02:00
discreteMethods GIT: Header file updates 2019-10-31 14:48:44 +00:00
DNS ENH: centralize more libraries in src/phaseSystemModels 2020-08-05 18:56:22 +01:00
doc GIT: Header file updates 2019-10-31 14:48:44 +00:00
electromagnetics COMP: fix inline friend declarations (gcc-4.8.5) 2021-01-27 10:33:19 +01:00
financial GIT: Header file updates 2019-10-31 14:48:44 +00:00
finiteArea GIT: remove leading/trailing blank lines, trailing whitespace 2020-06-17 10:46:26 +02:00
heatTransfer ENH: improved handling of coordinateSystems 2022-10-04 15:51:27 +02:00
incompressible COMP: link finiteArea whenever regionFaModel is used 2022-09-22 11:50:50 +02:00
lagrangian STYLE: adjust range check in Foam::factorial (FULLDEBUG) 2022-09-07 16:25:45 +02:00
multiphase COMP: link finiteArea whenever regionFaModel is used 2022-09-22 11:50:50 +02:00
stressAnalysis ENH: provide setter methods for IOobject read/write options etc. 2021-03-17 15:10:00 +01:00