Skip to content

Add deprecation helpers and rename API to snake_case - #51

Open
chemiskyy wants to merge 5 commits into
masterfrom
release/one
Open

Add deprecation helpers and rename API to snake_case#51
chemiskyy wants to merge 5 commits into
masterfrom
release/one

Conversation

@chemiskyy

Copy link
Copy Markdown
Member

Introduce fedoo.util.deprecation with deprecated_alias/rename helpers and migrate many public APIs from PascalCase to snake_case while keeping backward-compatible aliases. Key changes: add deprecated_alias utilities; rename weakform factories (ImplicitDynamic, StressEquilibriumRI, PoroMechanics, PoroMechanicsSimple -> implicit_dynamic, stress_equilibrium_ri, poro_mechanics, poro_mechanics_simple) and expose deprecated PascalCase aliases; rename various problem methods (GetElasticEnergy/GetKineticEnergy/GetXdot/... -> get_elastic_energy, get_kinetic_energy, get_velocity, set_initial_displacement, set_initial_velocity, set_initial_acceleration, set_rayleigh_damping, etc.) and provide deprecated aliases; update localframe API (Rotate/GenerateCylindricalLocalFrame -> rotate, generate_cylindrical_local_frame) with aliases; make WeakFormBase.nvar a property; improve axi_to_3d to return the dataset and raise on wrong types; update multiple examples and tests to use the new API and adjusted mesh/element set names. These changes modernize the API naming while preserving backward compatibility via deprecation warnings.

chemiskyy and others added 5 commits July 19, 2026 21:43
Introduce fedoo.util.deprecation with deprecated_alias/rename helpers and migrate many public APIs from PascalCase to snake_case while keeping backward-compatible aliases. Key changes: add deprecated_alias utilities; rename weakform factories (ImplicitDynamic, StressEquilibriumRI, PoroMechanics, PoroMechanicsSimple -> implicit_dynamic, stress_equilibrium_ri, poro_mechanics, poro_mechanics_simple) and expose deprecated PascalCase aliases; rename various problem methods (GetElasticEnergy/GetKineticEnergy/GetXdot/... -> get_elastic_energy, get_kinetic_energy, get_velocity, set_initial_displacement, set_initial_velocity, set_initial_acceleration, set_rayleigh_damping, etc.) and provide deprecated aliases; update localframe API (Rotate/GenerateCylindricalLocalFrame -> rotate, generate_cylindrical_local_frame) with aliases; make WeakFormBase.nvar a property; improve axi_to_3d to return the dataset and raise on wrong types; update multiple examples and tests to use the new API and adjusted mesh/element set names. These changes modernize the API naming while preserving backward compatibility via deprecation warnings.
…modernize dynamic constructor keywords, and update affected examples, documentation, and tests.
Bump simcoon dependency to >=2.0 and adjust the default tangent_mode to match simcoon 2.0's enum mapping. The default was changed from 0 to 1 so the code uses the continuum tangent under simcoon 2.0; comments were updated to document the new numbering and the remapping from pre-2.0 values.
…d hex8r elements -> Correct Fbar and Bbar formulation when mesh is distorted

 - Rafactor ExplicitDynamic problem to use the time integrators
 - Merge Newmark problem in Linear one -> Now linear accept to be associated with time integrators and include a solve_history
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.

2 participants