1. 07 Jan, 2019 1 commit
  2. 13 Feb, 2019 1 commit
  3. 06 Feb, 2019 1 commit
  4. 27 Sep, 2018 1 commit
    • Mark Olesen's avatar
      STYLE: add nBoundaryFaces() method to primitiveMesh · 64c3e484
      Mark Olesen authored
      - nBoundaryFaces() is often used and is identical to
        (nFaces() - nInternalFaces()).
      
      - forward the mesh nInternalFaces() and nBoundaryFaces() to
        polyBoundaryMesh as nFaces() and start() respectively,
        for use when operating on a polyBoundaryMesh.
      
      STYLE:
      
      - use identity() function with starting offset when creating boundary maps.
      
           labelList map
           (
               identity(mesh.nBoundaryFaces(), mesh.nInternalFaces())
           );
      
        vs.
      
           labelList map(mesh.nBoundaryFaces());
           forAll(map, i)
           {
               map[i] = mesh.nInternalFaces() + i;
           }
      64c3e484
  5. 03 Aug, 2018 1 commit
    • Mark Olesen's avatar
      ENH: additional methods and improvements to plane · de2eed3e
      Mark Olesen authored
      - signedDistance() method is like distance() but retains
        the positive/negative sign for the side of the plane.
      
      - the sign() method returns the sign as -1,0,+1 integer for
        classification purposes where it is important to distinguish between
        a zero value and a positive value (eg, for cutting). Optional
        tolerance can be supplied to round for zero.
      
      - refactor and inlined simple and frequently used methods.
      
      - add boundBox faceCentre() method, which can be useful for creating
        clipping planes from a bounding box.
        Relocated treeBoundBox faceNormals to boundBox since they apply
        equally there - the meaning of the faces (x-min, x-max, etc)
        is the same, even if the point addressing for the faces differs.
      de2eed3e
  6. 10 Aug, 2018 1 commit
  7. 29 May, 2018 1 commit
  8. 05 Mar, 2018 1 commit
    • Mark Olesen's avatar
      STYLE: use direct iteration for HashSet · 4fe8ed82
      Mark Olesen authored
      - The iterator for a HashSet dereferences directly to its key.
      
      - Eg,
      
            for (const label patchi : patchSet)
            {
                ...
            }
        vs.
            forAllConstIter(labelHashSet, patchSet, iter)
            {
                const label patchi = iter.key();
                ...
            }
      4fe8ed82
  9. 28 Mar, 2018 1 commit
  10. 14 Mar, 2018 1 commit
  11. 09 Feb, 2018 1 commit
    • Mark Olesen's avatar
      BUG: incorrect HashTable / HashSet instances · 09a6e940
      Mark Olesen authored
      - Eg instead of using labelHashSet, used HashSet<label> which uses
        the string::hash for hashing. Other places inadvertently using the
        string::hash instead of Hash<label> for hashing.
      
      STYLE: use Map<..> instead of HashTable<.., label, Hash<label>>
      
      - reduces clutter
      09a6e940
  12. 12 Jul, 2018 1 commit
  13. 20 Mar, 2018 1 commit
    • Henry Weller's avatar
      ENH: atmosphericModels: Added Lopes da Costa porosity and turbulence models · c812b4c6
      Henry Weller authored
      Specialized variants of the power law porosity and k epsilon turbulence models
      developed to simulate atmospheric flow over forested and non-forested complex
      terrain.
      
      Class
          Foam::powerLawLopesdaCosta
      
      Description
          Variant of the power law porosity model with spatially varying
          drag coefficient
      
          given by:
      
              \f[
                  S = -\rho C_d \Sigma |U|^{(C_1 - 1)} U
              \f]
      
          where
          \vartable
              \Sigma | Porosity surface area per unit volume
              C_d    | Model linear coefficient
              C_1    | Model exponent coefficient
          \endvartable
      
          Reference:
          \verbatim
              Costa, J. C. P. L. D. (2007).
              Atmospheric flow over forested and non-forested complex terrain.
          \endverbatim
      
      Class
          Foam::RASModels::kEpsilonLopesdaCosta
      
      Description
          Variant of the standard k-epsilon turbulence model with additional source
          terms to handle the changes in turbulence in porous regions represented by
          the powerLawLopesdaCosta porosity model.
      
          Reference:
          \verbatim
              Costa, J. C. P. L. D. (2007).
              Atmospheric flow over forested and non-forested complex terrain.
          \endverbatim
      
          The default model coefficients are
          \verbatim
              kEpsilonLopesdaCostaCoeffs
              {
                  Cmu         0.09;
                  C1          1.44;
                  C2          1.92;
                  sigmak      1.0;
                  sigmaEps    1.3;
              }
          \endverbatim
      
      Tutorial case to follow.
      c812b4c6
  14. 24 Oct, 2017 1 commit
  15. 28 Apr, 2017 1 commit
  16. 24 Nov, 2016 1 commit
  17. 18 May, 2016 1 commit
  18. 25 Apr, 2016 2 commits
  19. 16 Apr, 2016 1 commit
  20. 29 Feb, 2016 1 commit
  21. 10 Jan, 2016 1 commit
  22. 11 Nov, 2015 1 commit
  23. 15 Nov, 2013 1 commit
  24. 17 Apr, 2012 2 commits
  25. 08 Dec, 2011 1 commit
  26. 14 Aug, 2011 1 commit
  27. 22 Jul, 2011 1 commit
  28. 21 Jul, 2011 1 commit
  29. 24 Jan, 2011 1 commit
    • graham's avatar
      ENH: Various improvements. · b328499d
      graham authored
        + No fatal error on triSurfaceTools::surfaceSide, commented out WarningIn.
      
        + Make cellSizeControlSurfaces look for a GREAT span for the nearest surface
          point.
      
        + Identify and limit filtering on single internal face cells in polyMesh
          quality assessment.
      
        + Create cellSet of remaining protruding cells after polyMesh creation.
      
        + Implemented wellOutside function by generalising wellInside to
          wellInOutSide.
      b328499d
  30. 19 Jan, 2011 1 commit
  31. 14 Jan, 2011 1 commit
  32. 07 Jan, 2011 2 commits
  33. 05 Jan, 2011 2 commits
  34. 26 Nov, 2010 1 commit
  35. 06 Oct, 2010 2 commits