Commit Graph

22478 Commits

Author SHA1 Message Date
ee1a108d07 Merge branch 'feature-pstream-initialize' into 'develop'
better cooperation with external MPI initialize / finalize

See merge request Development/OpenFOAM-plus!252
2019-04-10 14:42:11 +01:00
f0f012813c ENH: make gravity mesh object unmovable and properly registered (#1276)
- change from UpdateableMeshObject to TopologicalMeshObject

- change inheritance order to have MeshObject be registered first
  and mark the IOobject descriptor as unregistered
2019-04-10 12:54:32 +02:00
88e891cfb1 ENH: force clearing of Time objectRegistry on destruction (#1276)
- the objectRegistry destructor seems to be called too late.
  Explicitly clear the objectRegistry within the Time destructor to
  ensure that it always happens.
2019-04-10 11:30:31 +02:00
335dfa14a5 ENH: cellVolumeWeight: removed printing. 2019-04-10 11:05:25 +01:00
8ad102dbaa BUG: snappyHexMesh: attraction distance mapping. Fixes #941. 2019-04-10 10:34:50 +01:00
38f265bb75 Revert "BUG: snappyHexMesh: attraction distance mapping. Fixes #941."
This reverts commit 708e650990.
2019-04-10 10:32:18 +01:00
fbb0462fac GIT: restore submodule indices accidentally changed by 708e650990 2019-04-09 09:08:54 +02:00
6300cd4eee ENH: add PDRblock::null() member - reference to NullObject 2019-04-09 09:05:38 +02:00
cd0976cedf BUG: ensight writer using incorrect first mesh time (fixes #1273)
- used fallback of 0 instead of the results time.
  This discrepancy caused the case file to have two timesets that
  only differed by the first (incorrect) entry.
2019-04-08 16:58:47 +02:00
708e650990 BUG: snappyHexMesh: attraction distance mapping. Fixes #941. 2019-04-08 13:19:41 +01:00
202fa41c55 STYLE: drop use of objToVTK conversion in viewFactors 2019-04-08 12:20:56 +02:00
2203a19af3 Merge remote-tracking branch 'origin/master' into develop 2019-04-08 12:05:24 +02:00
8ab09daad0 BUG: foamToVTK writes to undecomposed case (closes #1271)
- when running in serial but within a processor directory,
  argList::globalPath() is to be used instead of Time.globalPath()
  For other cases there is no difference.
2019-04-08 11:53:50 +02:00
444ade9613 COMP: class/struct consistency between forward declaration and definition
- silence clang warnings
2019-04-06 16:15:29 +02:00
3f0f218d88 ENH: support HashTable iterator pointer dereference 2019-04-06 16:00:21 +02:00
c225f43791 ENH: new sliceRange class
- this is somewhat like labelRange, but with a stride.
  Can be used to define slices (of lists, fields, ..) or as a range specifier
  for a for-loop. For example,

      for (label i : sliceRange(0, 10, 3))
      {
          ...
      }
2019-04-06 15:07:53 +02:00
a927487b5b ENH: added labelRange += and -= operators
- removed unused decrement() and increment() methods, which provided
  identical functionality as the ++, +=, --, -= operators.
2019-04-06 15:07:53 +02:00
664da2773b ENH: Correcting order of the compressibleContErr.H in comp solvers.
Adding pMin,Pmax pressure control to buoyantPimple and
chtMultiReagion
2019-04-05 14:15:17 -07:00
85f48df630 ENH: adding total isentropic pressure option 2019-04-05 09:43:28 -07:00
3e4b3701f6 Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop 2019-04-05 09:23:04 -07:00
34bf0e75ab ENH: Reducing tolerance used in the search for cellVolumeWeight 2019-04-05 09:21:05 -07:00
840d43537c ENH: Bounding htc for qDot close to zero 2019-04-05 09:20:09 -07:00
fffa0d868a ENH: provide 'sanitized' values for wmake -show compiler information (#1256)
- with the wmake rules we may have some compiler options bound to the
  internal compiler variable. For example,

     CC  = g++ -std=c++11 -m64

     c++FLAGS = ...

  So shift any flags from CC to CXXFLAGS for the output of
  'wmake -show-cxx', 'wmake -show-cxxflags', etc.

  This makes it much easier to handle the values correctly elsewhere.
  Eg,

      CXX="$(wmake -show-cxx)" CXXFLAGS="$(wmake -show-cxxflags)" \
         ./configure
2019-04-05 15:30:30 +02:00
0e6a160639 ENH: improve handling of pt-scotch headers/libraries
- provide dedicated detection 'have_ptscotch' function that can be
  used after the 'have_scotch' function.

  It sets the PTSCOTCH_ARCH_PATH, PTSCOTCH_INC_DIR, PTSCOTCH_LIB_DIR
  and helps when the serial and parallel versions are located with
  different logic.
2019-04-05 13:10:53 +02:00
70a32fa21b BUG: surfaceWriter::expire() should not affect the expected nFields() count
- the writer nFields() is a separate type of accounting (currently
  only needed by VTK legacy) and is independent of the geometry.
2019-04-05 12:03:41 +02:00
a2bd63869d CONFIG: incorrect location for site appbin, libbin (fixes #1270)
- still had old WM_PROJECT_VERSION settings instead of FOAM_API
  for FOAM_SITE_APPBIN and FOAM_SITE_LIBBIN locations.
2019-04-03 23:55:49 +02:00
8aa454a16a ENH: Updating overRhoSimpleFoam and overSimpleFoam to use
oversetInterpolationSuppressed dict.
2019-04-03 12:55:33 -07:00
93603bd270 ENH: wrap internal POSIX directory reading as an iterator class 2019-04-03 17:34:56 +02:00
273da720cd CONFIG: bump patch level 2019-04-03 16:44:32 +02:00
ce938d1232 STYLE: reduce indentation in mkDir, minor logic simplication 2019-04-02 16:56:00 +02:00
e686c27455 ENH: consistent and less ambiguous naming for fileStat 2019-04-02 15:46:44 +02:00
bdbbca35a6 ENH: improve code isolation for signal-handling
- file-local static for saving the old action, which moves system
  dependencies out of the header files.

- set/reset of signals as file-local functions

STYLE: use csignal header instead of signal.h
2019-04-02 11:38:09 +02:00
d25cb1dd70 ENH: open standard file streams with ios_base::binary
- this improves overall consistency and is independent of higher level
  tagging as ASCII or BINARY for IFstream, OFstream etc.
2019-04-02 22:05:13 +02:00
e13b1b11f6 ENH: add pTraits<complex> (#1247) 2019-04-04 19:00:29 +02:00
9a5a2cf7ba STYLE: use constexpr for pTraits rank 2019-04-04 17:40:06 +02:00
df35ba4643 ENH: add iterators to VectorSpace (#1265)
- this adds support for various STL operations including

    * sorting, filling, find min/max element etc.
    * for-range iteration

STYLE: use constexpr for VectorSpace rank
2019-04-04 17:14:27 +02:00
fa8558a403 STYLE: use std:: qualifier on ::abort, ::exit
- consistent with use of <cstdlib> and makes for a stronger distinct
  from Foam::abort etc.
2019-04-03 20:24:30 +02:00
542ef16628 STYLE: make some OSspecific constructors explicit 2019-04-02 15:36:16 +02:00
5468d96c82 ENH: emit "constant" for uniform constant field (#1269)
- this improves overall consistency and makes re-reading as a generic
  patch field behave properly when the underlying patch has zero size.
2019-04-04 16:23:41 +02:00
019f7014de STYLE: simplify if nesting in generic patch fields (#1269)
- use git show/diff -w when viewing
2019-04-04 12:41:09 +02:00
8cf3891f89 STYLE: adjusted wording and messages for wmake
- add an additional test for wmake pre-processing
2019-04-03 08:57:01 +02:00
02e26b3aed ENH: add fileName::concat static method
- similar to the global '/' operator, but taking raw strings and not
  performing any stripping.

  Was previously a local function within POSIX.C, but it is useful enough
  to be in fileName itself.
2019-04-05 09:42:25 +02:00
ef820ad9fa ENH: support external MPI initialize / finalize (#1266) 2019-04-01 18:44:23 +02:00
9e4e462936 Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop 2019-04-01 08:30:41 -07:00
25b37ae30d ENH: Adding new Gaussian power profile for laser 2019-04-01 08:29:56 -07:00
e2de66f18e ENH: allow space char in fileName is now configurable (#1008)
- having whitespace in fileName can be somewhat fragile since it means
  that the fileName components do not necessarily correspond to a
  'Foam::word'. But in many cases it will work provided that spaces
  are not present in the final portion of the simulation directory
  itself.

    InfoSwitches
    {
        // Allow space character in fileName (use with caution)
        allowSpaceInFileName    0;
    }

- now use doClean=true as default for fileName::validate(). Was false.

  Unlike fileName::clean() this requires no internal string rewrite
  since the characters are being copied.  Also handle any path
  separator transformations (ie, backslash => forward slash) at the
  same time. This makes it resemble the std::filesystem a bit more.
2019-04-01 16:40:22 +02:00
40d31aa1d6 STYLE: gravity: whitespace 2019-04-04 14:52:04 +01:00
dc689e625d BUG: uniformFixedValue: fix tutorials. See #1046. 2019-04-04 09:24:42 +01:00
b4e3f8c8af ENH: renumberMesh: renumber refinement data. Fixes #1241. 2019-04-01 09:48:23 +01:00
ac065990d4 ENH: support wmake -show options for compiler information (#1256)
- can be useful for retrieving the compilation flags for use with other
  make systems (eg, cmake)

  * wmake -show-compile   (C++ not C)
  * wmake -show-cxx
  * wmake -show-cxxflags
2019-04-01 09:03:48 +02:00