Skip to content
Snippets Groups Projects
  1. Dec 03, 2021
  2. Oct 08, 2021
  3. Mar 17, 2021
  4. Mar 04, 2021
  5. Dec 08, 2020
  6. Nov 19, 2020
    • Mark OLESEN's avatar
      STYLE: prefix zero/one with Foam:: qualifier · 98d05fa8
      Mark OLESEN authored
      ENH: support construction of zero-sized IndirectList
      
      - useful when addressing is to be generated in-place after construction.
        Eg,
      
            indirectPrimitivePatch myPatches
            (
                IndirectList<face>(mesh.faces(), Zero),
                mesh.points()
            );
            labelList& patchFaces = myPatches.addressing();
      
            patchFaces.resize(...);
            // populate patchFaces
      
      STYLE: add noexcept for zero/one fields and remove old dependency files
      
      COMP: correct typedefs for geometricOneField, geometricZeroField
      98d05fa8
  7. Oct 28, 2020
  8. Jun 10, 2020
  9. Jun 02, 2020
    • Mark OLESEN's avatar
      ENH: unify use of dictionary method names · 3e43edf0
      Mark OLESEN authored
      - previously introduced `getOrDefault` as a dictionary _get_ method,
        now complete the transition and use it everywhere instead of
        `lookupOrDefault`. This avoids mixed usage of the two methods that
        are identical in behaviour, makes for shorter names, and promotes
        the distinction between "lookup" access (ie, return a token stream,
        locate and return an entry) and "get" access (ie, the above with
        conversion to concrete types such as scalar, label etc).
      3e43edf0
  10. Mar 11, 2020
    • Andrew Heather's avatar
      ENH: Added GeometricField copy constructor with additional BC handling. See #1620 · 0eecec48
      Andrew Heather authored
      Often we want to copy a field and replace boundary conditions, e.g. change type
      to calculated for some patches.  This has typically been achieved by creating a
      word list of new patch types which are then fed through to the fvPatchField::New
      factory method.  This is OK for types that require no additional input (usually
      from dictionary) but leaves other more complex types partially
      constructed/usable.
      
      The new constructor clones all BCs except those with indices specified, for
      which the fvPatchField::New method is called for the supplied patch field type.
      0eecec48
  11. Feb 18, 2020
  12. Jan 31, 2020
  13. Dec 09, 2019
  14. Nov 22, 2019
  15. Nov 20, 2019
  16. Nov 15, 2019
  17. Nov 11, 2019
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      ENH: rationalize some string methods. · 7c1190f0
      Mark OLESEN authored
      - silently deprecate 'startsWith', 'endsWith' methods
        (added in 2016: 2b143606), in favour of
        'starts_with', 'ends_with' methods, corresponding to C++20 and
        allowing us to cull then in a few years.
      
      - handle single character versions of starts_with, ends_with.
      
      - add single character version of removeEnd and silently deprecate
        removeTrailing which did the same thing.
      
      - drop the const versions of removeRepeated, removeTrailing.
        Unused and with potential confusion.
      
      STYLE: use shrink_to_fit(), erase()
      7c1190f0
  18. Oct 31, 2019
  19. Nov 05, 2019
  20. Jun 26, 2019
  21. Jun 07, 2019
    • Sergio Ferraris's avatar
      INT: Org integration of VOF, Euler phase solvers and models. · 8170f2ad
      Sergio Ferraris authored
      Integration of VOF MULES new interfaces. Update of VOF solvers and all instances
      of MULES in the code.
      Integration of reactingTwoPhaseEuler and reactingMultiphaseEuler solvers and sub-models
      Updating reactingEuler tutorials accordingly (most of them tested)
      
      New eRefConst thermo used in tutorials. Some modifications at thermo specie level
      affecting mostly eThermo. hThermo mostly unaffected
      
      New chtMultiRegionTwoPhaseEulerFoam solver for quenching and tutorial.
      
      Phases sub-models for reactingTwoPhaseEuler and reactingMultiphaseEuler were moved
      to src/phaseSystemModels/reactingEulerFoam in order to be used by BC for
      chtMultiRegionTwoPhaseEulerFoam.
      
      Update of interCondensatingEvaporatingFoam solver.
      8170f2ad
  22. Jun 04, 2019
  23. May 28, 2019
  24. Jan 07, 2019
  25. Feb 13, 2019
  26. Feb 06, 2019
  27. Jan 25, 2019
  28. Jan 10, 2019
    • Mark OLESEN's avatar
      STYLE: modernize code for GeometricFieldFunctions (#1160) · 7e48f2c6
      Mark OLESEN authored
      - use forwarding tmp factory methods, auto types
      7e48f2c6
    • Mark OLESEN's avatar
      STYLE: modernize code for tmp reuse functions (#1160) · 35fc2d1b
      Mark OLESEN authored
      - use forwarding tmp factory methods
      35fc2d1b
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      ENH: add clip() method to GeometricField · 5c226864
      Mark OLESEN authored
      5c226864
    • Mark OLESEN's avatar
      ENH: minMax, minMaxMag as functions and field functions · 9a702900
      Mark OLESEN authored
      - Global functions are unary or combining binary functions, which are
        defined in MinMax.H (MinMaxOps.H).
      
        There are also global reduction functions (gMinMax, gMinMaxMag)
        as well as supporting 'Op' classes:
      
        - minMaxOp, minMaxEqOp, minMaxMagOp, minMaxMagEqOp
      
        Since the result of the functions represents a content reduction
        into a single MinMax<T> value (a min/max pair), field operations
        returning a field simply do not make sense.
      
      - Implemented for lists, fields, field-fields, DimensionedField,
        GeometricField (parallel reducing, with boundaries).
      
      - Since the minMax evaluates during its operation, this makes it more
        efficient for cases where both min/max values are required since it
        avoids looping twice through the data.
      
        * Changed GeometricField writeMinMax accordingly.
      
      ENH: clip as field function
      
      - clipping provides a more efficient, single-pass operation to apply
        lower/upper limits on single or multiple values.
      
        Examples,
      
          scalarMinMax limiter(0, 1);
      
          limiter.clip(value)
      
             -> returns a const-ref to the value if within the range, or else
                returns the appropriate lower/upper limit
      
          limiter.inplaceClip(value)
      
             -> Modifies the value if necessary to be within lower/upper limit
      
        Function calls
      
          clip(value, limiter)
      
             -> returns a copy after applying lower/upper limit
      
          clip(values, limiter)
      
             -> returns a tmp<Field> of clipped values
      9a702900
  29. Jan 09, 2019
  30. Jan 03, 2019
  31. Dec 11, 2018
    • Mark OLESEN's avatar
      ENH: use Zero when zero-initializing types · 1d85fecf
      Mark OLESEN authored
      - makes the intent clearer and avoids the need for additional
        constructor casting. Eg,
      
            labelList(10, Zero)    vs.  labelList(10, 0)
            scalarField(10, Zero)  vs.  scalarField(10, scalar(0))
            vectorField(10, Zero)  vs.  vectorField(10, vector::zero)
      1d85fecf
  32. Nov 26, 2018
    • Mark OLESEN's avatar
      ENH: add non-const field access without triggering update counter (#1081) · 1905039d
      Mark OLESEN authored
      - can now things like ref(), boundaryFieldRef(), primitiveFieldRef()
        with an optional argument that avoids triggering any update events
      
        Instead of
      
            Field<Type>& iF = const_cast<Field<Type>&>(fld.primitiveField());
      
        can now write
      
            Field<Type>& iF = fld.primitiveFieldRef(false);
      
        or simply
      
            auto& iF = fld.primitiveFieldRef(false);
      1905039d
  33. Nov 16, 2018