Commit Graph

69 Commits

Author SHA1 Message Date
6e573ad7e8 UList: Rationalize assignment (shallow-copy vs deep-copy)
//- 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>&);
2016-04-03 10:26:05 +01:00
402915798d fvPatchFields: Use 'Zero' rather than 'pTraits<Type>::zero' to initialize to 0
This new approach to 0 initialization is simpler, cleaner, more readable
and more efficient.  The rest of the OpenFOAM code will be updated in
due course.
2016-03-22 08:27:59 +00:00
95d146ecdf Rationalized the indentation of C-preprocessor directives 2016-02-29 15:42:03 +00:00
271935c1bf calculatedFvPatchField: 'value' entry is now required to avoid problems with non-initialization 2016-02-24 16:01:40 +00:00
99a10ecea6 Boundary conditions: Added extrapolatedCalculatedFvPatchField
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
2016-02-20 22:44:37 +00:00
be0008b39a fvPatchFields: Added "assignable()" attribute
which returns true if the fvPatchField type provides an assignment operator
2016-02-12 14:26:49 +00:00
9233361899 noSlip: New wall boundary condition for velocity
noSlip is equivalent to fixedValue with a value of (0 0 0) but is
simpler to specify e.g.

     upperWall
     {
         type            noSlip;
     }
2016-02-09 18:45:13 +00:00
56fa7c0906 Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
fb871828a5 fvPatchFields, fvsPatchFields, pointPatchFields: specifically declare namespace of functions
It is better to declare the namespace of each function in the C file
rather than "open" the namespace as this may lead to inconsistencies
between the declaration in the H files and definition in the C file.
2015-12-08 22:29:05 +00:00
735ce9cce7 src/finiteVolume: Update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the
function signature string.
2015-11-10 16:55:03 +00:00
42fb1b9e8e Updated notImplemented -> NotImplemented
The new NotImplemented macro uses __PRETTY_FUNCTION__ for GNU compatible
compilers otherwise __func__ to provide the function name string.
2015-11-01 10:26:37 +00:00
fbb330414b transformFvPatchField: Specialize valueInternalCoeffs for scalar
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1820
2015-08-10 12:06:13 +01:00
251526e024 Removed trailing whitespace
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1805
2015-08-01 15:43:05 +01:00
f4596ad247 Resolve issues relating to compilation with clang-3.5.0 2014-12-15 22:38:10 +00:00
a87debefec ENH: base fv fields - check that internal field != null when mapping 2014-02-03 12:36:04 +00:00
3f5eda25f0 symmetryPlane: add symmetryPlane as a special type of symmetry condition applied to a single plane
The standard/previous general symmetry type is now named symmetry
    both in class and lookup name for consistency.  The rigorous
    symmetryPlane type is needed for moving-mesh cases in which the
    motion it constrained by one or two planes.
2013-12-06 15:45:11 +00:00
a3b52a5f74 ENH: basic fvPatchFields: added mapping warning 2013-09-12 16:02:02 +01:00
beac4764af fvPatchFields: Completed handling of deltaCoeffs in snGrad for coupled patches 2013-03-14 12:26:07 +00:00
0efbdb512e Merge branch 'master' of ssh://opencfd:8007/home/dm4/OpenFOAM/OpenFOAM-dev 2013-03-13 10:40:43 +00:00
6487f88614 snGrad: Use nonOrthDeltaCoeffs on coupled patches 2013-03-13 10:40:33 +00:00
e4fc9807c3 STYLE: Updates to erroneous copyright dates 2013-03-13 09:32:03 +00:00
0c6a9870f0 ENH: Documentation update 2013-01-28 16:45:28 +00:00
a57efb5b19 ENH: Minor optimisation 2012-12-03 11:23:48 +00:00
a9226bb505 STYLE: basicSymmetry: updated date 2012-10-04 14:24:27 +01:00
e601911fa0 BUG: basicSymmetry: added to runtime selection tables 2012-10-04 14:22:58 +01:00
3a59106af5 STYLE: Minor code formatting 2012-08-03 12:41:00 +01:00
a3870d65df GIT: Merge/resolve conflict 2012-08-03 12:28:20 +01:00
d9912c2003 ENH: Doxygen docs - using Note instead of \note 2012-08-03 11:43:28 +01:00
1b337c84bf Updated headers 2012-07-30 12:30:09 +01:00
e3b5df7224 Added support for interpolating from volField::GeometricBoundaryField to surfaceField::GeometricBoundaryField 2012-07-30 12:29:53 +01:00
e6a41726e2 ENH: Updates to BC documentation 2012-07-19 17:16:03 +01:00
30619cbf58 STYLE: Refactored doxygen tags 2012-07-19 16:09:31 +01:00
a80d4d9b69 ENH: doxygen documentation updates 2012-07-12 17:12:52 +01:00
c448ba6505 STYLE: change of doxygen tag boundaryConditions->grpBoundaryConditions 2012-07-12 09:58:05 +01:00
04f044c14c ENH: Boundary condition doxygen documentation updates 2012-07-10 17:09:42 +01:00
36b4616931 ENH: Boundary condition doxygen documentation updates 2012-07-06 17:38:54 +01:00
5b364fae9b ENH: Boundary condition doxygen documentation updates 2012-07-06 14:48:30 +01:00
6288924500 ENH: Boundary condition doxygen documentation updates 2012-07-05 18:01:20 +01:00
13c6fed85b STYLE: minor code formatting 2012-07-05 17:29:20 +01:00
fd658a4a47 ENH: took code out of Foam namespace and apply Foam:: prefix instead 2012-07-05 16:51:53 +01:00
a83647f6fd ENH: Boundary condition doxygen documentation updates 2012-07-05 16:50:30 +01:00
87dc042618 LduMatrix: Added support for AMI and jump conditions 2012-04-26 15:17:35 +01:00
28fad4681e Updated headers 2012-04-25 18:18:46 +01:00
8fb6aa8811 LduMatrix: Added support for non-parallel cyclic patches 2012-04-25 18:18:31 +01:00
2c9d42c9b0 Updated headers 2012-04-23 15:36:58 +01:00
8a41c1538c lduInterfaceField: Simplified arguments to initInterfaceMatrix and updateInterfaceMatrix 2012-04-23 15:36:33 +01:00
2516d984b4 ENH: fvPatchField: support for polling. Support for zero-copy transfer. 2012-01-16 15:59:03 +00:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
eaef8d482b STYLE: Updated 1991 start copyright year to 2004 2011-01-14 16:08:00 +00:00
099cc39e2e Revert "STYLE: 2011 copyright date."
This reverts commit b18f6cc1ce.
2011-01-05 18:24:29 +00:00