| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains tests for FANS. Tests serve two purposes:
The test directory includes:
Tests are configured by CMake when FANS is built. If your CMake build folder is named build, run the FANS tests in the following way
cd ../build
ctest fansThis will run all test cases and generate result files in build/test/.
After running the tests, the results are verified using pytest. We recommend running pytest via a pre-configured Pixi task,
pixi run -e dashboard pytestNote: The validation tests expect result files to be in build/test/ directory, so make sure to run the tests first.
For a 3D microstructure image of resolution 32 x 32 x 32 with a single spherical inclusion, the following test cases are available:
Each test case has corresponding input JSON files in the input_files/ directory. Tests can be run individually as example problems. For instance,
mpiexec -n 2 ./FANS input_files/test_LinearElastic.json test_results.h5Set rank-0 logging with --log-level {trace, debug, info, warn, error, critical, off} (default: info).
To quickly visualize the test results, and accompanying XDMF for the HDF5 output can be generated which can be directly opened in ParaView for 3D visualization and analysis:
pixi run h52xdmf test_results.h5| Back | FazBrowse Home | New Git URL |