- 29 Feb, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
- 28 Feb, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
- 27 Feb, 2016 1 commit
-
-
Henry Weller authored
which reduces the number of potential problems with the reuse of temporary objects. In order to avoid unnecessary creation of tmp's referring to temporary objects the assignment operator now transfers ownership of the object and resets the argument.
-
- 26 Feb, 2016 2 commits
-
-
Henry Weller authored
The deprecated non-const tmp functionality is now on the compiler switch NON_CONST_TMP which can be enabled by adding -DNON_CONST_TMP to EXE_INC in the Make/options file. However, it is recommended to upgrade all code to the new safer tmp by using the '.ref()' member function rather than the non-const '()' dereference operator when non-const access to the temporary object is required. Please report any problems on Mantis. Henry G. Weller CFD Direct.
-
Henry Weller authored
-
- 25 Feb, 2016 3 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
Henry Weller authored
-
- 24 Feb, 2016 1 commit
-
-
Henry Weller authored
in case of tmp misuse. Simplified tmp reuse pattern in field algebra to use tmp copy and assignment rather than the complex delayed call to 'ptr()'. Removed support for unused non-const 'REF' storage of non-tmp objects due to C++ limitation in constructor overloading: if both tmp(T&) and tmp(const T&) constructors are provided resolution is ambiguous. The turbulence libraries have been upgraded and '-DCONST_TMP' option specified in the 'options' file to switch to the new 'tmp' behavior.
-
- 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
-
- 20 Feb, 2016 1 commit
-
-
Henry Weller authored
To be used instead of zeroGradientFvPatchField for temporary fields for which zero-gradient extrapolation is use to evaluate the boundary field but avoiding fields derived from temporary field using field algebra inheriting the zeroGradient boundary condition by the reuse of the temporary field storage. zeroGradientFvPatchField should not be used as the default patch field for any temporary fields and should be avoided for non-temporary fields except where it is clearly appropriate; extrapolatedCalculatedFvPatchField and calculatedFvPatchField are generally more suitable defaults depending on the manner in which the boundary values are specified or evaluated. The entire OpenFOAM-dev code-base has been updated following the above recommendations. Henry G. Weller CFD Direct
-
- 12 Feb, 2016 4 commits
-
-
Henry Weller authored
-
Henry Weller authored
valuePointPatchField: Change assignment to use the object's internalField rather than that of the argument Avoids dependency on the state of the argument pointPatchField the internalField of which may have been de-allocated
-
Henry Weller authored
which supports re-using the internalField storage
-
Henry Weller authored
This is a convenient method to set a null-constructed tmp in a conditional statement.
-
- 10 Feb, 2016 2 commits
-
-
Henry Weller authored
with optional specification of the mark/space ratio Templated square-wave function with support for an offset level. \f[ a square(f (t - t_0)) s + l \f] where \f$ square(t) \f$ is the square-wave function in range \f$ [-1, 1] \f$ with a mark/space ratio of \f$ r \f$ \vartable symbol | Description | Data type | Default a | Amplitude | Function1<scalar> | f | Frequency [1/s] | Function1<scalar> | s | Type scale factor | Function1<Type> | l | Type offset level | Function1<Type> | t_0 | Start time [s] | scalar | 0 r | mark/space ratio | scalar | 1 t | Time [s] | scalar \endvartable Example for a scalar: \verbatim <entryName> square; <entryName>Coeffs { frequency 10; amplitude 0.1; scale 2e-6; level 2e-6; } \endverbatim
-
Henry Weller authored
-
- 09 Feb, 2016 1 commit
-
-
Henry Weller authored
-
- 08 Feb, 2016 5 commits
-
-
Henry Weller authored
-
Henry Weller authored
Templated sine function with support for an offset level. \f[ a sin(2 \pi f (t - t_0)) s + l \f] where \vartable symbol | Description | Data type a | Amplitude | Function1<scalar> f | Frequency [1/s] | Function1<scalar> s | Type scale factor | Function1<Type> l | Type offset level | Function1<Type> t_0 | Start time [s] | scalar t | Time [s] | scalar \endvartable
-
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.
-
Henry Weller authored
-
Henry Weller authored
Description Templated sine function with support for an offset level. \f[ a sin(2 \pi f (t - t_0)) s + l \f] where \vartable a | Amplitude f | Frequency [1/s] s | Type scale factor l | Type offset level t_0 | Start time [s] t | Time [s] \endvartable Example for a scalar: \verbatim <entryName> sine; <entryName>Coeffs { frequency 10; amplitude 0.1; scale 2e-6; level 2e-6; } \endverbatim Example for a vector: \verbatim <entryName> sine; <entryName>Coeffs { frequency 10; amplitude 1; scale (1 0.1 0); level (10 1 0); } \endverbatim
-
- 07 Feb, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
to avoid name conflicts with these primitive names in the OpenFOAM namespace
-
- 06 Feb, 2016 1 commit
-
-
Henry Weller authored
Removed inconsistent binary output. Removed unused and IO-inconsistent functions. Simplified the handling of backward-compatible constant value: Removed the unnecessary CompatibilityConstant, Updated Constant and DataEntryNew to handle constant value construction.
-
- 04 Feb, 2016 1 commit
-
-
Henry Weller authored
// Polynomial functions and interpolation do evaluate to label // Instead evaluate a scalar and convert to label as appropriate // makeDataEntryType(PolynomialEntry, label); // makeDataEntryType(CSV, label); // makeDataEntryType(Table, label); // makeDataEntryType(TableFile, label); Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1987
-
- 02 Feb, 2016 1 commit
-
-
Henry Weller authored
This change ensures that these patches are named consistently so that they can be looked-up as required in e.g. patchMeanVelocityForce
-
- 20 Jan, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
- 19 Jan, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
- 17 Jan, 2016 1 commit
-
-
Henry Weller authored
Always return void to avoid various bugs associated with automatic type conversion. Resolves request http://openfoam.org/mantisbt/view.php?id=1973
-
- 11 Jan, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
- 10 Jan, 2016 3 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
Henry Weller authored
-