Skip to content
Snippets Groups Projects
  1. Dec 04, 2023
  2. Dec 01, 2023
    • Andrew Heather's avatar
      ENH: checkMesh - added -writeChecks option · f8742146
      Andrew Heather authored
      Added -writeChecks <format> option
      
      - writes computed mesh metrics to file in using <format>
      - currently supported formats are OpenFOAM dictionary and JSON
      f8742146
    • Andrew Heather's avatar
      9d20dd84
    • Andrew Heather's avatar
      ENH: Added new caseInfo function object · 6242e70d
      Andrew Heather authored
      Collects and writes case information to file in OpenFOAM dictionary or JSON
      format.  Data includes:
      
      - meta: case name, path, regions, parallel etc.
      - dictionaries: entries retrieved from dictionaries - registered or from file
      - per region: mesh metrics, boundary and boundary field types
      - function object results
      
      Example of function object specification:
      
          caseInfo
          {
              type            caseInfo;
              libs            (utilityFunctionObjects);
      
              // Warn when entries are not found
              lookupMode  warn; // none | warn | error;
      
              // Write format
              writeFormat json; //  dictionary | json;
      
              dictionaries
              {
                  USolver // User-specified names
                  {
                      // Look up using registered name
                      name        "fvSolution";
      
                      // Optionally limit to specific entries
                      include
                      (
                          "solvers/U/solver"
                      );
                  }
                  fvSchemes
                  {
                      name        "fvSchemes";
      
                      // include all entries by default
                  }
                  timeScheme
                  {
                      name        "fvSchemes";
      
                      include
                      (
                          "/ddtSchemes/default"
                      );
                  }
      
                  turbulence
                  {
                      name        "turbulenceProperties";
      
                      // include all entries by default
                  }
                  controlDict
                  {
                      // Look up using file path
                      path        "<case>/system/controlDict";
      
                      include
                      (
                          "application"
                          "deltaT"
                          "startTime"
                          "endTime"
                      );
                  }
              }
      
              functionObjects (minMax1);
          }
      6242e70d
    • Andrew Heather's avatar
      ENH: Added new JSONformatter to write Ostream content in JSON format · d77db0ed
      Andrew Heather authored
      New Ostream wrapper that writes entries as JSON objects/convert OpenFOAM
      dictionaries to JSON dictionaries, e.g.
      
          dictionary dict ...
      
          // Create file for writing
          OFstream os("myData.json");
      
          // Wrap Ostream
          JSONformatter json(os);
      
          // Write dictionary as JSON
          json.writeDict(dict);
      d77db0ed
    • Andrew Heather's avatar
      ENH: polyMeshCheck - added mesh quality metrics to meshState dictionary · c7a639d0
      Andrew Heather authored
      Quality metrics, e.g. non-orthogonality, skewness etc are calculated/reported
      in polyMeshCheck functions. These results are now added to the meshState/mesh
      dictionary to enable external access.
      c7a639d0
    • Andrew Heather's avatar
    • Andrew Heather's avatar
      STYLE: Refactoring use of meshState in {fv|faMesh} · 79cd147d
      Andrew Heather authored
      {fv|fa}Mesh classes inherited the [old] data class (renamed meshState)
      - meshState removed from inheritance list and added as data members
      79cd147d
    • Andrew Heather's avatar
      STYLE: renamed/moved 'data' to 'meshState' · da20ff26
      Andrew Heather authored
      ENH: added 'mesh' dictionary to meshState to hold mesh properties
      
      - solver information now stored in a 'solver' dictionary (was solverPerformance)
        - {first|final}Iteration entry now stored in solver dict instead of top level
      - mesh data (new) stored in 'mesh' dictionary
      da20ff26
  3. Nov 29, 2023
  4. Nov 28, 2023
  5. Nov 27, 2023
  6. Nov 24, 2023
  7. Nov 23, 2023
  8. Nov 22, 2023
  9. Nov 21, 2023