Skip to content

Conversation

@sanathkeshav
Copy link
Member

@sanathkeshav sanathkeshav commented May 3, 2025

  • Pixi-based solution to create a virtual environment for FANS_Dashboard
  • Some physics-based unit tests on the artifacts of the current CI (FANS solutions) via FANS_Dashboard functionalities
  • 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 Definite
  • test_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.

@sanathkeshav sanathkeshav added this to the 0.4.0 milestone May 3, 2025
@sanathkeshav sanathkeshav self-assigned this May 3, 2025
@sanathkeshav sanathkeshav marked this pull request as ready for review May 5, 2025 07:46
Copy link
Collaborator

@IshaanDesai IshaanDesai left a 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.

@sanathkeshav
Copy link
Member Author

sanathkeshav commented May 6, 2025

Before merging, I think we should super quickly integrate the pytest into the build and test CI (for Linux & MacOS)

@sanathkeshav sanathkeshav requested a review from siggmo May 7, 2025 11:12
Copy link
Contributor

@siggmo siggmo left a 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 IshaanDesai self-requested a review May 8, 2025 08:20
Copy link
Collaborator

@IshaanDesai IshaanDesai left a 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.

sanathkeshav and others added 4 commits May 12, 2025 17:04
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>
@sanathkeshav sanathkeshav merged commit 2142eaf into develop May 12, 2025
7 checks passed
@sanathkeshav sanathkeshav deleted the add-pytests branch May 12, 2025 15:26
@sanathkeshav sanathkeshav mentioned this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants