Skip to content
Snippets Groups Projects
  1. Nov 22, 2018
  2. Sep 05, 2018
  3. Aug 03, 2018
  4. Aug 02, 2018
    • Mark OLESEN's avatar
      ENH: IOobject::selectIO helper method · 88e5334a
      Mark OLESEN authored
      - centralizes IOobject handling and treatment of alternative locations.
        If an alternative file location is specified, it will be used instead.
      
      - provide decompositionMethod::canonicalName instead of using
        "decomposeParDict" in various places.
      88e5334a
  5. Jul 31, 2018
  6. Mar 05, 2018
  7. Jan 08, 2018
    • Mark OLESEN's avatar
      ENH: simplify method names for reading argList options and arguments · 345a2a42
      Mark OLESEN authored
      - use succincter method names that more closely resemble dictionary
        and HashTable method names. This improves method name consistency
        between classes and also requires less typing effort:
      
          args.found(optName)        vs.  args.optionFound(optName)
          args.readIfPresent(..)     vs.  args.optionReadIfPresent(..)
          ...
          args.opt<scalar>(optName)  vs.  args.optionRead<scalar>(optName)
          args.read<scalar>(index)   vs.  args.argRead<scalar>(index)
      
      - the older method names forms have been retained for code compatibility,
        but are now deprecated
      345a2a42
  8. Dec 19, 2017
  9. Dec 01, 2017
  10. Oct 13, 2017
  11. Jan 25, 2017
  12. Jan 24, 2017
    • Henry Weller's avatar
      blockMesh: Delete the polyMesh directory before meshing · 9b319dab
      Henry Weller authored
      unless the blockMeshDict is in the polyMesh directory or the "-noClean" option
      is specified.
      
      This avoids problems running snappyHexMesh without first clearing files from
      polyMesh which interfere with the operation of snappyHexMesh.
      9b319dab
  13. Nov 29, 2016
  14. Oct 13, 2016
    • Henry Weller's avatar
      blockMesh: New experimental support for projecting block face point to geometric surfaces · 00920318
      Henry Weller authored
      For example, to mesh a sphere with a single block the geometry is defined in the
      blockMeshDict as a searchableSurface:
      
          geometry
          {
              sphere
              {
                  type searchableSphere;
                  centre (0 0 0);
                  radius 1;
              }
          }
      
      The vertices, block topology and curved edges are defined in the usual
      way, for example
      
          v 0.5773502;
          mv -0.5773502;
      
          a 0.7071067;
          ma -0.7071067;
      
          vertices
          (
              ($mv $mv $mv)
              ( $v $mv $mv)
              ( $v  $v $mv)
              ($mv  $v $mv)
              ($mv $mv  $v)
              ( $v $mv  $v)
              ( $v  $v  $v)
              ($mv  $v  $v)
          );
      
          blocks
          (
              hex (0 1 2 3 4 5 6 7) (10 10 10) simpleGrading (1 1 1)
          );
      
          edges
          (
              arc 0 1 (0 $ma $ma)
              arc 2 3 (0 $a $ma)
              arc 6 7 (0 $a $a)
              arc 4 5 (0 $ma $a)
      
              arc 0 3 ($ma 0 $ma)
              arc 1 2 ($a 0 $ma)
              arc 5 6 ($a 0 $a)
              arc 4 7 ($ma 0 $a)
      
              arc 0 4 ($ma $ma 0)
              arc 1 5 ($a $ma 0)
              arc 2 6 ($a $a 0)
              arc 3 7 ($ma $a 0)
          );
      
      which will produce a mesh in which the block edges conform to the sphere
      but the faces of the block lie somewhere between the original cube and
      the spherical surface which is a consequence of the edge-based
      transfinite interpolation.
      
      Now the projection of the block faces to the geometry specified above
      can also be specified:
      
          faces
          (
              project (0 4 7 3) sphere
              project (2 6 5 1) sphere
              project (1 5 4 0) sphere
              project (3 7 6 2) sphere
              project (0 3 2 1) sphere
              project (4 5 6 7) sphere
          );
      
      which produces a mesh that actually conforms to the sphere.
      
      See OpenFOAM-dev/tutorials/mesh/blockMesh/sphere
      
      This functionality is experimental and will undergo further development
      and generalization in the future to support more complex surfaces,
      feature edge specification and extraction etc.  Please get involved if
      you would like to see blockMesh become a more flexible block-structured
      mesher.
      
      Henry G. Weller, CFD Direct.
      00920318
  15. Sep 25, 2016
    • Henry Weller's avatar
      blockMesh: Added printing of the block description to the '-help' output · 02579155
      Henry Weller authored
      blockMesh -help
      
      Usage: blockMesh [OPTIONS]
      options:
        -blockTopology    write block edges and centres as .obj files
        -case <dir>       specify alternate case directory, default is the cwd
        -dict <file>      specify alternative dictionary for the blockMesh description
        -noFunctionObjects
                          do not execute functionObjects
        -region <name>    specify alternative mesh region
        -srcDoc           display source code in browser
        -doc              display application documentation in browser
        -help             print the usage
      
      Block description
      
        For a given block, the correspondence between the ordering of
        vertex labels and face labels is shown below.
        For vertex numbering in the sequence 0 to 7 (block, centre):
          faces 0 (f0) and 1 are left and right, respectively;
          faces 2 and 3 are bottom and top;
          and faces 4 and 5 are front the back:
      
                 4 ---- 5
            f3   |\     |\   f5
            |    | 7 ---- 6   \
            |    0 |--- 1 |    \
            |     \|     \|    f4
            f2     3 ---- 2
      
                  f0 ----- f1
      
      Using: OpenFOAM-dev (see www.OpenFOAM.org)
      Build: dev-dc59c633
      02579155
  16. Jun 17, 2016
  17. Apr 25, 2016
  18. Apr 24, 2016
  19. Jun 27, 2016
  20. Jan 25, 2016
    • mattijs's avatar
      ENH: glboal file handling: initial commit · e4240592
      mattijs authored
      Moved file path handling to regIOobject and made it type specific so
      now every object can have its own rules. Examples:
      - faceZones are now processor local (and don't search up anymore)
      - timeStampMaster is now no longer hardcoded inside IOdictionary
        (e.g. uniformDimensionedFields support it as well)
      - the distributedTriSurfaceMesh is properly processor-local; no need
        for fileModificationChecking manipulation.
      e4240592
  21. Jan 10, 2016
  22. Nov 10, 2015
  23. Jul 04, 2015
  24. Apr 24, 2015
  25. Feb 10, 2015
  26. Oct 29, 2013
  27. Feb 21, 2013
  28. Dec 05, 2012
  29. Aug 14, 2011
  30. Feb 08, 2011
  31. Jan 19, 2011
  32. Jan 14, 2011
  33. Jan 07, 2011
  34. Jan 05, 2011
  35. Nov 24, 2010
  36. Oct 13, 2010
  37. Jun 02, 2010
  38. Apr 27, 2010
  39. Mar 29, 2010