- Dec 09, 2021
-
-
Mark OLESEN authored
-
- Oct 29, 2021
-
-
Mark OLESEN authored
- encapsulates toggling STYLE: noexcept for some Time methods
-
- Oct 02, 2020
-
-
Mark OLESEN authored
-
- Oct 31, 2019
-
-
OpenFOAM bot authored
-
- Nov 04, 2019
-
-
Mark OLESEN authored
-
- Oct 10, 2019
-
-
Mark OLESEN authored
ENH: added scalarField hypot() function
-
- Feb 06, 2019
-
-
OpenFOAM bot authored
-
- Jan 09, 2019
-
-
Mark OLESEN authored
- use file-local function to reduce some code clutter
-
- Jan 02, 2019
-
-
Mark OLESEN authored
STYLE: use standard dimensionedSets
-
- Nov 20, 2018
-
-
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).
-
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)
-
- Mar 16, 2018
-
-
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).
-
- Feb 26, 2018
-
-
Mark OLESEN authored
-
- Oct 23, 2017
-
-
Mark OLESEN authored
- makes it easier to transmit or stream as a list of scalars
-
- Jun 22, 2017
-
-
"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.
-
- May 29, 2016
-
-
Henry Weller authored
-
- Jul 03, 2015
-
-
Henry Weller authored
posPart returns a value or field in which the value or values are set to 0 if negative negPart returns a value or field in which the value or values are set to 0 if positive
-
- Jan 09, 2014
-
-
andy authored
-
- Jan 24, 2013
-
-
Henry authored
-
- Jan 02, 2013
-
-
mattijs authored
-
- Nov 14, 2012
-
-
Henry authored
-
- Oct 08, 2012
-
-
mattijs authored
-
- Aug 14, 2011
-
-
Henry authored
-
- Jan 19, 2011
-
- Jan 14, 2011
-
-
Andrew Heather authored
-
- Jan 07, 2011
-
-
graham authored
-
- Jan 05, 2011
-
-
Andrew Heather authored
This reverts commit b18f6cc1.
-
graham authored
-
- Jul 28, 2010
-
-
graham authored
-
- Mar 29, 2010
-
-
Mark Olesen authored
-
- Nov 23, 2009
-
-
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==
-
- Sep 09, 2009
-
-
Andrew Heather authored
- graham showed significant speedup (8-9x) for sqrt(sqrt(x)) compared to pow(x, 0.25)
-
- Feb 09, 2009
-
-
Andrew Heather authored
-
- Dec 31, 2008
-
-
Mark Olesen authored
-
- Jun 25, 2008
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- Apr 15, 2008
-
-
OpenFOAM-admin authored
-