Skip to content
Snippets Groups Projects
  1. Jun 29, 2020
  2. Dec 23, 2019
  3. Jun 26, 2019
  4. Jun 14, 2019
  5. Mar 15, 2019
  6. Feb 23, 2019
    • Mark OLESEN's avatar
      ENH: new PDRblockMesh mesh generation utility (issue #1216) · 84270ed6
      Mark OLESEN authored
      - While a rectilinear mesh can be created with blockMesh, not every mesh
        created with blockMesh will satisfy the requirements for being a
        rectilinear mesh.
      
        This alternative to blockMesh uses a single block that is aligned
        with the xy-z directions and specifications of the control points,
        mesh divisions and expansion ratios. For example,
      
          x
          {
              points  ( -13.28 -0.10 6.0 19.19 );
              nCells  (  10  12 10 );
              ratios  ( 0.2   1  5 );
          }
      
          y { ... }
          z { ... }
      
        With only one block, the boundary patch definition is simple and the
        canonical face number is used directly. For example,
      
          inlet
          {
              type    patch;
              faces   ( 0 );
          }
          outlet
          {
              type    patch;
              faces   ( 1 );
          }
      
          sides
          {
              type    patch;
              faces   ( 2 3 );
          }
      
          ...
      
      - After a mesh is defined, it is trivial to retrieve mesh-related
        information such as cell-volume, cell-centres for any i-j-k location
        without an actual polyMesh.
      
      STYLE: remove -noFunctionObjects from blockMesh
      
      - no time loop, so function objects cannot be triggered anyhow.
      84270ed6
  7. Jan 22, 2019
  8. Dec 21, 2018
  9. Dec 17, 2018
  10. Dec 13, 2018
    • Mark OLESEN's avatar
      ENH: consolidate handling of mandatory/optional command arguments · 5d9e278e
      Mark OLESEN authored
      - for some special cases we wish to mark command-line arguments as
        being optional, in order to do our own treatment. For example,
        when an arbitrary number of arguments should be allowed.
      
        Now tag this situation with argList::noMandatoryArgs().
        The argList::argsMandatory() query can then be used in any further
        logic, including the standard default argument checking.
      
      - with the new default check, can consolidate the special-purpose
      
            "setRootCaseNonMandatoryArgs.H"
      
        into the regular
      
            "setRootCase.H"
      
      - revert to a simple "setRootCase.H" and move all the listing related
        bits to a "setRootCaseLists.H" file. This leaves the information
        available for solvers, or whoever else wishes, without being
        introduced everywhere.
      
      - add include guards and scoping to the listing files and rename to
        something less generic.
      
           listOptions.H -> setRootCaseListOptions.H
           listOutput.H  -> setRootCaseListOutput.H
      5d9e278e
  11. Dec 10, 2018
  12. Dec 05, 2018
  13. Nov 21, 2018
  14. Oct 09, 2018
  15. Sep 25, 2018
    • Mark OLESEN's avatar
      ENH: allow new patch names in subsetMesh (issue #1019) · d0da21fe
      Mark OLESEN authored
      Previously had 3 possibilities for handling exposed internal faces
      
        1. use default "oldInternalFaces"
        2. specify -patch, to use the specified (existing) patch
        3. specify -patches, to use the geometrically closest patches
      
      Now relaxed the restriction on -patch to allow specification of a new
      (not yet existing) patch name. This improves flexibility, but won't
      catch typing mistakes.
      
      Harmonize behaviour of -patches and -patch. When -patches is used to
      specify a single, non-regex patch name, it now behaves identically to
      -patch. Since the getList handling for options already allows special
      treatment for single parameter lists, the following will work
      identically:
      
            subsetMesh -patch  patch0
            subsetMesh -patches patch0
            subsetMesh -patches '( patch0 )'
      
      In the future it might be reasonable to fully combine the behaviour of
      '-patch' and '-patches' and treat them as aliases for each other.
      
      ENH: support subsetMesh on a cellZone.
      
      - when the '-zone' option is specified, the command argument is treated
        as the name (or names) of cellZones to be selected instead of as the
        name of the cellSet.
      
        The command argument can be a single word, regex, or list of
        word/regex.
        Eg,
      
            subsetMesh -zone -patch mypatch  mixer
            subsetMesh -zone -patch mypatch  '(mixer "moving.*" )'
      
      STYLE: simplify set handling and other code cleanup in subsetMesh
      d0da21fe
  16. Aug 08, 2018
    • Mark OLESEN's avatar
      ENH: ignore -noFunctionObjects option when disabled · e0f83938
      Mark OLESEN authored
      - With argList::noFunctionObjects() we use the logic added in
        4b933332 (issue #352)
      
        By removing the '-noFunctionObjects' option, we automatically
        suppress the creation of function-objects via Time (with argList
        as a parameter).
        There is generally no need in these cases for an additional
      
            runTime.functionObjects().off()  statement
      
        Use the argList::noFunctionObjects() for more direct configuration
        and reduce unnecessary clutter in the -help information.
      
        In previous versions, the -noFunctionObjects would have been redundant
        anyhow, so we can also just ignore it now instead.
      e0f83938
  17. Jul 31, 2018
  18. Jul 26, 2018
  19. Jun 21, 2018
  20. Dec 30, 2017
  21. Dec 19, 2017
    • Mark OLESEN's avatar
      ENH: additional options for transforming points (closes #660) · 00325db3
      Mark OLESEN authored
      - The -rotate-angle option allows convenient specification of a
        rotation about an arbitrary axis. Eg, -rotate-angle '((1 1 1) 45)'
      
      - The -origin option can be used to temporarily shift the origin
        for the rotation operations. For example,
      
            -origin '(0 0 1)' -rotate-angle '((1 0 0) 180)'
      
        for mirroring.
      00325db3
  22. Dec 18, 2017
  23. Jan 08, 2018
  24. Jul 19, 2018
    • Mark OLESEN's avatar
      ENH: add decomposePar -dry-run option · ed4ffd8f
      Mark OLESEN authored
      - can be used to test the behaviour of the decomposion and its
        characteristics without writing any decomposition to disk.
        Combine with -cellDist to visualize the expected decomposition
        result.
      ed4ffd8f
  25. Jul 02, 2018
    • Mark OLESEN's avatar
      ENH: improve controls for Time (issue #910) · 2662042d
      Mark OLESEN authored
      - relocate some standard functionality to TimePaths to allow a lighter
        means of managing time directories without using the entire Time
        mechanism.
      
      - optional enableLibs for Time construction (default is on)
        and a corresponding argList::noLibs() and "-no-libs" option
      
      STYLE:
      
      - mark Time::outputTime() as deprecated MAY-2016
      
      - use pre-increment for runTime, although there is no difference in
        behaviour or performance.
      2662042d
  26. Sep 26, 2017
  27. Sep 11, 2017
  28. Jun 14, 2018
  29. Aug 08, 2017
    • Mark OLESEN's avatar
      ENH: use bash associative array for on-the-fly completion (issue #551) · ce086810
      Mark OLESEN authored
      - this reduces the number of functions and allows lazy loading of
        completion options, which makes it easy to quickly add any other
        OpenFOAM application in completion.
      
        The generic '_of_complete_' function handles (bash) completion for
        any OpenFOAM application. On the first call for any particular
        application, it retrieves the available options from the application
        help output and adds this information to its environmental cache for
        subsequent use.
      
      - Tcsh completion uses the same function via a bash wrapper.
        But since its wrapper is transient, the on-the-fly generation would
        be less efficient. For this case, a pre-generated completion_cache
        can be used, which is generated with
      
            bin/tools/foamCreateCompletionCache
      ce086810