-
Notifications
You must be signed in to change notification settings - Fork 7
Add pytests for FANS #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
IshaanDesai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are extensive 👍 But most tests call fucntionality from the dashboard, rather than functions from FANS itself. We could move the tests into the dashboard folder as it would make sense to have them there.
|
Before merging, I think we should super quickly integrate the pytest into the build and test CI (for Linux & MacOS) |
… set up in the Action workflow
siggmo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
IshaanDesai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went over the test/README. I have some suggestions.
Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>
Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>
Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>
Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>
test_displacement_averaging- This test verifies that the average of displacement fluctuations is zero .test_homogenization_consistency- This test verifies that the relationship stress_average = homogenized_tangent * strain_average holds.test_homogenized_tangent_spd- This test verifies that the homogenized tangent is strictly Symmetric Positive Definitetest_homogenized_tangent_within_VRbounds- This test verifies that the homogenized tangent is within Voigt and Reuss bounds for linear elastic and thermal problems.test_loading_to_strain_average- This test verifies that the strain_average field in the results matches the macroscale_loading specified in the input JSON file.test_strain_stress_averaging- This test verifies that the average of strain/stress fields matches the strain_average/stress_average in the results.test_Conversion- Test various conversions, e.g., Full tensor <-> Mandel, Mandel <-> Voigt (both orderings)test_Ciso- test the isotropic projection for 4-tensors using randomized data.test_kappaiso- test the isotropic projection for 2-tensors using randomized data.