Commit Graph

22882 Commits

Author SHA1 Message Date
6c4764dfa6 CONFIG: add sourcing hints for adios2, petsc 2019-08-02 12:17:39 +02:00
db9fc1481c ENH: support search options on more dictionary methods
- can now specify literal matches for sub-dictionary methods:

    isDict(key, keyType::REGEX)
    optionalSubDict(key, keyType::REGEX)
    subDict(key, keyType::REGEX)
    subOrEmptyDict(key, keyType::REGEX, mandatory)

There is no change in behaviour of the methods, just the search option
is now exposed as an optional parameter.

NOTE: minor breaking change for subOrEmptyDict()

  old: subOrEmptyDict(key, bool=false)
  new: subOrEmptyDict(key, keyType::option=keyType::REGEX, bool=false)

  This affects code that previously explicitly set the bool parameter.
  Within OpenFOAM itself, this only affected a single file:

      KinematicCloud.C
2019-08-01 17:58:07 +02:00
bfd16ef3cb ENH: make OSstream indentation adjustable
- this is principally for cases where reduced indentation is desired,
  such as when streaming to a memory location. If the indentation size
  is zero or one, only a single space will be used to separate the
  key/value.

  This change does not affect the stream allocation size, since the
  extra data falls within the padding.

ENH: relocate label/scalar sizes from Istream to IOstream.

- could allow future use for output streams as well?

  Due to padding, reorganization has no effect on allocated size
  of output streams.

STYLE: add read/write name qualifier to beginRaw, endRaw

- removes ambiguity for bi-directional streams

STYLE: fix inconsistent 'const' qualifier on std::streamsize

- base Ostream was without const, some derived streams with const
2019-07-31 12:51:54 +02:00
383ee2e18d ENH: add OListStream::swap(DynamicList<char>&)
- allows full recovery of allocated space, not just addressable range.

  This can be particularly useful for code patterns that repeatedly
  reuse the same buffer space. For example,

      DynamicList<char> buf(1024);

      // some loop
      {
          OListStream os(std::move(buf));
          os << ...

          os.swap(buf);
      }

   Can read back from this buffer as a second operation:

      {
          UIListStream is(buf);
          is >> ...
      }
2019-07-31 11:31:40 +02:00
9de341f1e8 STYLE: use 'operator>>' instead of readLabel and readScalar 2019-07-30 14:52:46 +02:00
ae75149e50 STYLE: consistent access for particle sizeofFields, particle iterators 2019-07-30 14:22:56 +02:00
1ae8640e36 DEFEATURE: remove particle PropertyTypes (revert of #109)
- data types were used for initial adios interface, but this proved
  difficult to manage and maintain.
2019-07-30 11:47:46 +02:00
8a3a6a195d ENH: Updated particle relocate 2019-08-02 10:07:11 +01:00
574a92779e ENH: Updated particle relocate 2019-08-02 10:05:54 +01:00
7568839dae STYLE: fix namespace documentation for CGAL-related content 2019-07-30 18:15:48 +02:00
f4873d86f6 CONFIG: harmonize adios1, adios2 config files. Add to setup. 2019-07-31 13:21:52 +02:00
66fd4c4eea ENH: improvements for handling update of build information
- When building OpenFOAM for different platform combinations
  (single/double, int32/int64) the build information that is compiled
  into the OpenFOAM lib can become out of sync.

  This is because the update trigger (wmakeBuildInfo -check) is
  independent of the targetted platform. The added file
  'src/OpenFOAM/Alltouch' provides a direct means of forcing a rebuild
  of the version information. Eg,

      src/OpenFOAM/Alltouch
      wmake src/OpenFOAM

  Also provide an additional 'wmakeBuildInfo -remove' to forcibly
  remove META-INFO/build-info, if that is desired.
2019-07-30 09:54:02 +02:00
38f47a721f TUT: binary output for windAroundBuildings 2019-07-30 11:42:00 +02:00
5d5b6b32fb TUT: New AMI tutorial case for pimpleFoam - rotatingFanInRoom 2019-08-01 08:29:45 +01:00
fc31f5c1e4 Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop 2019-07-30 08:52:01 -07:00
fbc2a9871d ENH: Small editing to alphatWallBoilingWallFunction 2019-07-30 08:51:06 -07:00
2524400c09 STYLE: inconsistent use of readBeginList()
- use readBegin() when the only delimiters are '()' and not '({})'
2019-07-29 11:22:57 +02:00
958dfd5078 ENH: support low-level reading of raw binary blocks (#1378)
- symmetric with writeRaw() etc for the output stream. These are
  methods that are not required by normal users, but which provide
  a finer granularity for reading.

- additional information about the current stream position when
  endList fails. This may help when tracing errors.

STYLE: change return type of beginRaw()/endRaw() to bool

- was of type Ostream& for output, but return value was unused.
  Having bool may be better for encapsulating logic

STYLE: remove unused Istream::readEndBegin() function
2019-07-29 10:52:30 +02:00
1db427434e Merge remote-tracking branch 'origin/master' into develop 2019-07-28 21:22:09 +02:00
a002be1a2e ENH: add field operations for complex (#1365) 2019-07-28 21:19:43 +02:00
52d516dbfc ENH: improve wmake handling of directory when given a source file 2019-07-28 21:09:11 +02:00
b0798bbcc9 COMP: make mass transfer rates mutable
- in InterfaceCompositionPhaseChangePhaseSystem, the mass transfer
  rates are updated as a side-effect of the massTransfer() method,
  which makes these fields non-const.
2019-07-26 15:10:38 +02:00
53b752f7a1 ENH: more stringent check before adding 'lib' prefix (OSspecific)
- only prefix 'lib' for names without a path

STYLE: add more OSspecific debug output for library loading
2019-07-26 14:50:00 +02:00
25f96e43c3 CONFIG: bump patch level 2019-07-24 09:52:18 +01:00
89d87571e7 TUT: remove trailing space
- use git show --ignore-space-change when examining
2019-07-24 09:52:18 +01:00
0d28c97a75 BUG: quaternion - corrected construction from rotation tensor. Fixes #1348 2019-07-24 09:37:38 +01:00
546fff1f59 BUG: adjointSolverManager - corrected indexing. Fixes #1381 2019-07-23 12:26:06 +01:00
a269c86ff4 BUG: EP:1070. Adding check for coupled patches in faceReflecting 2019-07-22 15:16:09 -07:00
75444fe18d BUG: EP:1070. Adding check for coupled patches in faceReflecting 2019-07-22 15:14:46 -07:00
664e483dae COMP: resolve Int64 ambiguity 2019-07-19 18:14:39 +02:00
76a6e5d65f ENH: improvements for isoSurfaceTopo erosion (#1374)
- adapted openfoam.org code.  Original commit message:

  Instead of adapting tet base points cell-by-cell, the dangling
  points are pre-computed and then the adaptations to the base points
  are made face-by-face. This correctly adapts faces which have
  different dangling points relative to the owner and neighbour cells.
2019-07-19 13:33:26 +02:00
603ddf985b ENH: support isoSurfaceTopo with cell subsets (#1374)
- treat the faces that would be exposed on a subset as boundary faces
  for the erosion algorithm

STYLE: adjust code for consistency between isoSurfaceCell and isoSurfaceTopo
2019-07-19 12:26:31 +02:00
d0ac414248 ENH: consistent handling of isoSurface regularise/filtering (#1374)
- previously only had "regularise" as a bool value, now support
  enumerations too
2019-07-19 11:00:57 +02:00
b4616d4a9d ENH: add global identity cartesian and cylindrical systems (#863) 2019-07-19 08:33:04 +02:00
f53b6e5b1c ENH: adjust displacementLayered framework
- add patch-point tracking to structured walk

- provision for cylindrical interpolation scheme

STYLE: more efficient use of bitSet
2019-07-18 15:54:55 +02:00
4587d3e98f COMP: remove constexpr from NullObject members 2019-07-18 10:39:05 +02:00
873ebbaff3 BUG: fix suspicious ordering in polyTopoChange::getCellOrder (#1376) 2019-07-18 10:28:40 +02:00
dd6e0729f0 ENH: imbue input streams with label/scalar sizes (#1378) 2019-07-18 10:22:12 +02:00
9b7179f351 ENH: add Barycentric2D outside() test 2019-07-18 09:59:58 +02:00
e55da7bb51 Merge branch 'feature-simplify-FatalError' into 'develop'
Feature simplify fatal error

See merge request Development/OpenFOAM-plus!270
2019-07-17 20:33:59 +01:00
d3b13bbf82 ENH: add single-parameter sortedOrder() function 2019-07-17 11:08:40 +02:00
26c7789706 STYLE: missing -postProcess option on basic solvers (#1375) 2019-07-16 12:09:00 +02:00
d2e85afa4a ENH: use FatalIOErrorInLookup instead of FatalErrorInLookup 2019-07-16 10:26:51 +02:00
61632c4b8f ENH: minor improvements to printTable(List<wordList>, ..)
- return Ostream&
- make header separation optional
2019-07-15 19:25:22 +02:00
e543220418 ENH: add no-op methods to Nullobject
- empty(), size(), toc(), sortedToc()
2019-07-15 19:25:22 +02:00
38d84ef036 STYLE: relocate bashrc,cshrc projectDir detection as (advanced / legacy)
- makes the standard config variables more visible
2019-07-15 10:58:55 +02:00
26f981aaf1 GIT: add forgotten file (commit 4ee65d12c4) 2019-07-15 08:36:05 +02:00
86a2111023 CONFIG: bump API to 1907 to register any changes in keywords 2019-07-14 19:25:30 +02:00
fef6cc1818 ENH: use FatalErrorInLookup macros (#1362) 2019-07-12 18:00:00 +02:00
0766a47685 BUG: distanceSurface has gaps in mesh (#1374)
- need to be more generous when prefiltering the cell selection
2019-07-12 16:38:04 +02:00