Skip to content

Conversation

@adtzlr
Copy link
Owner

@adtzlr adtzlr commented Dec 24, 2025

Changed

  • Change the default output of the loadcases dof.uniaxial(), dof.shear() and dof.biaxial() to only return the dict of boundary conditions boundaries = fem.dof.uniaxial(field) (was boundaries, loadcase = fem.dof.uniaxial(field) before). The additional loadcase dict is now optional, boundaries, loadcase = fem.dof.uniaxial(field, return_loadcase=True). Note that this is a non backward compatible change.

Deprecated

  • Deprecate bounds in dof.symmetry(field, bounds=None). Use new equivalent boundaries argument, dof.symmetry(field, boundaries=None).

This change is useful because the loadcase dict isn't required in typical high-level scripts anymore. This will make the high-level code snippets much clearer as the unused loadcase dict won't be visible.

This PR also removes the deprecated SolidBodyGravity.

closes #1021

@adtzlr adtzlr self-assigned this Dec 24, 2025
@adtzlr adtzlr added the enhancement New feature or request label Dec 24, 2025
@adtzlr adtzlr changed the title Change return of dof.uniaxial(), dof.shear() and dof.biaxial() Simplify return value of dof.uniaxial(), dof.shear() and dof.biaxial() Dec 24, 2025
@adtzlr adtzlr changed the title Simplify return value of dof.uniaxial(), dof.shear() and dof.biaxial() Simplify default return value of loadcases dof.uniaxial(), dof.shear() and dof.biaxial() Dec 24, 2025
@codecov
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.40%. Comparing base (4eb92b8) to head (a402fa7).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1022   +/-   ##
=======================================
  Coverage   97.39%   97.40%           
=======================================
  Files         185      184    -1     
  Lines        7031     7015   -16     
=======================================
- Hits         6848     6833   -15     
+ Misses        183      182    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adtzlr adtzlr merged commit 64b0e53 into main Dec 24, 2025
5 checks passed
@adtzlr adtzlr deleted the change-loadcase-result branch December 24, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't return loadcase in default load-cases

2 participants