- 30 Jul, 2018 1 commit
-
-
Mark Olesen authored
-
- 04 Jun, 2018 1 commit
-
-
sergio authored
Adding tutorials and other minor changes
-
- 16 May, 2018 1 commit
-
-
Mark Olesen authored
- use refCount instead of the tmp<...>::refCount alias
-
- 21 Mar, 2018 1 commit
-
-
Mark Olesen authored
- both autoPtr and tmp are defined with an implicit construct from nullptr (but with explicit construct from a pointer to null). Thus is it safe to use 'nullptr' when returning an empty autoPtr or tmp.
-
- 26 Feb, 2018 1 commit
-
-
Mark Olesen authored
Improve alignment of its behaviour with std::shared_ptr - element_type typedef - swap, reset methods * additional reference access methods: cref() returns a const reference, synonymous with operator(). This provides a more verbose alternative to using the '()' operator when that is desired. Mnemonic: a const form of 'ref()' constCast() returns a non-const reference, regardless if the underlying object itself is a managed pointer or a const object. This is similar to ref(), but more permissive. Mnemonic: const_cast<> Using the constCast() method greatly reduces the amount of typing and reading. And since the data type is already defined via the tmp template parameter, the type deduction is automatically known. Previously, const tmp<volScalarField>& tfld; const_cast<volScalarField&>(tfld()).rename("name"); volScalarField& fld = const_cast<volScalarField&>(tfld()); Now, tfld.constCast().rename("name"); auto& fld = tfld.constCast(); -- BUG: attempts to move tmp value that may still be shared. - old code simply checked isTmp() to decide if the contents could be transfered. However, this means that the content of a shared tmp would be removed, leaving other instances without content. * movable() method checks that for a non-null temporary that is unique (not shared).
-
- 07 Nov, 2017 2 commits
-
-
Andrew Heather authored
-
Andrew Heather authored
-
- 10 Aug, 2017 1 commit
-
-
sergio authored
-
- 03 Jul, 2017 1 commit
-
-
Mark Olesen authored
-
- 26 May, 2017 1 commit
-
-
Mark Olesen authored
-
- 19 May, 2017 1 commit
-
-
Andrew Heather authored
-
- 07 Sep, 2017 2 commits
-
-
Andrew Heather authored
-
Andrew Heather authored
-
- 08 Aug, 2017 1 commit
-
-
- 13 Jul, 2017 1 commit
-
-
Avoids potential problems with derived classes which do not define a clone function.
-
- 31 Mar, 2017 1 commit
-
-
Henry Weller authored
These models have been particularly designed for use in the VoF solvers, both incompressible and compressible. Currently constant and temperature dependent surface tension models are provided but it easy to write models in which the surface tension is evaluated from any fields held by the mesh database.
-
- 16 Mar, 2017 1 commit
-
-
Henry Weller authored
e.g. ramp { type quadratic; start 200; duration 1.6; } but the old format is supported for backward compatibility: ramp linear; rampCoeffs { start 200; duration 1.6; }
-
- 22 Mar, 2016 1 commit
-
-
Henry Weller authored
-
- 29 Feb, 2016 1 commit
-
-
Henry Weller authored
-
- 28 Feb, 2016 1 commit
-
-
Henry Weller authored
-
- 22 Feb, 2016 1 commit
-
-
Henry Weller authored
This change requires that the de-reference operator '()' returns a const-reference to the object stored irrespective of the const-ness of object stored and the new member function 'ref()' is provided to return an non-const reference to stored object which throws a fatal error if the stored object is const. In order to smooth the transition to this new safer 'tmp' the now deprecated and unsafe non-const de-reference operator '()' is still provided by default but may be switched-off with the compilation switch 'CONST_TMP'. The main OpenFOAM library has already been upgraded and '-DCONST_TMP' option specified in the 'options' file to switch to the new 'tmp' behavior. The rest of OpenFOAM-dev will be upgraded over the following few weeks. Henry G. Weller CFD Direct
-
- 10 Feb, 2016 1 commit
-
-
Henry Weller authored
-
- 08 Feb, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
Function1 is an abstract base-class of run-time selectable unary functions which may be composed of other Function1's allowing the user to specify complex functions of a single scalar variable, e.g. time. The implementations need not be a simple or continuous functions; interpolated tables and polynomials are also supported. In fact form of mapping between a single scalar input and a single primitive type output is supportable. The primary application of Function1 is in time-varying boundary conditions, it also used for other functions of time, e.g. injected mass is spray simulations but is not limited to functions of time.
-