- May 06, 2016
-
-
Henry Weller authored
-
Henry Weller authored
to avoid problems when writing "nComponents"
-
Henry Weller authored
-
- May 04, 2016
-
-
Henry Weller authored
-
Henry Weller authored
-
- May 02, 2016
-
-
Henry Weller authored
-
Henry Weller authored
functionObjects: Moved into the functionObjects namespace and rationalized and simplified failable construction Rather than requiring each functionObject to handle failed construction internally (using the active_ flag) the static member function "viable" is provided which returns true if construction of the functionObject is likely to be successful. Failed construction is then handled by the wrapper-class which constructs the functionObject, e.g. "OutputFilterFunctionObject".
-
- Apr 30, 2016
-
-
Henry Weller authored
-
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.
-
Henry Weller authored
In order to simplify expressions involving dimensioned internal field it is preferable to use a simpler access convention. Given that GeometricField is derived from DimensionedField it is simply a matter of de-referencing this underlying type unlike the boundary field which is peripheral information. For consistency with the new convention in "tmp" "dimensionedInteralFieldRef()" has been renamed "ref()".
-
Henry Weller authored
Non-const access to the internal field now obtained from a specifically named access function consistent with the new names for non-canst access to the boundary field boundaryFieldRef() and dimensioned internal field dimensionedInternalFieldRef(). See also commit 22f4ad32
-
Henry Weller authored
functionObjectFile provides basic directory, file and formatting functions functionObjectFiles provides multi-file cache
-
- Apr 28, 2016
-
-
Henry Weller authored
-
Henry Weller authored
When the GeometricBoundaryField template class was originally written it was a separate class in the Foam namespace rather than a sub-class of GeometricField as it is now. Without loss of clarity and simplifying code which access the boundary field of GeometricFields it is better that GeometricBoundaryField be renamed Boundary for consistency with the new naming convention for the type of the dimensioned internal field: Internal, see commit 4a57b9be This is a very simple text substitution change which can be applied to any code which compiles with the OpenFOAM-dev libraries.
-
- Apr 27, 2016
-
-
Henry Weller authored
Given that the type of the dimensioned internal field is encapsulated in the GeometricField class the name need not include "Field"; the type name is "Internal" so volScalarField::DimensionedInternalField -> volScalarField::Internal In addition to the ".dimensionedInternalField()" access function the simpler "()" de-reference operator is also provided to greatly simplify FV equation source term expressions which need not evaluate boundary conditions. To demonstrate this kEpsilon.C has been updated to use dimensioned internal field expressions in the k and epsilon equation source terms.
-
- Apr 26, 2016
-
-
Henry Weller authored
-
Henry Weller authored
This reverts commit 3cfc54ba.
-
Henry Weller authored
-
Henry Weller authored
See also commit 22f4ad32
-
- Apr 25, 2016
-
-
Henry Weller authored
-
Henry Weller authored
-
- Apr 24, 2016
-
-
Henry Weller authored
-
- Apr 22, 2016
-
-
Henry Weller authored
-
- Apr 21, 2016
-
-
Henry Weller authored
-
Henry Weller authored
-
Henry Weller authored
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2059
-
- Apr 16, 2016
-
-
Henry Weller authored
-
- Apr 04, 2016
-
-
Henry Weller authored
-
Henry Weller authored
-
Henry Weller authored
Patch contributed by Bruno Santos Resolved bug-report http://www.openfoam.org/mantisbt/view.php?id=2042
-
- Apr 03, 2016
-
-
Henry Weller authored
//- Disallow default shallow-copy assignment // // Assignment of UList<T> may need to be either shallow (copy pointer) // or deep (copy elements) depending on context or the particular type // of list derived from UList and it is confusing and prone to error // for the default assignment to be either. The solution is to // disallow default assignment and provide separate 'shallowCopy' and // 'deepCopy' member functions. void operator=(const UList<T>&) = delete; //- Copy the pointer held by the given UList. inline void shallowCopy(const UList<T>&); //- Copy elements of the given UList. void deepCopy(const UList<T>&);
-
- Apr 02, 2016
-
-
Henry Weller authored
Contributed by Mattijs Janssens. 1. Any non-blocking data exchange needs to know in advance the sizes to receive so it can size the buffer. For "halo" exchanges this is not a problem since the sizes are known in advance but or all other data exchanges these sizes need to be exchanged in advance. This was previously done by having all processors send the sizes of data to send to the master and send it back such that all processors - had the same information - all could work out who was sending what to where and hence what needed to be received. This is now changed such that we only send the size to the destination processor (instead of to all as previously). This means that - the list of sizes to send is now of size nProcs v.s. nProcs*nProcs before - we cut out the route to the master and back by using a native MPI call It causes a small change to the API of exchange and PstreamBuffers - they now return the sizes of the local buffers only (a labelList) and not the sizes of the buffers on all processors (labelListList) 2. Reversing the order of the way in which the sending is done when scattering information from the master processor to the other processors. This is done in a tree like fashion. Each processor has a set of processors to receive from/ send to. When receiving it will first receive from the processors with the least amount of sub-processors (i.e. the ones which return first). When sending it needs to do the opposite: start sending to the processor with the most amount of sub-tree since this is the critical path.
-
- Mar 22, 2016
-
-
Henry Weller authored
-
Henry Weller authored
-
Henry Weller authored
This avoids the need to check that the m and n dimensions are the same.
-
Henry Weller authored
Patch contributed by Bruno Santos: - "etc/config.sh/CGAL": - Indented the contents of the recently added if block. - Added comment about using system versions. - Library paths are now only added if the respective version is not "boost-system" and "cgal-system". - "src/renumber/Allwmake": It now relies on the previous file to get the version for Boost (the same way as in "makeCGAL"). This is so that it will also build "SloanRenumber" if "boost_version" is set to "boost-system". - "applications/utilities/mesh/generation/Allwmake": It now also relies on the script "config.sh/CGAL" to get the version for CGAL. If "cgal_version" is set to "cgal-system", it will now also build "foamy*Mesh" utilities and respective libraries. Resolves report http://www.openfoam.org/mantisbt/view.php?id=1232
-
- Mar 20, 2016
-
-
Henry Weller authored
This change brings OpenFOAM into line with the standard matrix addressing in other C++ libraries for better interoperability.
-
- Mar 14, 2016
-
-
Henry Weller authored
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2024
-
Henry Weller authored
Contributed by Bruno Santos Resolves patch report http://www.openfoam.org/mantisbt/view.php?id=2023 Update online documentation http://openfoam.github.io/Documentation-dev/html/
-
- Mar 06, 2016
-
-
Henry Weller authored
Patch provided by Bruno Santos Resolves patch application request http://www.openfoam.org/mantisbt/view.php?id=2015
-