Skip to content
Snippets Groups Projects
  1. Jul 19, 2023
  2. Jul 18, 2023
  3. Jul 13, 2023
  4. Jul 06, 2023
  5. Jul 05, 2023
  6. Jul 04, 2023
    • Mark OLESEN's avatar
      ENH: use mapDistribute linear construct order in a few places · a1e34bb2
      Mark OLESEN authored
      - simplifies code by avoiding code duplication:
        * parLagrangianDistributor
        * meshToMesh (processorLOD and AABBTree methods)
      
      BUG: inconsistent mapping when using processorLOD boxes (fixes #2932)
      
      - internally the processorLODs createMap() method used a 'localFirst'
        layout whereas a 'linear' order is what is actually expected for the
        meshToMesh mapping. This will cause of incorrect behaviour
        if using processorLOD instead of AABBTree.
        A dormant bug since processorLOD is not currently selectable.
      a1e34bb2
    • Mark OLESEN's avatar
      ENH: support alternative construct map layout mapDistributeBase · 0d456a4c
      Mark OLESEN authored
      - when constructing from a sendMap, can now also specify a linear
        receive layout instead of a localFirst layout
      
        This will make it easier to reduce some code (#2932)
      
      - add missing interface for simple distribute of List/DynamicList
        with a specified commsType. Was previously restricted to
        defaultCommsType only.
      
      ENH: mapDistribute distribute/reverseDistribute with specified commsType
      
      STYLE: prefer UPstream vs Pstream within mapDistribute
      0d456a4c
    • Mark OLESEN's avatar
      ENH: use exprValue in exprResult · 728527a3
      Mark OLESEN authored
      - replaces previous (similar) union but leverages the type tag for
        handling logic
      
      STYLE: remove unneeded refCount from exprResult
      
      COMP: operator!= as member operator (exprResultDelayed, exprResultStored)
      
      - the operator!= as a free function failed to resolve after removing
        the refCount inheritance
      728527a3
    • Mark OLESEN's avatar
      ENH: add low-level polymorphic/boxed exprValue · 5635e14f
      Mark OLESEN authored
      - primarily for handling expression results,
        but can also be used as a universal value holder.
      
        Has some characteristics suitable for type-less IO:
        eg, is_integral(), nComponents()
      
      ENH: add is_pointer() check for expression scanToken
      5635e14f
    • Mark OLESEN's avatar
      ENH: simplify/extend decomposedBlockData retrieve block information · fc2760ab
      Mark OLESEN authored
      - handle existence/non-existence of a FoamFile header automatically
      - support an upper limit when getting the number of blocks and
        use that for a hasBlock(...) method, which will stop reading sooner.
      fc2760ab
    • Mark OLESEN's avatar
      ENH: add ITstream::emptyStream() · f8987e64
      Mark OLESEN authored
      - returns readable reference to an empty ITstream for functions
        needing to return an ITstream reference but which
        don't have anything to return.
      f8987e64
    • Mark OLESEN's avatar
      ENH: expose read option for Time construction · a215f94e
      Mark OLESEN authored
      - Time is normally constructed with READ_MODIFIED for its controlDict
        and objectRegistry, but for certain applications (eg, redistributePar)
        it can be useful to construct without file monitoring and specifying
        MUST_READ instead.
      
        Example,
      
        Info<< "Create time\n" << Foam::endl;
        Time runTime
        (
            Time::controlDictName,
            args,
            false,   // Disallow functionObjects
            true,    // Allow controlDict "libs"
            IOobjectOption::MUST_READ  // Instead of READ_MODIFIED
        );
      a215f94e
    • Mark OLESEN's avatar
      STYLE: changes to Time and TimeState · d5a0eaee
      Mark OLESEN authored
      - update TimeState access methods
      
      - use writeTime() instead of old method name outputTime()
      
      - use deltaTValue() instead of deltaT().value()
        to avoids pointless construct of intermediate
      d5a0eaee
    • Mark OLESEN's avatar
      DOC: document/warn about GeometricField constructor being always read (#2926) · 7a857b31
      Mark OLESEN authored
      - no change in behaviour except to emit a warning when called with the
        a non-reading readOption
      
      STYLE: remove redundant size check
      
      - size checking is already done by Field::assign() within the
        DimensionedField::readField
      7a857b31
  7. Jun 28, 2023
  8. Jun 27, 2023
  9. Jun 26, 2023
  10. Jun 25, 2023
    • Andrew Heather's avatar
      STYLE: AMI - updated output to show AMI patch names · c3660b41
      Andrew Heather authored
      Helps when running/debugging cases with multiple AMI patches
      
      Example:
      
      AMI: Creating AMI for source:AMI1 and target:AMI2
      AMI: Patch source faces: 96
      AMI: Patch target faces: 96
      AMI: Patch source sum(weights) min:1 max:1 average:1
      AMI: Patch target sum(weights) min:1 max:1 average:1
      c3660b41
  11. Jun 23, 2023
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      ENH: yPlus: support disable of field writing (#2813) · 2afd2320
      Mark OLESEN authored
      - for simulations where the yPlus is needed for other purposes or
        just for obtaining information on the patches it can be useful
        to disable field writing and save disk space.
      
        The 'writeFields' flag (as per some other function objects)
        has been added control writing the yPlus volume field.
      
        If unspecified, the default value is 'true' so that the yPlus
        function object continues to work as before.
        However, this default may change to 'false' in the future to align
        with other function objects.
      
      ENH: wallShearStress: support disable of field writing
      
      - similar to yPlus, the write() method combines writing information
        and writing the fields. The 'writeFields' flag allows some
        separation of that logic.
      2afd2320