damogranlabs / classy_blocks

Python classes for easier creation of OpenFOAM's blockMesh dictionaries.
MIT License
124 stars 37 forks source link

Include examples in tests #40

Closed FranzBangar closed 1 month ago

FranzBangar commented 1 year ago

The plan:

  1. Generate blockMeshDicts from examples using the already-written tool (tests/helpers/collect_outputs)
  2. Run meshes and check them visually by hand to make sure they work
  3. Repeat the above for other two OF versions
  4. Save valid example files
  5. Run No. 1 and compare output to saved dicts for each test
FranzBangar commented 1 month ago

For more than a year this has been done by running python tests/helpers/collect_outputs.py manually before a new release. So far this works well. Will revisit the issue when something important changes so that this doesn't work well anymore.