1. 28 Jun, 2021 1 commit
  2. 23 Jun, 2021 1 commit
    • sergio's avatar
      ENH: Adding subMesh option to momentumError and div FOs · 61012721
      sergio authored and Mattijs Janssens's avatar Mattijs Janssens committed
      1) Adding subMesh capabilities to momentumError and div FOs.
      	- A subMesh is created from cellZones.
      	- The operators (div, etc) are only calculated in the subMesh.
      
      2) Optionally, halo cells can be added to the cellZones.
      
      3) New helper class to handle the subMesh creation and field mapping.
      61012721
  3. 22 Jun, 2021 3 commits
  4. 18 Jun, 2021 3 commits
    • Mark Olesen's avatar
      CONFIG: inline _foamEval within <etc/config.sh/setup> · e2148b58
      Mark Olesen authored
      - previously a function (unlike the csh version) but since bashrc and
        setup have been split -> replace with inline definition
      
      STYLE: formatting/wording for openfoam starters
      
      TUT: simplify controlDict modification, add default substitution
      
      ENH: accept '/' for end-of-options terminator (etc/openfoam)
      
      - makes the application or service more apparent.
        * eg.  /usr/bin/openfoam / blockMesh
        * vs.  /usr/bin/openfoam -- blockMesh
      
        Accept lone '-' as the end-of-options terminator, as per bash
      
      - Adjust handling of openfoam '-c' option to flag that a command-string
        will appear, but continue with option parsing.
        Consistent with bash definition.
      e2148b58
    • Mark Olesen's avatar
      TUT: add parallel version for various squareBend cases · 096b9dc5
      Mark Olesen authored
      - adjust commented-out evaluation to avoid warnings.
      
        With code like this
        ```
        #if 0
        nxin    #eval{ round($nxin / 5) };
        #endif
        ```
      
        The handling of the "#if 0 / #endif" clause uses the plain ISstream
        parser to tokenize. This means that the "round(" is parsed as a word
        with a mismatched closing ')', whereas the "#eval" parser will slurp
        everything in until the closing brace and send it off as a string
        to the expression parser.
      096b9dc5
    • Getnet Agegnehu's avatar
      TUT: example of patch expressions (#2114) · a3d90ae9
      Getnet Agegnehu authored and Mark Olesen's avatar Mark Olesen committed
      a3d90ae9
  5. 17 Jun, 2021 4 commits
  6. 16 Jun, 2021 2 commits
    • Andrew Heather's avatar
      ENH: Added new multiRegion function object · af86d19e
      Andrew Heather authored and Mark Olesen's avatar Mark Olesen committed
      Wrapper that clones the supplied object for each region.
      
      Simplifies the setup of identical post-processing requirements for
      multi-region cases.
      Applies the supplied function to all regions by default.
      
      Example of function object specification:
      
          multiRegion
          {
              type    multiRegion;
              libs    (utilityFunctionObjects);
              ...
      
              function
              {
                  // Actual object specification
                  type    fieldMinMax;
                  libs    (fieldFunctionObjects);
                  fields  (<field1> .. <fieldN>);
              }
      
              // Optional entries
              regions     (region1 region2);
          }
      
          Where the entries comprise:
              Property   | Description                    | Reqd | Default
              type       | Type name: multiRegion         | yes |
              function   | Function object sub-dictionary | yes |
              regions    | List of region names           | no  | all
      af86d19e
    • Andrew Heather's avatar
      ENH: new multiFieldValue function object · ea12bfdb
      Andrew Heather authored and Mark Olesen's avatar Mark Olesen committed
          Computes a selected operation between multiple \c fieldValue function
          objects.
      
          The operation is applied to all results of each \c fieldValue object.
      
      Note
          Each object must generate the same number and type of results.
      
      Usage
          Minimal example by using \c system/controlDict.functions:
      
          multiFieldValue1
          {
              // Mandatory entries (unmodifiable)
              type            multiFieldValue;
              libs            (fieldFunctionObjects);
      
              // Mandatory entries (runtime modifiable)
              operation       subtract;
      
              // List of fieldValue function objects as dictionaries
              functions
              {
                  region1
                  {
                      ...
                  }
                  region2
                  {
                      ...
                  }
      
                  ...
      
                  regionN
                  {
                      ...
                  }
              }
      
              // Optional (inherited) entries
              ...
          }
      
          where the entries mean:
      
            Property     | Description                         | Type | Req'd | Dflt
            type         | Type name: multiFieldValue          | word |  yes  | -
            libs         | Library name: fieldFunctionObjects  | word |  yes  | -
            operation    | Operation type to apply to values   | word |  yes  | -
            functions    | List of fieldValue function objects | dict |  yes  | -
          \endtable
      
          Options for the \c operation entry:
      
             add           | add
             subtract      | subtract
             min           | minimum
             max           | maximum
             average       | average
      
      Deprecated fieldValueDelta
      
      - The fieldValueDelta function object was originally written to compute the
      difference between two fieldValue-type function objects. The multiFieldValue
      object name better describes its purpose whilst being able to operate on an
      arbitrary number of fieldValue-type objects.
      ea12bfdb
  7. 14 Jun, 2021 1 commit
  8. 11 Jun, 2021 1 commit
  9. 10 Jun, 2021 2 commits
    • Mark Olesen's avatar
      ENH: more flexible finiteArea patch selection (#2084) · 239a7884
      Mark Olesen authored
      - support wordRes for selecting patch names
      
      - ownerPolyPatch specification is now optional, which simplifies input
        and also supports a faMesh spanning different patches but with a
        single boundary condition.
      
        Alternatively, can specify more granularity if required.
      
        ```
        polyMeshPatches  ( "top.*" );
      
        boundary
        {
            inlet1
            {
                type patch;
                ownerPolyPatch top1;    // <- specific to this portion
                neighbourPolyPatch inlet;
            }
            inlet2
            {
                type patch;
                ownerPolyPatch top2;    // <- specific to this portion
                neighbourPolyPatch inlet;
            }
            outlet
            {
                type patch;
                neighbourPolyPatch outflow;
            }
            bound
            {
                type symmetry;
                neighbourPolyPatch bound;
            }
        }
        ```
      239a7884
    • Mark Olesen's avatar
      ENH: replace tutorials/AutoTest with bin/foamTestTutorial · 85301030
      Mark Olesen authored
      - additional -serial/-parallel option:
        prefer Allrun-serial or Allrun-parallel if available
      
      - optional -output=DIR to preserve output
      
      ENH: report missing tutorials/ directory in RunFunctions
      85301030
  10. 09 Jun, 2021 4 commits
  11. 08 Jun, 2021 6 commits
  12. 07 Jun, 2021 3 commits
  13. 30 May, 2021 1 commit
  14. 27 May, 2021 3 commits
  15. 26 May, 2021 3 commits
  16. 19 May, 2021 2 commits