-
This libary provides a reference implementation of expression templates for OpenFOAM field arithmetic.
-
The purpose here is to demonstrate the performance and implementation of the operations.
- You will need a C++17 supporting compiler
- Source the latest OpenFOAM development version and run ./Allwmake
- Go to a case folder which has fields p and U in 0 folder and type
Test-Ranges --benchmark-no-analysis - You will see various field operations carried out with the standard OpenFOAM style (old) and with the proposed ranges approach (new)
- If you only wish to run the tests without benchmarks you can type
Test-Ranges Test*
- The
unittest/mock_fields.Hcontains "mock" fields which are used to test the ranges implementation without reading mesh unittest/newGeometricField.Handunittest/newField.Hare new field types which allow for direct construction from ranges