Commit Graph

25666 Commits

Author SHA1 Message Date
Vaggelis Papoutsis
080567375f ENH: exposed wallFunctionCoefficients in nutWallFunction 2022-06-10 13:00:52 +00:00
Mark Olesen
6e1fca0e46 CONFIG: bump patch level 2022-06-10 12:25:10 +02:00
Mark Olesen
c6eab6aeba CONFIG: update paraview version to 5.10.1 (minor/bugfix release) 2022-06-09 18:16:08 +02:00
Mark Olesen
8efa44734a BUG: regression in handling of finiteArea processor boundaries (#2507)
- update the area-centres processor/processor information as part of
  faMesh::init() after all of the global data and geometry data is
  setup.

- improve flattenEdgeField helper to properly handle empty patches.
  This change removes the false fails when testing edge-centre
  redistribution (FULLDEBUG mode).

TUT: add filmPanel (rivulet) tutorial
2022-06-09 15:34:17 +02:00
Mark Olesen
7f748bd5fd ENH: CleanFunctions refinements
- include constant/faMesh cleanup (cleanFaMesh) as part of standard
  cleanCase

- simplify cleanPolyMesh function to now just warn about old
  constant/polyMesh/blockMeshDict but not try to remove anything

- cleanup cellDist.vtu (decomposePar -dry-run) as well

ENH: foamRunTutorials - fallback to Allrun-parallel, Allrun-serial

TUT: call m4 with file argument instead of redirected stdin

TUT: adjust suffixes on decomposeParDict variants
2022-06-09 15:34:17 +02:00
mattijs
d878ca3248 ENH: snappyHexMesh: early exit of leak detection. See #2403
Reverted edfault behaviour
2022-06-09 14:24:12 +01:00
mattijs
098e195245 BUG: cyclicACMI: lagrangian+ACMI. Fixes #2504. 2022-06-09 14:03:08 +01:00
Andrew Heather
7b5cfbd1b0 COMP: Gcc 11+ potential fix - see #2434 2022-06-09 12:58:22 +02:00
mattijs
d2d976bda8 BUG: (un)refinement: combine topochange+motion. Fixes #2492
Explicitly unset the mesh.moving flag whilst doing the topo change.
2022-06-09 11:34:32 +01:00
mattijs
c5cede38aa ENH: snappyHexMesh: early exit of leak detection. See #2403
Changed behaviour to make it the default
2022-06-09 11:34:32 +01:00
Andrew Heather
4f0166397e Merge branch 'feature-forces-forcecoeffs' into 'develop'
ENH: binField: new function object for data binning

See merge request Development/openfoam!433
2022-06-09 09:33:21 +00:00
Kutalmis Bercin
be8cf2ad5c TUT: binField: changes for binData 2022-06-09 09:32:53 +00:00
Andrew Heather
de5f75eb13 COMP: Updated dependent code following changes to forces/forceCoeffs FOs 2022-06-09 09:32:53 +00:00
Andrew Heather
6a4f7c9c68 ENH: forces/forceCoeffs: refactor function objects
- enables runtime selection of operand coefficients by 'coefficients' entry
- removes binning - now handled using the new 'binField' FO

Co-authored-by: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
2022-06-09 09:32:53 +00:00
Andrew Heather
78c984f8f4 ENH: binField: new field function object
The new 'binField' function object calculates binned data,
where specified patches are divided into segments according to
various input bin characteristics, so that spatially-localised
information can be output for each segment.

Co-authored-by: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
2022-06-09 09:32:53 +00:00
Kutalmis Bercin
a7d01a7d43 ENH: writeFile: add writeValue function 2022-06-09 09:32:53 +00:00
sergio
726ce59b66 BUG: Checking range of Tmin and Tmax. Fixes #2506 2022-06-08 18:37:16 -07:00
mattijs
37bb5b684d ENH: reconstructPar: showcase reconstructing synthesised particles 2022-06-08 17:07:04 +01:00
Mark Olesen
9a75ce8434 ENH: support coordinateSystem/transform for sampled planes
- previously only defined for cell-cutting version, now for
  iso-surface version too

TUT: remove old transform/coordinateSystem syntax
2022-06-08 16:43:05 +02:00
Mark Olesen
fbaadf3a94 ENH: make 'planeType' optional for dictionary construct of a plane
- simpler to write for sampled cutting planes etc.
  For example,

      slice
      {
          type        cuttingPlane;
          point       (0 0 0);
          normal      (0 0 1);
          interpolate true;
      }

  instead of

      slice
      {
          type        cuttingPlane;
          planeType   pointAndNormal;
          pointAndNormalDict
          {
              point   (0 0 0);
              normal  (0 0 1);
          }
          interpolate true;
      }

STYLE: add noexcept to some plane methods
2022-06-08 16:43:05 +02:00
mattijs
da157dca47 GIT: snappyHexMesh: extraneous merge removal 2022-06-08 15:39:31 +01:00
Andrew Heather
75133c5973 Merge branch 'feature-dmd-multi-patch-extension' into 'develop'
ENH: DMD: add multi-patch input functionality

See merge request Development/openfoam!547
2022-06-08 13:23:08 +00:00
Kutalmis Bercin
f12399c39b ENH: DMD: add multi-patch input functionality 2022-06-08 13:22:42 +00:00
Kutalmis Bercin
d2e2533546 STYLE: DMD: simplify various parts of the class 2022-06-08 13:22:42 +00:00
Kutalmis Bercin
e3d8b36c63 ENH: DMDModel: move nComponents function to an upper level 2022-06-08 13:22:42 +00:00
Kutalmis Bercin
44ba2d868d ENH: DMD: apply various optimisations 2022-06-08 13:22:42 +00:00
Mattijs Janssens
cf3c4f26ce Merge branch 'feature-anisotropic-solid-material-conductivity' into 'develop'
ENH: new tabulated anisotropic solid transport model

See merge request Development/openfoam!546
2022-06-08 12:59:50 +00:00
Kutalmis Bercin
408e6b55e9 TUT: simplify setups.orig cases
DOC: Curle: fix typo in header file (fixes #2498)

TUT: airfoil2D: apply standard freestream conditions for nuTilda and nut
2022-06-08 13:53:01 +01:00
Kutalmis Bercin
9cf6ac4145 ENH: new tabulated anisotropic solid transport model 2022-06-08 12:26:17 +01:00
Kutalmis Bercin
c54ea62aa4 ENH: InterfaceCompositionModels: add tabulated (fluid) - icoTabulated (solid) options 2022-06-08 12:26:17 +01:00
Kutalmis Bercin
853f2fcaf3 ENH: solidThermos: add icoTabulated-solidThermo option 2022-06-08 12:26:17 +01:00
Andrew Heather
05ca60cf45 Merge branch 'feature-elliptic-blending-reynolds-stress-model' into 'develop'
ENH: EBRSM: new elliptic-blending Reynolds-stress turbulence model

See merge request Development/openfoam!544
2022-06-08 10:41:00 +00:00
Kutalmis Bercin
7c59abef60 TUT: planeChannel: new verification case for RANS turbulence models 2022-06-08 10:06:20 +01:00
Kutalmis Bercin
c1311bc785 ENH: EBRSM: new elliptic-blending Reynolds-stress turbulence model 2022-06-08 08:52:33 +01:00
Andrew Heather
86178cfd24 Merge branch 'feature-synthetic-turbulence-methods' into 'develop'
ENH: turbulentDigitalFilter: Synthetic fluctuations of scalars

See merge request Development/openfoam!532
2022-06-07 20:12:34 +00:00
Kutalmis Bercin
ec96010ffb TUT: oneCellThickPlaneChannel/planeChannel: update the tutorial 2022-06-07 20:12:03 +00:00
Kutalmis Bercin
745fc42dee ENH: turbulentDFSEMInlet: improve Reynolds-stress realizability checks
ENH: turbulentDFSEMInlet: new realizability checking function for scalar fields
2022-06-07 20:12:03 +00:00
Kutalmis Bercin
29acac9f97 ENH: turbulentDigitalFilter: refactor the boundary condition
- Previous state of the condition was largely inoperative
due to bugs and lack of functionalities
- New state of the condition is more versatile, elegant, robust and faster

ENH: turbulentDigitalFilter: add new scalar-based synthetic turbulence condition

- Realistic temperature and/or concentration fluctuations
can be generated based on given input statistics
2022-06-07 20:12:03 +00:00
Mark Olesen
7184de50df ENH: simplify coordinate rotation specification (#2505)
- can specify rotations that are not "axes" in a compact form:

      transform
      {
          origin  (0 0 0);
          rotation none;
      }

      transform
      {
          origin  (0 0 0);
          rotation axisAngle;
          axis    (0 0 1);
          angle   45;
      }

   An expanded dictionary form also remains possible:

      transform
      {
          origin  (0 0 0);
          rotation
          {
              type  axisAngle;
              axis  (0 0 1);
              angle 45;
          }
      }

STYLE: verbose deprecation for "coordinateRotation" keyword

- the "coordinateRotation" keyword was replaced by the "rotation"
  keyword (OpenFOAM-v1812 and later) but was handled silently.
  Now elevated to non-silent.

STYLE: alias lookups "axesRotation", "EulerRotation", "STARCDRotation"

- these warn and report the equivalent short form, which aids in
  upgrading. Previously had silent lookups.
2022-06-07 17:25:30 +02:00
Mark Olesen
460b29b8c7 STYLE: missing quote when reporting selection table aliases 2022-06-07 15:01:40 +02:00
Mark Olesen
cc47a37ed1 ENH: add external surface handling to meshedSurfRef (#2505)
- previously just handled surface components
- move/scale mesh points (copy)

STYLE: pass in dummy faces/points to writer

STYLE: use tensor is_identity()
2022-06-03 17:26:38 +02:00
Mark Olesen
264c09c365 Merge remote-tracking branch 'origin/master' into develop 2022-06-03 14:11:00 +02:00
Mark Olesen
68599d552d ENH: minor code cleanup for SHA1 calculation
- append single character
- make append() methods void: methods are never chained anyhow
- refactor digest comparison (code reduction)

COMP: add overflow handling for OSHA1stream
2022-06-03 11:18:08 +02:00
Mark Olesen
40cadfd2f2 COMP: references to temporaries
COMP: include <limits>
2022-06-03 10:04:38 +02:00
Mark Olesen
91198eaf6a COMP: gcc-12 buffer check bypasses xsputn (#2481, #2496)
- add overflow() method to the SHA1 streambuf. Previously could rely
  on xsputn for adding to sha1 content, but streams now check pptr()
  first to test for the buffering range and thus overflow() is needed.
2022-06-03 10:04:35 +02:00
Mark Olesen
2c77514417 CONFIG: support wmake -debug-O0, -debug-O1 etc.
- rearranged order of flags so that FOAM_EXTRA_CXXFLAGS is added
  after the WARN/OPT/DBUG flags

CONFIG: drop wmake rules for PGI compiler (defunct)
2022-06-02 22:37:00 +02:00
Mark Olesen
a465e4db85 ENH: support Euler rotation rollPitchYaw/yawPitchRoll ordering
- can be more intuitive to specify for some cases:

      rotation
      {
          type    euler;
          order   rollPitchYaw;
          angles  (0 20 45);
      }

- refactor starcd rotation to reuse Euler ZXY ordering
  (code reduction)

ENH: add -rotate-x, -rotate-y, -rotate-z for transformPoints etc

- easier to specify for simple rotations
2022-06-02 16:47:40 +02:00
Mark Olesen
eba7a485ba ENH: quaternion ROLL_PITCH_YAW and YAW_PITCH_ROLL aliases/lookups
COMP: define labelSphericalTensor::I

- remove spurious 'labelI' global constant (labelSphericalTensor::I)

STYLE: replace use of deprecated Tensor vectorComponent

STYLE: avoid bit-wise assignment of bool (VectorSpace compare ops)
2022-06-02 11:14:10 +02:00
Mark Olesen
8b63b8cdfe ENH: add hashedWordList find, appendUniq methods
- aligns calling signatures with wordList, for possible future
  replacement

- drop construct from const char** (can use initializer_list instead)

ENH: replace hashedWordList with plain wordList in triSurfaceLoader

- additional hashing optimisation (and overhead) is not worth it for
  the comparatively small lists of surfaces used.
2022-06-02 11:14:10 +02:00
mattijs
49d0e82842 ENH: patchSeed: fix debug message 2022-06-02 09:21:37 +01:00