Bugs on OpenFOAM's bug tracker I wanted to tackle, but never managed to find the time for it - wyldckat/wyldckat.github.io GitHub Wiki

The following is a list of interesting bugs I wanted to try and have a look into them, but ended up not having time to look into them. I'm leaving them here as an aside wiki page, just in case someone else wants to pick them back up again.

Table of Contents

Mental Notes

Code snippets

BUGNUM=2285
PATCHNAME=patch_name_v1
foam
mkdir ~/Desktop/mantis/bug$BUGNUM
tar -czf ~/Desktop/mantis/bug$BUGNUM/$PATCHNAME.tar.gz $(git diff --name-only master)
cp $(git diff --name-only master) ~/Desktop/mantis/bug$BUGNUM/
git diff master > ~/Desktop/mantis/bug$BUGNUM/$PATCHNAME.patch

Bugs that need preliminary diagnosis

These will take some considerable time to do.

  1. https://develop.openfoam.com/Development/OpenFOAM-plus/issues/530
    • Similar report exists at openfoam.org
  2. http://bugs.openfoam.org/view.php?id=2157
  3. http://www.openfoam.org/mantisbt/view.php?id=1936
  4. http://www.openfoam.org/mantisbt/view.php?id=1885
  5. http://www.openfoam.org/mantisbt/view.php?id=741
    • AMI instabilities?
  6. http://www.openfoam.org/mantisbt/view.php?id=1847
  7. http://www.openfoam.org/mantisbt/view.php?id=1692
  8. http://www.openfoam.org/mantisbt/view.php?id=1400
  9. http://www.openfoam.org/mantisbt/view.php?id=1324
  10. http://www.openfoam.org/mantisbt/view.php?id=1026
  11. http://www.openfoam.org/mantisbt/view.php?id=725
  12. http://www.openfoam.org/mantisbt/view.php?id=1645
  13. http://www.openfoam.org/mantisbt/view.php?id=1682
  14. http://www.openfoam.org/mantisbt/view.php?id=897
  15. http://www.openfoam.org/mantisbt/view.php?id=1431
  16. http://www.cfd-online.com/Forums/openfoam-post-processing/156277-libsampling-dym-solver-exporting-vtk-patch-problem-update-geometry.html#post567310
    • Sampling problem that it's in some versions of OpenFOAM...

Feature requests

  1. http://www.openfoam.org/mantisbt/view.php?id=347
    • Actually, this is just needs some code clean up and making a pull request for the contribution request.
  2. http://www.openfoam.org/mantisbt/view.php?id=1428
  3. http://www.openfoam.org/mantisbt/view.php?id=1377
    • Same goes from some other applications that were reported as working to be able to do so, such as redistributeMesh?
  4. http://www.openfoam.org/mantisbt/view.php?id=1270
  5. http://www.openfoam.org/mantisbt/view.php?id=793
    • Adapt to PV4 the readers so that they can support OSMesa
  6. http://www.openfoam.org/mantisbt/view.php?id=777
    • Use "sampledSets" as a basis for creating a class that writes tabular data
  7. http://www.openfoam.org/mantisbt/view.php?id=1639
  8. http://www.openfoam.org/mantisbt/view.php?id=1569
  9. http://www.openfoam.org/mantisbt/view.php?id=1554
    • File driver?!
  10. http://www.openfoam.org/mantisbt/view.php?id=1677
  11. http://www.openfoam.org/mantisbt/view.php?id=1530
    
OK, I did a bit of looking into this and here's what I've seen so far:

1- The tutorial "multiphase/interDyMFoam/ras/floatingObject" can be used for testing this, since it has the field "pointDisplacement", which is critical for the proper operation of the simulation.
    Side note: Never forget that coding without unit tests is... well... not safe :)

    Steps:
      decomposePar

      #change core count

      redistributePar

2- There are a lot of mappings that need to be done in several places!!!
  1. http://www.cfd-online.com/Forums/openfoam-installation/162866-openfoam-using-environment-modules-hpc.html#post574413
    • modules load/unload support?
  2. checkMesh should have AMI checking...
  3. yPlus with stress based calculation
  4. http://www.openfoam.org/mantisbt/view.php?id=1944
  5. Related to http://bugs.openfoam.org/view.php?id=2353:
    From the perspective of generalization, we should extend the current 'fieldMinMax' and 'fieldAverage' (and other field* function objects) to also support per-patch calculations and therefore drop the current min/max/avg feature from the yPlus function object. This would also allow for a bit more refined control on when this should be shown on standard output.
    Furthermore, yPlus, wallShearStress, wallHeatFlux are all in the same boat... the 3 need patch operations of min, max, avg and sum/integral values.
⚠️ **GitHub.com Fallback** ⚠️