Skip to content
Snippets Groups Projects
  1. Dec 09, 2021
  2. Oct 29, 2021
  3. Oct 02, 2020
  4. Oct 31, 2019
  5. Nov 04, 2019
  6. Oct 10, 2019
  7. Feb 06, 2019
  8. Jan 09, 2019
  9. Jan 02, 2019
  10. Nov 20, 2018
    • Mark OLESEN's avatar
      ENH: modernize code in dimensionSet, dimensionSets · 5a9a2935
      Mark OLESEN authored
      - 'unfriend' operators on dimensionSet, since they operate without
        requiring access to non-public members.
      
      - add missing invTransform() function for dimensionSet.
      
      - make inv(const dimensionSet&) available as
        operator~(const dimensionSet&), which can be used instead
        of (dimless/ds).
      5a9a2935
    • Mark OLESEN's avatar
      ENH: add read guard for dimensionedType constructors (#762) · dd87c983
      Mark OLESEN authored
      - deprecate dimensionedType constructors using an Istream in favour of
        versions accepting a keyword and a dictionary.
      
        Dictionary entries are almost the exclusive means of read
        constructing a dimensionedType. By construct from the dictionary
        entry instead of doing a lookup() first, we can detect possible
        input errors such as too many tokens as a result of a input syntax
        error.
      
        Constructing a dimensionedType from a dictionary entry now has
        two forms.
      
        1.  dimensionedType(key, dims, dict);
      
            This is the constructor that will normally be used.
      
            It accepts entries with optional leading names and/or
            dimensions. If the entry contains dimensions, they are
            verified against the expected dimensions and an IOError is
            raised if they do not correspond. On conclusion, checks the
            token stream for any trailing rubbish.
      
        2.  dimensionedType(key, dict);
      
            This constructor is used less frequently.
      
            Similar to the previous description, except that it is initially
            dimensionless. If entry contains dimensions, they are used
            without further verification. The constructor also includes a
            token stream check.
      
            This constructor is useful when the dimensions are entirely
            defined from the dictionary input, but also when handling
            transition code where the input dimensions are not obvious from
            the source.
      
            This constructor can also be handy when obtaining values from
            a dictionary without needing to worry about the input dimensions.
            For example,
      
               Info<< "rho: " << dimensionedScalar("rho", dict).value() << nl;
      
            This will accept a large range of inputs without hassle.
      
      ENH: consistent handling of dimensionedType for inputs (#1083)
      
      BUG: incorrect Omega dimensions (fixes #2084)
      dd87c983
  11. Mar 16, 2018
    • Mark OLESEN's avatar
      STYLE: more consistent use of dimensioned Zero · 2f86cdc7
      Mark OLESEN authored
      - when constructing dimensioned fields that are to be zero-initialized,
        it is preferrable to use a form such as
      
            dimensionedScalar(dims, Zero)
            dimensionedVector(dims, Zero)
      
        rather than
      
            dimensionedScalar("0", dims, 0)
            dimensionedVector("zero", dims, vector::zero)
      
        This reduces clutter and also avoids any suggestion that the name of
        the dimensioned quantity has any influence on the field's name.
      
        An even shorter version is possible. Eg,
      
            dimensionedScalar(dims)
      
        but reduces the clarity of meaning.
      
      - NB: UniformDimensionedField is an exception to these style changes
        since it does use the name of the dimensioned type (instead of the
        regIOobject).
      2f86cdc7
  12. Feb 26, 2018
  13. Oct 23, 2017
  14. Jun 22, 2017
    • Henry Weller's avatar
      Rationalize the "pos" function · 56bfc759
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      "pos" now returns 1 if the argument is greater than 0, otherwise it returns 0.
      This is consistent with the common mathematical definition of the "pos" function:
      
      https://en.wikipedia.org/wiki/Sign_(mathematics)
      
      However the previous implementation in which 1 was also returned for a 0
      argument is useful in many situations so the "pos0" has been added which returns
      1 if the argument is greater or equal to 0.  Additionally the "neg0" has been
      added which returns 1 if if the argument is less than or equal to 0.
      56bfc759
  15. May 29, 2016
  16. Jul 03, 2015
  17. Jan 09, 2014
  18. Jan 24, 2013
  19. Jan 02, 2013
  20. Nov 14, 2012
  21. Oct 08, 2012
  22. Aug 14, 2011
  23. Jan 19, 2011
  24. Jan 14, 2011
  25. Jan 07, 2011
  26. Jan 05, 2011
  27. Jul 28, 2010
  28. Mar 29, 2010
  29. Nov 23, 2009
    • Mark Olesen's avatar
      dimensionSet enhancement · 534b7dca
      Mark Olesen authored
      - added asText() method to assist people with remembering what the
        dimensions are in English
      
      - minor short-circuit optimizations in dimensionless() and operator==
      534b7dca
  30. Sep 09, 2009
  31. Feb 09, 2009
  32. Dec 31, 2008
  33. Jun 25, 2008
  34. Apr 15, 2008