Skip to content
Snippets Groups Projects
  1. Aug 04, 2021
  2. Aug 03, 2021
  3. Jul 28, 2021
  4. Jul 16, 2021
  5. Jul 15, 2021
  6. Jun 28, 2021
  7. Jun 23, 2021
    • 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
  8. Jun 22, 2021
  9. Jun 18, 2021
    • 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
  10. Jun 17, 2021
  11. Jun 16, 2021
    • 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
  12. Jun 14, 2021
  13. Jun 11, 2021
  14. Jun 10, 2021
    • 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
  15. Jun 09, 2021
  16. Jun 08, 2021