1. 11 Jan, 2022 1 commit
  2. 20 Dec, 2021 1 commit
  3. 16 Dec, 2021 1 commit
  4. 15 Dec, 2021 7 commits
  5. 14 Dec, 2021 1 commit
  6. 13 Dec, 2021 4 commits
  7. 10 Dec, 2021 5 commits
    • mattijs's avatar
    • Mark Olesen's avatar
      ENH: add exprField function object · 8d4ad043
      Mark Olesen authored and Andrew Heather's avatar Andrew Heather committed
      - provides a simple means of defining/modifying fields. For example,
      
        ```
        <name1>
        {
            type    exprField;
            libs    (fieldFunctionObjects);
            field   pTotal;
      
            expression  "p + 0.5*(rho*magSqr(U))";
            dimensions  [ Pa ];
        }
        ```
        It is is also possible to modify an existing field.
        For example, to modify the previous one.
        ```
        <name2>
        {
            type    exprField;
            libs    (fieldFunctionObjects);
            field   pTotal;
            action  modify;
      
            // Static pressure only in these regions
            fieldMask
            #{
                (mag(pos()) < 0.05) && (pos().y() > 0)
             || cellZone(inlet)
            #};
            expression  "p";
        }
        ```
      
        To use as a simple post-process calculator, simply avoid storing the
        result and only generate on write:
        ```
        <name2>
        {
            store            false;
            executionControl none;
            writeControl     writeTime;
            ...
        }
        ```
      8d4ad043
    • Mark Olesen's avatar
      STYLE: qualify expression debug flags · a6cbfcb9
      Mark Olesen authored and Andrew Heather's avatar Andrew Heather committed
      - for debug/tracing handle the following keywords:
      
         * debug.driver   (was "debugBaseDriver")
         * debug.scanner  (was "debugScanner")
         * debug.parser   (was "debugParser")
      a6cbfcb9
    • Mark Olesen's avatar
      ENH: code reduction, improvements for expressions · 510ffb33
      Mark Olesen authored and Andrew Heather's avatar Andrew Heather committed
      - literal lookups only for expression strings
      
      - code reduction for setExprFields.
      
      - changed keyword "condition" to "fieldMask" (option -field-mask).
        This is a better description of its purpose and avoids possible
        naming ambiguities with functionObject triggers (for example)
        if we apply similar syntax elsewhere.
      
      BUG: erroneous check in volumeExpr::parseDriver::isResultType()
      
      - not triggered since this method is not used anywhere
        (may remove in future version)
      510ffb33
    • Andrew Heather's avatar
  8. 09 Dec, 2021 7 commits
  9. 08 Dec, 2021 3 commits
  10. 06 Dec, 2021 1 commit
  11. 03 Dec, 2021 3 commits
    • Mark Olesen's avatar
      ENH: add coded Function1 (#2282) · 9a512511
      Mark Olesen authored
      - update coded templates with qualified names
      
      GIT: add in missing PatchFunction1 constant() method
      
      - was missed in a previous commit
      9a512511
    • Mark Olesen's avatar
      LINT: script not marked as bash-specific · e6f4ae92
      Mark Olesen authored
      CONFIG: cleanup additional build-related env variables
      e6f4ae92
    • Mark Olesen's avatar
      ENH: add Function1 constant() member · f7c7fa94
      Mark Olesen authored
      - marks if the value is considered to be independent of 'x'.
        Propagate into PatchFunction1 instead ad hoc checks there.
      
      - adjust method name in PatchFunction1 to 'whichDb()' to reflect
        final changes in Function1 method names.
      
      ENH: add a Function1 'none' placeholder function
      
      - This is principally useful for interfaces that expect a Function1
        but where it is not necessarily used by a particular submodel.
      
      TUT: update Function1 creation to use objectRegistry
      f7c7fa94
  12. 29 Nov, 2021 1 commit
  13. 26 Nov, 2021 1 commit
  14. 25 Nov, 2021 1 commit
    • Mark Olesen's avatar
      ENH: additional #word and #message dictionary directives (#2276) · 1804d3fe
      Mark Olesen authored
      - use `#word` to concatenate, expand content with the resulting string
        being treated as a word token. Can be used in dictionary or
        primitive context.
      
        In dictionary context, it fills the gap for constructing dictionary
        names on-the-fly. For example,
      
        ```
        #word "some_prefix_solverInfo_${application}"
        {
            type    solverInfo;
            libs    (utilityFunctionObjects);
            ...
        }
        ```
      
        The '#word' directive will automatically squeeze out non-word
        characters. In the block content form, it will also strip out
        comments. This means that this type of content should also work:
      
        ```
        #word {
           some_prefix_solverInfo
           /* Appended with application name (if defined) */
           ${application:+_}  // Use '_' separator
           ${application}     // The application
        }
        {
            type    solverInfo;
            libs    (utilityFunctionObjects);
            ...
        }
        ```
        This is admittedly quite ugly, but illustrates its capabilities.
      
      - use ...
      1804d3fe
  15. 24 Nov, 2021 1 commit
  16. 22 Nov, 2021 1 commit
  17. 15 Nov, 2021 1 commit