- Feb 16, 2021
-
-
- centralises existing functions (erfInv, incGamma*, invIncGamma*). Provides a location for additional functions in the future. - adjusted existing models to use these functions (e.g. distributionModels::normal)
-
- Oct 31, 2019
-
-
OpenFOAM bot authored
-
- Apr 28, 2019
-
-
Mark OLESEN authored
- Eg, with surface writers now in surfMesh, there are fewer libraries depending on conversion and sampling. COMP: regularize linkage ordering and avoid some implicit linkage (#1238)
-
- Feb 06, 2019
-
-
OpenFOAM bot authored
-
- Jan 05, 2019
-
-
sergio authored
- number of particles per parcel info to kinematic cloud - added turbulent dispersion to basicHeterogeneousReactingParcel - corrected dhsTrans in MUCSheterogeneousRate::calculate - added cloud macro system to reactingParcelFoam and fixed calculation of average particles per parcel - added progress variable dimension to reacting model (nF) - added ReactingHeterogeneous tutorial
-
- Dec 11, 2018
-
-
Mark OLESEN authored
- makes the intent clearer and avoids the need for additional constructor casting. Eg, labelList(10, Zero) vs. labelList(10, 0) scalarField(10, Zero) vs. scalarField(10, scalar(0)) vectorField(10, Zero) vs. vectorField(10, vector::zero)
-
- Oct 17, 2018
-
-
Mark OLESEN authored
New name: findObject(), cfindObject() Old name: lookupObjectPtr() Return a const pointer or nullptr on failure. New name: findObject() Old name: -- Return a non-const pointer or nullptr on failure. New name: getObjectPtr() Old name: lookupObjectRefPtr() Return a non-const pointer or nullptr on failure. Can be called on a const object and it will perform a const_cast. - use these updated names and functionality in more places NB: The older methods names are deprecated, but continue to be defined.
-
- Oct 12, 2018
-
-
Mark OLESEN authored
- use the dictionary 'get' methods instead of readScalar for additional checking Unchecked: readScalar(dict.lookup("key")); Checked: dict.get<scalar>("key"); - In templated classes that also inherit from a dictionary, an additional 'template' keyword will be required. Eg, this->coeffsDict().template get<scalar>("key"); For this common use case, the predefined getXXX shortcuts may be useful. Eg, this->coeffsDict().getScalar("key");
-
- Mar 21, 2018
-
-
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.
-
- Feb 26, 2018
-
-
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).
-
- Nov 07, 2017
-
-
Andrew Heather authored
-
Andrew Heather authored
-
- Nov 05, 2017
-
-
Mark OLESEN authored
- makes for clearer code ENH: make writeIfDifferent part of Ostream
-
- Aug 29, 2017
-
-
- Sep 08, 2017
-
-
Andrew Heather authored
-
- Apr 28, 2017
-
-
Andrew Heather authored
-
- Feb 18, 2017
-
-
Henry Weller authored
Description Base-class for thermophysical properties of solids, liquids and gases providing an interface compatible with the templated thermodynamics packages. liquidProperties, solidProperties and thermophysicalFunction libraries have been combined with the new thermophysicalProperties class into a single thermophysicalProperties library to simplify compilation and linkage of models, libraries and applications dependent on these classes.
-
- Feb 17, 2017
-
-
Henry Weller authored
The fundamental properties provided by the specie class hierarchy were mole-based, i.e. provide the properties per mole whereas the fundamental properties provided by the liquidProperties and solidProperties classes are mass-based, i.e. per unit mass. This inconsistency made it impossible to instantiate the thermodynamics packages (rhoThermo, psiThermo) used by the FV transport solvers on liquidProperties. In order to combine VoF with film and/or Lagrangian models it is essential that the physical propertied of the three representations of the liquid are consistent which means that it is necessary to instantiate the thermodynamics packages on liquidProperties. This requires either liquidProperties to be rewritten mole-based or the specie classes to be rewritten mass-based. Given that most of OpenFOAM solvers operate mass-based (solve for mass-fractions and provide mass-fractions to sub-models it is more consistent and efficien...
-
- Aug 05, 2016
-
-
Henry Weller authored
Requires gcc version 4.7 or higher
-
- Jul 23, 2016
-
-
Henry Weller authored
See also: StochasticDispersionRAS Resolves bug-report http://bugs.openfoam.org/view.php?id=2153
-
- Jul 22, 2016
-
-
Henry Weller authored
Resolves bug-report http://bugs.openfoam.org/view.php?id=2153
-
Henry Weller authored
Resolves bug-report http://bugs.openfoam.org/view.php?id=2153
-
- Apr 30, 2016
-
-
Henry Weller authored
GeometricField: Renamed internalField() -> primitiveField() and dimensionedInternalField() -> internalField() These new names are more consistent and logical because: primitiveField(): primitiveFieldRef(): Provides low-level access to the Field<Type> (primitive field) without dimension or mesh-consistency checking. This should only be used in the low-level functions where dimensional consistency is ensured by careful programming and computational efficiency is paramount. internalField(): internalFieldRef(): Provides access to the DimensionedField<Type, GeoMesh> of values on the internal mesh-type for which the GeometricField is defined and supports dimension and checking and mesh-consistency checking.
-
- Apr 25, 2016
-
-
Henry Weller authored
-
- Apr 17, 2016
-
-
Henry Weller authored
Patch provided by Bruno Santos Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2036
-
Henry Weller authored
See also http://www.openfoam.org/mantisbt/view.php?id=2036
-
- Apr 16, 2016
-
-
Henry Weller authored
-
- Feb 29, 2016
-
-
Henry Weller authored
-
- Feb 26, 2016
-
-
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
-
- Feb 22, 2016
-
-
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
-
- Jan 11, 2016
-
-
Henry Weller authored
-
Henry Weller authored
-
- Jan 10, 2016
-
-
Henry Weller authored
-
- Nov 11, 2015
-
-
Henry Weller authored
Avoids the clutter and maintenance effort associated with providing the function signature string.
-
- Apr 30, 2015
-
-
Henry authored
-
Henry authored
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1679
-
- Apr 20, 2015
-
-
Henry authored
Provided by Timo Niemi Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1650
-
- Apr 18, 2015
-
-
Henry authored
-
Henry authored
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1650
-