ANYfeSolver 0.5.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyfesolver/__init__.py +1075 -0
- anyfesolver/_b2_attachment_elimination_dev.py +261 -0
- anyfesolver/_b2_f10_f11_point_attachment.py +163 -0
- anyfesolver/_b2_loaded_point_trace_dev.py +173 -0
- anyfesolver/_b2_physical_flexibility_linear.py +707 -0
- anyfesolver/_b2_physical_linear_batch_dev.py +491 -0
- anyfesolver/_b2_physical_linear_definition.py +415 -0
- anyfesolver/_b2_physical_load_bubbles.py +282 -0
- anyfesolver/_compensated_contractions.py +497 -0
- anyfesolver/_compensated_native.py +437 -0
- anyfesolver/_corotational_batch.py +219 -0
- anyfesolver/_director_trace.py +214 -0
- anyfesolver/_dyadic_bilinear.py +76 -0
- anyfesolver/_dyadic_factor_chain.py +25 -0
- anyfesolver/_ge_beam3_adaptive_arc_program.py +286 -0
- anyfesolver/_ge_beam3_analysis_combined.py +102 -0
- anyfesolver/_ge_beam3_analysis_fibre_translation.py +130 -0
- anyfesolver/_ge_beam3_analysis_modal_snapshot.py +27 -0
- anyfesolver/_ge_beam3_analysis_nodal_program.py +140 -0
- anyfesolver/_ge_beam3_analysis_translation.py +147 -0
- anyfesolver/_ge_beam3_analysis_translation_modal.py +84 -0
- anyfesolver/_ge_beam3_arc_geometry.py +89 -0
- anyfesolver/_ge_beam3_arc_program.py +304 -0
- anyfesolver/_ge_beam3_authoritative_cell_seed.py +25 -0
- anyfesolver/_ge_beam3_cell_identity.py +52 -0
- anyfesolver/_ge_beam3_centered_batched_finite_inertia.py +132 -0
- anyfesolver/_ge_beam3_centered_finite_inertia.py +171 -0
- anyfesolver/_ge_beam3_centered_mixed.py +104 -0
- anyfesolver/_ge_beam3_centered_reference.py +187 -0
- anyfesolver/_ge_beam3_centered_so3_strain.py +76 -0
- anyfesolver/_ge_beam3_complementary_section.py +122 -0
- anyfesolver/_ge_beam3_compliance_snapshot_guard.py +20 -0
- anyfesolver/_ge_beam3_connected_dynamic.py +486 -0
- anyfesolver/_ge_beam3_connected_trajectory.py +258 -0
- anyfesolver/_ge_beam3_conservative_backtrack.py +26 -0
- anyfesolver/_ge_beam3_controlled_fibre_modes.py +105 -0
- anyfesolver/_ge_beam3_coupled_beam_subdomain.py +128 -0
- anyfesolver/_ge_beam3_coupled_modes.py +256 -0
- anyfesolver/_ge_beam3_deterministic_reduction.py +264 -0
- anyfesolver/_ge_beam3_displacement_program.py +255 -0
- anyfesolver/_ge_beam3_durable_coupled.py +251 -0
- anyfesolver/_ge_beam3_dynamic_elastic_state.py +461 -0
- anyfesolver/_ge_beam3_effective_deadline.py +58 -0
- anyfesolver/_ge_beam3_elastic_seed_continuation.py +223 -0
- anyfesolver/_ge_beam3_elastic_seed_modal.py +139 -0
- anyfesolver/_ge_beam3_equilibrium_line_program.py +98 -0
- anyfesolver/_ge_beam3_equilibrium_schur_solver.py +96 -0
- anyfesolver/_ge_beam3_factor_chain_modes.py +103 -0
- anyfesolver/_ge_beam3_fibre_cell.py +408 -0
- anyfesolver/_ge_beam3_fibre_distributed_couples.py +191 -0
- anyfesolver/_ge_beam3_fibre_kinematic_cell.py +75 -0
- anyfesolver/_ge_beam3_fibre_line_program.py +157 -0
- anyfesolver/_ge_beam3_fibre_line_work.py +87 -0
- anyfesolver/_ge_beam3_fibre_reference_modal.py +104 -0
- anyfesolver/_ge_beam3_fibre_schur_solver.py +134 -0
- anyfesolver/_ge_beam3_fibre_section.py +286 -0
- anyfesolver/_ge_beam3_fibre_static_boundary.py +113 -0
- anyfesolver/_ge_beam3_g1_analysis.py +307 -0
- anyfesolver/_ge_beam3_g1_elastic.py +161 -0
- anyfesolver/_ge_beam3_g1_element.py +185 -0
- anyfesolver/_ge_beam3_g1_operator.py +137 -0
- anyfesolver/_ge_beam3_g2_analysis.py +176 -0
- anyfesolver/_ge_beam3_g2_constraints.py +162 -0
- anyfesolver/_ge_beam3_g3_analysis.py +385 -0
- anyfesolver/_ge_beam3_g3_constraints.py +168 -0
- anyfesolver/_ge_beam3_g3b_owner.py +296 -0
- anyfesolver/_ge_beam3_g3b_q4_reference.py +186 -0
- anyfesolver/_ge_beam3_g3b_reference.py +206 -0
- anyfesolver/_ge_beam3_g3b_result_schema.py +107 -0
- anyfesolver/_ge_beam3_g3b_s3_reference.py +185 -0
- anyfesolver/_ge_beam3_g3b_weighted_reference.py +193 -0
- anyfesolver/_ge_beam3_g3c_affine_q4_chart.py +58 -0
- anyfesolver/_ge_beam3_g3c_affine_q4_increment_chart.py +257 -0
- anyfesolver/_ge_beam3_g3c_affine_q4_recovery.py +434 -0
- anyfesolver/_ge_beam3_g3c_affine_q4_registry.py +127 -0
- anyfesolver/_ge_beam3_g3c_b2_physical.py +153 -0
- anyfesolver/_ge_beam3_g3c_b2_physical_adapter.py +160 -0
- anyfesolver/_ge_beam3_g3c_definition.py +117 -0
- anyfesolver/_ge_beam3_g3c_local_beam.py +188 -0
- anyfesolver/_ge_beam3_g3c_local_shell.py +371 -0
- anyfesolver/_ge_beam3_g3c_owner.py +400 -0
- anyfesolver/_ge_beam3_g3c_physical_authority.py +203 -0
- anyfesolver/_ge_beam3_g3c_physical_owner.py +556 -0
- anyfesolver/_ge_beam3_g3c_recovery.py +91 -0
- anyfesolver/_ge_beam3_g3c_so3_numerics.py +81 -0
- anyfesolver/_ge_beam3_g3c_stable/__init__.py +1 -0
- anyfesolver/_ge_beam3_g3c_stable/authority.py +152 -0
- anyfesolver/_ge_beam3_g3c_stable/beam.py +196 -0
- anyfesolver/_ge_beam3_g3c_stable/boundary.py +38 -0
- anyfesolver/_ge_beam3_g3c_stable/chart.py +23 -0
- anyfesolver/_ge_beam3_g3c_stable/compensated.py +46 -0
- anyfesolver/_ge_beam3_g3c_stable/element.py +190 -0
- anyfesolver/_ge_beam3_g3c_stable/fit.py +54 -0
- anyfesolver/_ge_beam3_g3c_stable/joint.py +255 -0
- anyfesolver/_ge_beam3_g3c_stable/line_work.py +92 -0
- anyfesolver/_ge_beam3_g3c_stable/operator.py +147 -0
- anyfesolver/_ge_beam3_g3c_stable/owner.py +415 -0
- anyfesolver/_ge_beam3_g3c_stable/shell.py +358 -0
- anyfesolver/_ge_beam3_g4_completion.py +186 -0
- anyfesolver/_ge_beam3_g4a_station_transaction.py +385 -0
- anyfesolver/_ge_beam3_g5_completion.py +68 -0
- anyfesolver/_ge_beam3_g6_domain.py +354 -0
- anyfesolver/_ge_beam3_generalized_cell.py +172 -0
- anyfesolver/_ge_beam3_generalized_ellipsoid_section.py +215 -0
- anyfesolver/_ge_beam3_generalized_static_boundary.py +233 -0
- anyfesolver/_ge_beam3_lifted_kinetic_factor.py +26 -0
- anyfesolver/_ge_beam3_line_fibre_modes.py +121 -0
- anyfesolver/_ge_beam3_load_program.py +275 -0
- anyfesolver/_ge_beam3_loaded_modal.py +225 -0
- anyfesolver/_ge_beam3_mixed_ad.py +286 -0
- anyfesolver/_ge_beam3_native_analysis.py +484 -0
- anyfesolver/_ge_beam3_native_arc.py +269 -0
- anyfesolver/_ge_beam3_native_arc_adaptive.py +251 -0
- anyfesolver/_ge_beam3_native_arc_restart.py +88 -0
- anyfesolver/_ge_beam3_native_arc_source.py +62 -0
- anyfesolver/_ge_beam3_native_buckling.py +206 -0
- anyfesolver/_ge_beam3_native_combined_couples.py +179 -0
- anyfesolver/_ge_beam3_native_combined_restart.py +205 -0
- anyfesolver/_ge_beam3_native_definition.py +238 -0
- anyfesolver/_ge_beam3_native_distributed_element.py +220 -0
- anyfesolver/_ge_beam3_native_distributed_loading.py +92 -0
- anyfesolver/_ge_beam3_native_distributed_program.py +165 -0
- anyfesolver/_ge_beam3_native_distributed_recovery.py +34 -0
- anyfesolver/_ge_beam3_native_distributed_restart.py +221 -0
- anyfesolver/_ge_beam3_native_dynamic_analysis.py +149 -0
- anyfesolver/_ge_beam3_native_dynamic_restart.py +261 -0
- anyfesolver/_ge_beam3_native_fibre_current_modal.py +104 -0
- anyfesolver/_ge_beam3_native_fibre_recovery.py +34 -0
- anyfesolver/_ge_beam3_native_fibre_restart.py +211 -0
- anyfesolver/_ge_beam3_native_fibre_static_element.py +193 -0
- anyfesolver/_ge_beam3_native_force_adaptation.py +56 -0
- anyfesolver/_ge_beam3_native_generalized_combined_couples.py +188 -0
- anyfesolver/_ge_beam3_native_generalized_combined_restart.py +207 -0
- anyfesolver/_ge_beam3_native_generalized_element.py +222 -0
- anyfesolver/_ge_beam3_native_generalized_factor_modal.py +122 -0
- anyfesolver/_ge_beam3_native_generalized_loading.py +92 -0
- anyfesolver/_ge_beam3_native_generalized_modal.py +274 -0
- anyfesolver/_ge_beam3_native_generalized_paired_modal.py +13 -0
- anyfesolver/_ge_beam3_native_generalized_parameter.py +89 -0
- anyfesolver/_ge_beam3_native_generalized_program.py +196 -0
- anyfesolver/_ge_beam3_native_generalized_recovery.py +34 -0
- anyfesolver/_ge_beam3_native_generalized_restart.py +243 -0
- anyfesolver/_ge_beam3_native_history_profile.py +53 -0
- anyfesolver/_ge_beam3_native_line_loading.py +93 -0
- anyfesolver/_ge_beam3_native_line_program.py +150 -0
- anyfesolver/_ge_beam3_native_line_recovery.py +34 -0
- anyfesolver/_ge_beam3_native_line_restart.py +197 -0
- anyfesolver/_ge_beam3_native_line_static_element.py +220 -0
- anyfesolver/_ge_beam3_native_load_admission.py +37 -0
- anyfesolver/_ge_beam3_native_midpoint.py +1004 -0
- anyfesolver/_ge_beam3_native_multi_shell_contact.py +539 -0
- anyfesolver/_ge_beam3_native_pair_contact.py +236 -0
- anyfesolver/_ge_beam3_native_shell_contact.py +357 -0
- anyfesolver/_ge_beam3_native_spatial_couples.py +176 -0
- anyfesolver/_ge_beam3_native_spatial_restart.py +204 -0
- anyfesolver/_ge_beam3_native_transient.py +467 -0
- anyfesolver/_ge_beam3_native_translation.py +225 -0
- anyfesolver/_ge_beam3_native_translation_restart.py +54 -0
- anyfesolver/_ge_beam3_operator_validation_scope.py +53 -0
- anyfesolver/_ge_beam3_p5/__init__.py +11 -0
- anyfesolver/_ge_beam3_p5/algebra.py +91 -0
- anyfesolver/_ge_beam3_p5/arrays.py +29 -0
- anyfesolver/_ge_beam3_p5/chart.py +45 -0
- anyfesolver/_ge_beam3_p5/codec.py +82 -0
- anyfesolver/_ge_beam3_p5/committed_modal.py +191 -0
- anyfesolver/_ge_beam3_p5/compensated.py +118 -0
- anyfesolver/_ge_beam3_p5/compensated_coordinates.py +44 -0
- anyfesolver/_ge_beam3_p5/core.py +159 -0
- anyfesolver/_ge_beam3_p5/element.py +207 -0
- anyfesolver/_ge_beam3_p5/factors.py +61 -0
- anyfesolver/_ge_beam3_p5/inertia.py +120 -0
- anyfesolver/_ge_beam3_p5/mass.py +70 -0
- anyfesolver/_ge_beam3_p5/mixed.py +256 -0
- anyfesolver/_ge_beam3_p5/reference_modal.py +73 -0
- anyfesolver/_ge_beam3_p5/section.py +139 -0
- anyfesolver/_ge_beam3_p5/typed_schema.py +111 -0
- anyfesolver/_ge_beam3_p5_centered/__init__.py +6 -0
- anyfesolver/_ge_beam3_p5_centered/codec.py +84 -0
- anyfesolver/_ge_beam3_p5_centered/committed_modal.py +192 -0
- anyfesolver/_ge_beam3_p5_centered/core.py +171 -0
- anyfesolver/_ge_beam3_p5_centered/element.py +216 -0
- anyfesolver/_ge_beam3_p5_centered/mass.py +99 -0
- anyfesolver/_ge_beam3_p5_centered/positions.py +34 -0
- anyfesolver/_ge_beam3_p5_centered/reference_modal.py +73 -0
- anyfesolver/_ge_beam3_p5_coordinates/__init__.py +6 -0
- anyfesolver/_ge_beam3_p5_coordinates/codec.py +84 -0
- anyfesolver/_ge_beam3_p5_coordinates/committed_modal.py +192 -0
- anyfesolver/_ge_beam3_p5_coordinates/core.py +163 -0
- anyfesolver/_ge_beam3_p5_coordinates/element.py +213 -0
- anyfesolver/_ge_beam3_p5_coordinates/positions.py +102 -0
- anyfesolver/_ge_beam3_p5_coordinates/reference_modal.py +73 -0
- anyfesolver/_ge_beam3_p5_loads/__init__.py +7 -0
- anyfesolver/_ge_beam3_p5_loads/codec.py +85 -0
- anyfesolver/_ge_beam3_p5_loads/core.py +192 -0
- anyfesolver/_ge_beam3_p5_loads/element.py +243 -0
- anyfesolver/_ge_beam3_p5_loads/state.py +120 -0
- anyfesolver/_ge_beam3_p5_loads/work.py +45 -0
- anyfesolver/_ge_beam3_p5_seeded/__init__.py +9 -0
- anyfesolver/_ge_beam3_p5_seeded/codec.py +87 -0
- anyfesolver/_ge_beam3_p5_seeded/core.py +197 -0
- anyfesolver/_ge_beam3_p5_seeded/element.py +245 -0
- anyfesolver/_ge_beam3_p5_seeded/state.py +122 -0
- anyfesolver/_ge_beam3_p5_seeded/work.py +47 -0
- anyfesolver/_ge_beam3_pose_joint.py +268 -0
- anyfesolver/_ge_beam3_precise_geometric_work.py +147 -0
- anyfesolver/_ge_beam3_reassembled_signed_modes.py +101 -0
- anyfesolver/_ge_beam3_reference_identity.py +92 -0
- anyfesolver/_ge_beam3_refined_fibre_schur_solver.py +104 -0
- anyfesolver/_ge_beam3_refinement_capacity.py +19 -0
- anyfesolver/_ge_beam3_relative_virgin_reference_modes.py +60 -0
- anyfesolver/_ge_beam3_retained_arc.py +350 -0
- anyfesolver/_ge_beam3_retained_arc_geometry.py +66 -0
- anyfesolver/_ge_beam3_retained_arc_modal.py +125 -0
- anyfesolver/_ge_beam3_retained_elastic.py +134 -0
- anyfesolver/_ge_beam3_retained_fibre.py +209 -0
- anyfesolver/_ge_beam3_retained_fibre_control.py +270 -0
- anyfesolver/_ge_beam3_retained_fibre_element.py +58 -0
- anyfesolver/_ge_beam3_retained_fibre_modal.py +155 -0
- anyfesolver/_ge_beam3_retained_fibre_modes.py +189 -0
- anyfesolver/_ge_beam3_retained_fibre_program.py +68 -0
- anyfesolver/_ge_beam3_retained_fibre_state.py +268 -0
- anyfesolver/_ge_beam3_retained_force_program.py +72 -0
- anyfesolver/_ge_beam3_retained_generalized.py +186 -0
- anyfesolver/_ge_beam3_retained_generalized_modal.py +171 -0
- anyfesolver/_ge_beam3_retained_generalized_program.py +63 -0
- anyfesolver/_ge_beam3_retained_generalized_state.py +281 -0
- anyfesolver/_ge_beam3_retained_nodal_loading.py +111 -0
- anyfesolver/_ge_beam3_retained_plastic.py +116 -0
- anyfesolver/_ge_beam3_retained_plastic_modes.py +144 -0
- anyfesolver/_ge_beam3_retained_plastic_program.py +69 -0
- anyfesolver/_ge_beam3_retained_plastic_state.py +165 -0
- anyfesolver/_ge_beam3_retained_state.py +194 -0
- anyfesolver/_ge_beam3_retained_translation_control.py +345 -0
- anyfesolver/_ge_beam3_retained_translation_modal.py +137 -0
- anyfesolver/_ge_beam3_schur_line_program.py +98 -0
- anyfesolver/_ge_beam3_seeded_fibre_control.py +175 -0
- anyfesolver/_ge_beam3_seeded_load_program.py +301 -0
- anyfesolver/_ge_beam3_seeded_loaded_modal.py +226 -0
- anyfesolver/_ge_beam3_seeded_signed_modes.py +150 -0
- anyfesolver/_ge_beam3_shared_kinematic_split.py +53 -0
- anyfesolver/_ge_beam3_shell_joint_state.py +396 -0
- anyfesolver/_ge_beam3_shell_joint_trial.py +217 -0
- anyfesolver/_ge_beam3_signed_loaded_modes.py +140 -0
- anyfesolver/_ge_beam3_spatial_fibre_program.py +113 -0
- anyfesolver/_ge_beam3_spatial_nodal_moments.py +38 -0
- anyfesolver/_ge_beam3_station_resultant_cell.py +235 -0
- anyfesolver/_ge_beam3_variational_shell.py +211 -0
- anyfesolver/_ge_beam3_virgin_reference_modes.py +60 -0
- anyfesolver/_impact_coupling.py +162 -0
- anyfesolver/_native_authority_dag.py +77 -0
- anyfesolver/_native_dyadic_interval_inertia.py +64 -0
- anyfesolver/_native_exact_shift_chain_modes.py +140 -0
- anyfesolver/_native_exact_shift_inertia.py +86 -0
- anyfesolver/_native_factor_chain_modes.py +192 -0
- anyfesolver/_native_guard.cpp +828 -0
- anyfesolver/_native_guard_dispatch.py +140 -0
- anyfesolver/_native_large_factor_chain.py +55 -0
- anyfesolver/_native_material_protocol.py +51 -0
- anyfesolver/_native_midpoint_controller.py +90 -0
- anyfesolver/_native_modal_capacity.py +26 -0
- anyfesolver/_native_paired_factor_chain_modes.py +244 -0
- anyfesolver/_native_reassembled_factor_modes.py +185 -0
- anyfesolver/_native_reference_factor_spectrum.py +102 -0
- anyfesolver/_native_reference_modal.py +180 -0
- anyfesolver/_native_relative_factor_chain_modes.py +204 -0
- anyfesolver/_native_relative_reference_factor_spectrum.py +110 -0
- anyfesolver/_native_retained_step.py +15 -0
- anyfesolver/_native_rotation_state.py +797 -0
- anyfesolver/_native_signed_factor_modes.py +257 -0
- anyfesolver/_native_signed_kinetic_factor_modes.py +279 -0
- anyfesolver/_native_stationary_spectrum.py +79 -0
- anyfesolver/_nonlinear_events.py +150 -0
- anyfesolver/_nonlinear_seed.py +80 -0
- anyfesolver/_paired_modal_arithmetic.py +71 -0
- anyfesolver/_plate_stability_continuation.py +171 -0
- anyfesolver/_q4_assumed_strain_plasticity.py +502 -0
- anyfesolver/_qualified_authority_epoch.py +561 -0
- anyfesolver/_relative_reference_svd.py +44 -0
- anyfesolver/_stiffened_shell_affine_endpoint.py +232 -0
- anyfesolver/_stiffened_shell_algorithmic_pullback.py +38 -0
- anyfesolver/_stiffened_shell_arc_checkpoint.py +422 -0
- anyfesolver/_stiffened_shell_arc_control.py +108 -0
- anyfesolver/_stiffened_shell_arc_metric.py +222 -0
- anyfesolver/_stiffened_shell_arc_publication.py +153 -0
- anyfesolver/_stiffened_shell_arc_trial.py +310 -0
- anyfesolver/_stiffened_shell_b2_affine_resolution.py +101 -0
- anyfesolver/_stiffened_shell_b2_assembly_diagnostics.py +172 -0
- anyfesolver/_stiffened_shell_b2_definition_ownership.py +189 -0
- anyfesolver/_stiffened_shell_b2_experimental.py +153 -0
- anyfesolver/_stiffened_shell_b2_nodal_footprint.py +273 -0
- anyfesolver/_stiffened_shell_b2_physical_rigid_footprint.py +237 -0
- anyfesolver/_stiffened_shell_b2_q4_panel_experimental.py +2447 -0
- anyfesolver/_stiffened_shell_b2_q4_point_experimental.py +251 -0
- anyfesolver/_stiffened_shell_b2_reference_buckling.py +413 -0
- anyfesolver/_stiffened_shell_b3_chart.py +70 -0
- anyfesolver/_stiffened_shell_b3_local_adapter.py +141 -0
- anyfesolver/_stiffened_shell_beam_history.py +107 -0
- anyfesolver/_stiffened_shell_bl5_local_experimental.py +173 -0
- anyfesolver/_stiffened_shell_bl5_native_elastic.py +28 -0
- anyfesolver/_stiffened_shell_branch_event_trial.py +58 -0
- anyfesolver/_stiffened_shell_consumer_capabilities.py +124 -0
- anyfesolver/_stiffened_shell_coordinate_support.py +110 -0
- anyfesolver/_stiffened_shell_displacement_adaptive.py +327 -0
- anyfesolver/_stiffened_shell_displacement_checkpoint.py +360 -0
- anyfesolver/_stiffened_shell_displacement_control.py +326 -0
- anyfesolver/_stiffened_shell_displacement_corrector.py +293 -0
- anyfesolver/_stiffened_shell_displacement_increment.py +121 -0
- anyfesolver/_stiffened_shell_distributing_footprint.py +354 -0
- anyfesolver/_stiffened_shell_distributing_pose.py +267 -0
- anyfesolver/_stiffened_shell_f06_increment_arithmetic.py +205 -0
- anyfesolver/_stiffened_shell_ge_body_load.py +300 -0
- anyfesolver/_stiffened_shell_ge_checkpoint_binary.py +472 -0
- anyfesolver/_stiffened_shell_ge_distributed_load.py +210 -0
- anyfesolver/_stiffened_shell_ge_distributed_programme.py +175 -0
- anyfesolver/_stiffened_shell_ge_distributing_finite.py +242 -0
- anyfesolver/_stiffened_shell_ge_distributing_reference.py +296 -0
- anyfesolver/_stiffened_shell_ge_experimental.py +2454 -0
- anyfesolver/_stiffened_shell_ge_finite_experimental.py +2714 -0
- anyfesolver/_stiffened_shell_ge_mixed_modal_mass.py +33 -0
- anyfesolver/_stiffened_shell_ge_point_buckling.py +723 -0
- anyfesolver/_stiffened_shell_ge_pressure_load.py +366 -0
- anyfesolver/_stiffened_shell_ge_reference_modal.py +580 -0
- anyfesolver/_stiffened_shell_generalized_recovery.py +150 -0
- anyfesolver/_stiffened_shell_increment_control.py +217 -0
- anyfesolver/_stiffened_shell_l1_assembly_experimental.py +420 -0
- anyfesolver/_stiffened_shell_l1_local_experimental.py +284 -0
- anyfesolver/_stiffened_shell_l1_supported_work_experimental.py +146 -0
- anyfesolver/_stiffened_shell_native_distributed_load.py +120 -0
- anyfesolver/_stiffened_shell_native_gravity.py +236 -0
- anyfesolver/_stiffened_shell_nodal_footprint.py +255 -0
- anyfesolver/_stiffened_shell_physical_q4_mass.py +98 -0
- anyfesolver/_stiffened_shell_physical_s3_mass.py +53 -0
- anyfesolver/_stiffened_shell_point_recovery.py +49 -0
- anyfesolver/_stiffened_shell_q4_algorithmic_pullback.py +88 -0
- anyfesolver/_stiffened_shell_q4_material_event.py +114 -0
- anyfesolver/_stiffened_shell_q4_reference.py +65 -0
- anyfesolver/_stiffened_shell_rotation_charts.py +58 -0
- anyfesolver/_stiffened_shell_s3_algorithmic_pullback.py +59 -0
- anyfesolver/_stiffened_shell_s3_conservative_buckling.py +28 -0
- anyfesolver/_stiffened_shell_s3_dead_work_candidate.py +107 -0
- anyfesolver/_stiffened_shell_s3_material_event.py +30 -0
- anyfesolver/_stiffened_shell_same_parent_trial.py +224 -0
- anyfesolver/_stiffened_shell_selected_recovery.py +113 -0
- anyfesolver/_stiffened_shell_staged_load_experimental.py +392 -0
- anyfesolver/_stiffened_shell_stress_free_reference.py +204 -0
- anyfesolver/_wire_types.py +17 -0
- anyfesolver/activity.py +1537 -0
- anyfesolver/algebraic_dynamics.py +2864 -0
- anyfesolver/analysis_session.py +897 -0
- anyfesolver/anystructure_fem_mode.py +1637 -0
- anyfesolver/arc_length.py +2587 -0
- anyfesolver/assembly.py +1830 -0
- anyfesolver/b3_ge.py +179 -0
- anyfesolver/baselines.py +303 -0
- anyfesolver/beam_sections.py +292 -0
- anyfesolver/beam_shell_verification.py +4685 -0
- anyfesolver/beam_validity.py +110 -0
- anyfesolver/benchmarks.py +495 -0
- anyfesolver/boundary.py +1680 -0
- anyfesolver/buckling.py +2136 -0
- anyfesolver/buckling_validity.py +91 -0
- anyfesolver/capacity_workflow.py +431 -0
- anyfesolver/capsule_runtime_guard.py +99 -0
- anyfesolver/cases.py +173 -0
- anyfesolver/composite_strip_verification.py +297 -0
- anyfesolver/concentrated_mass.py +84 -0
- anyfesolver/constraint_audit.py +553 -0
- anyfesolver/contact.py +4785 -0
- anyfesolver/contact_performance.py +301 -0
- anyfesolver/control.py +206 -0
- anyfesolver/corotational.py +1935 -0
- anyfesolver/corotational_performance.py +157 -0
- anyfesolver/current_state_tangent.py +2780 -0
- anyfesolver/cylinder_benchmarks.py +369 -0
- anyfesolver/damage_matrix_performance.py +617 -0
- anyfesolver/dynamics.py +2833 -0
- anyfesolver/e4_pl_element.py +8265 -0
- anyfesolver/e4_pl_enriched.py +194 -0
- anyfesolver/e4_pl_enriched_nonlinear.py +159 -0
- anyfesolver/e4_pl_s3_element.py +9752 -0
- anyfesolver/e4_pl_s3_initial_fields.py +101 -0
- anyfesolver/e4_pl_s3_state.py +4723 -0
- anyfesolver/e4_pl_s3_v2_element.py +1844 -0
- anyfesolver/e4_pl_s3_v2b_element.py +1936 -0
- anyfesolver/e4_pl_s3_v2c_element.py +2196 -0
- anyfesolver/e4_pl_s3_v2d_element.py +2621 -0
- anyfesolver/e4_pl_s3_v2d_state.py +376 -0
- anyfesolver/element_capabilities.py +159 -0
- anyfesolver/element_qualification.py +432 -0
- anyfesolver/elements.py +6327 -0
- anyfesolver/experimental_csr_assembly.py +238 -0
- anyfesolver/external_references.py +1253 -0
- anyfesolver/fe_core.py +832 -0
- anyfesolver/floating_pressure_regions.py +119 -0
- anyfesolver/floating_response.py +486 -0
- anyfesolver/floating_transient.py +1281 -0
- anyfesolver/fracture.py +621 -0
- anyfesolver/ge_beam3_curved_reference.py +725 -0
- anyfesolver/ge_beam3_element.py +885 -0
- anyfesolver/ge_beam3_mixed_element.py +1216 -0
- anyfesolver/ge_beam3_mixed_state.py +814 -0
- anyfesolver/ge_beam3_native.py +129 -0
- anyfesolver/ge_beam3_native_connected_dynamics.py +24 -0
- anyfesolver/ge_beam3_native_dynamics.py +70 -0
- anyfesolver/ge_beam3_state.py +672 -0
- anyfesolver/general_contact/__init__.py +151 -0
- anyfesolver/general_contact/_enriched_multitarget_empty.py +202 -0
- anyfesolver/general_contact/_enriched_multitarget_trial.py +183 -0
- anyfesolver/general_contact/_results_archive_common.py +65 -0
- anyfesolver/general_contact/algebraic_path.py +206 -0
- anyfesolver/general_contact/arc_contact.py +237 -0
- anyfesolver/general_contact/arc_results_archive.py +158 -0
- anyfesolver/general_contact/augmentation.py +157 -0
- anyfesolver/general_contact/automatic_domain.py +621 -0
- anyfesolver/general_contact/beam_chain_consistent.py +357 -0
- anyfesolver/general_contact/beam_chain_end_geometry.py +237 -0
- anyfesolver/general_contact/beam_chain_ends.py +220 -0
- anyfesolver/general_contact/beam_chain_pair.py +416 -0
- anyfesolver/general_contact/beam_curve_end_geometry.py +254 -0
- anyfesolver/general_contact/beam_curve_ends.py +237 -0
- anyfesolver/general_contact/beam_curve_pair.py +794 -0
- anyfesolver/general_contact/beam_curve_pair_static.py +303 -0
- anyfesolver/general_contact/beam_end_radial_geometry.py +221 -0
- anyfesolver/general_contact/beam_end_topology.py +15 -0
- anyfesolver/general_contact/beam_hemisphere_coupled_tool.py +61 -0
- anyfesolver/general_contact/beam_hemisphere_cylinder.py +134 -0
- anyfesolver/general_contact/beam_hemisphere_cylinder_motion.py +89 -0
- anyfesolver/general_contact/beam_hemisphere_cylinder_work.py +216 -0
- anyfesolver/general_contact/beam_hemisphere_plane.py +175 -0
- anyfesolver/general_contact/beam_hemisphere_s3_support.py +152 -0
- anyfesolver/general_contact/beam_hemisphere_sphere.py +135 -0
- anyfesolver/general_contact/beam_hemisphere_sphere_work.py +114 -0
- anyfesolver/general_contact/beam_hemisphere_support.py +211 -0
- anyfesolver/general_contact/beam_pair.py +523 -0
- anyfesolver/general_contact/beam_pair_end_geometry.py +269 -0
- anyfesolver/general_contact/beam_pair_ends.py +222 -0
- anyfesolver/general_contact/beam_plane.py +425 -0
- anyfesolver/general_contact/beam_radial.py +500 -0
- anyfesolver/general_contact/beam_radial_ends.py +223 -0
- anyfesolver/general_contact/beam_s3_directional_rates.py +196 -0
- anyfesolver/general_contact/beam_s3_rotational_transient.py +126 -0
- anyfesolver/general_contact/beam_s3_transient.py +139 -0
- anyfesolver/general_contact/beam_shell.py +648 -0
- anyfesolver/general_contact/beam_shell_patch.py +395 -0
- anyfesolver/general_contact/beam_temporal_bounds.py +230 -0
- anyfesolver/general_contact/capability.py +101 -0
- anyfesolver/general_contact/capped_cylinder.py +618 -0
- anyfesolver/general_contact/contact_search.py +95 -0
- anyfesolver/general_contact/core.py +1769 -0
- anyfesolver/general_contact/curved_s3_q4_work.py +238 -0
- anyfesolver/general_contact/curved_shell_skin.py +520 -0
- anyfesolver/general_contact/d1_interior_profile.py +427 -0
- anyfesolver/general_contact/deformable_beam_s3_caps.py +143 -0
- anyfesolver/general_contact/deformable_beam_s3_line.py +211 -0
- anyfesolver/general_contact/deformable_beam_s3_static.py +152 -0
- anyfesolver/general_contact/descriptor_rates.py +61 -0
- anyfesolver/general_contact/enriched_cold_predictor.py +161 -0
- anyfesolver/general_contact/enriched_moment_batch.py +337 -0
- anyfesolver/general_contact/enriched_multitarget.py +308 -0
- anyfesolver/general_contact/enriched_multitarget_gap.py +156 -0
- anyfesolver/general_contact/enriched_multitarget_moments.py +194 -0
- anyfesolver/general_contact/enriched_multitarget_topology.py +171 -0
- anyfesolver/general_contact/enriched_nonlinear.py +440 -0
- anyfesolver/general_contact/enriched_overlap.py +299 -0
- anyfesolver/general_contact/enriched_path.py +253 -0
- anyfesolver/general_contact/enriched_small_cut.py +310 -0
- anyfesolver/general_contact/enriched_static.py +481 -0
- anyfesolver/general_contact/enriched_union.py +320 -0
- anyfesolver/general_contact/equilibrated_pressure_pivot.py +140 -0
- anyfesolver/general_contact/event_subdivision.py +273 -0
- anyfesolver/general_contact/finite_mixed_state.py +133 -0
- anyfesolver/general_contact/finite_rigid_patch.py +196 -0
- anyfesolver/general_contact/finite_rigid_support.py +129 -0
- anyfesolver/general_contact/finite_rigid_sweep.py +53 -0
- anyfesolver/general_contact/finite_rotation_predictor.py +171 -0
- anyfesolver/general_contact/finite_rotation_skin.py +212 -0
- anyfesolver/general_contact/finite_rotation_state.py +106 -0
- anyfesolver/general_contact/finite_rotation_sweep.py +161 -0
- anyfesolver/general_contact/finite_v2d_state.py +104 -0
- anyfesolver/general_contact/fixed_projection_graph.py +205 -0
- anyfesolver/general_contact/fixed_projection_s3_events.py +235 -0
- anyfesolver/general_contact/free_rigid.py +134 -0
- anyfesolver/general_contact/friction_point.py +378 -0
- anyfesolver/general_contact/gap_extrema.py +119 -0
- anyfesolver/general_contact/guided_pair_transient_geometry.py +138 -0
- anyfesolver/general_contact/initial_contact_seed.py +368 -0
- anyfesolver/general_contact/linearized_pivot.py +595 -0
- anyfesolver/general_contact/material_work_diagnostics.py +159 -0
- anyfesolver/general_contact/moment_batch_ad.py +129 -0
- anyfesolver/general_contact/moment_batch_points.py +75 -0
- anyfesolver/general_contact/moving.py +1031 -0
- anyfesolver/general_contact/multiple_beam_rigid.py +248 -0
- anyfesolver/general_contact/multiple_beam_s3_caps.py +199 -0
- anyfesolver/general_contact/multiple_beam_s3_transient.py +223 -0
- anyfesolver/general_contact/multiple_projected_pairs.py +196 -0
- anyfesolver/general_contact/multiple_shell_planes.py +226 -0
- anyfesolver/general_contact/native_activation_static.py +143 -0
- anyfesolver/general_contact/native_checkpoint_results.py +213 -0
- anyfesolver/general_contact/native_curve_union.py +268 -0
- anyfesolver/general_contact/native_curved_geometry.py +374 -0
- anyfesolver/general_contact/native_curved_pair_partition.py +590 -0
- anyfesolver/general_contact/native_curved_plane_work.py +864 -0
- anyfesolver/general_contact/native_curved_s3_work.py +472 -0
- anyfesolver/general_contact/native_event_polynomial.py +164 -0
- anyfesolver/general_contact/native_fibre_context.py +173 -0
- anyfesolver/general_contact/native_fibre_results.py +74 -0
- anyfesolver/general_contact/native_initial_guess.py +122 -0
- anyfesolver/general_contact/native_material_activation.py +108 -0
- anyfesolver/general_contact/native_material_plane.py +111 -0
- anyfesolver/general_contact/native_material_s3.py +209 -0
- anyfesolver/general_contact/native_multi_s3_static.py +722 -0
- anyfesolver/general_contact/native_normal_angles.py +233 -0
- anyfesolver/general_contact/native_pair_error_budget.py +49 -0
- anyfesolver/general_contact/native_replay_arithmetic.py +103 -0
- anyfesolver/general_contact/native_replay_diagnostics.py +90 -0
- anyfesolver/general_contact/native_retained_body_junction.py +99 -0
- anyfesolver/general_contact/native_retained_body_pair.py +220 -0
- anyfesolver/general_contact/native_retained_body_projection.py +160 -0
- anyfesolver/general_contact/native_retained_body_static.py +62 -0
- anyfesolver/general_contact/native_retained_cell_pair.py +185 -0
- anyfesolver/general_contact/native_retained_curve_cell.py +102 -0
- anyfesolver/general_contact/native_retained_line_plane.py +210 -0
- anyfesolver/general_contact/native_retained_line_s3.py +440 -0
- anyfesolver/general_contact/native_retained_line_s3_work.py +91 -0
- anyfesolver/general_contact/native_retained_pair_static.py +845 -0
- anyfesolver/general_contact/native_retained_s3_static.py +554 -0
- anyfesolver/general_contact/native_retained_static.py +478 -0
- anyfesolver/general_contact/native_retained_station.py +222 -0
- anyfesolver/general_contact/native_retained_whole_pair.py +2120 -0
- anyfesolver/general_contact/native_s3_swept.py +149 -0
- anyfesolver/general_contact/native_shell_static_driver.py +144 -0
- anyfesolver/general_contact/native_surface_activation.py +391 -0
- anyfesolver/general_contact/native_surface_bounds.py +198 -0
- anyfesolver/general_contact/native_surface_contributor.py +121 -0
- anyfesolver/general_contact/native_surface_crossing.py +81 -0
- anyfesolver/general_contact/native_surface_event_sequence.py +320 -0
- anyfesolver/general_contact/native_surface_extrema.py +72 -0
- anyfesolver/general_contact/native_surface_friction_integral.py +1724 -0
- anyfesolver/general_contact/native_surface_front.py +742 -0
- anyfesolver/general_contact/native_surface_front_boundary.py +160 -0
- anyfesolver/general_contact/native_surface_front_precision.py +78 -0
- anyfesolver/general_contact/native_surface_front_work.py +118 -0
- anyfesolver/general_contact/native_surface_history.py +334 -0
- anyfesolver/general_contact/native_surface_normal.py +324 -0
- anyfesolver/general_contact/native_surface_patch.py +213 -0
- anyfesolver/general_contact/native_surface_path.py +348 -0
- anyfesolver/general_contact/native_surface_quadrature.py +212 -0
- anyfesolver/general_contact/native_surface_s3_friction.py +340 -0
- anyfesolver/general_contact/native_surface_support.py +776 -0
- anyfesolver/general_contact/native_surface_transaction.py +198 -0
- anyfesolver/general_contact/native_transient_multi_shell.py +108 -0
- anyfesolver/general_contact/native_transient_pair.py +61 -0
- anyfesolver/general_contact/native_transient_shell.py +44 -0
- anyfesolver/general_contact/normal_s3_skin_path.py +163 -0
- anyfesolver/general_contact/overlap.py +443 -0
- anyfesolver/general_contact/pair.py +466 -0
- anyfesolver/general_contact/patch_broadphase.py +111 -0
- anyfesolver/general_contact/patch_mortar.py +593 -0
- anyfesolver/general_contact/patch_sliding.py +644 -0
- anyfesolver/general_contact/plane_newmark_events.py +278 -0
- anyfesolver/general_contact/pointwise_patch.py +288 -0
- anyfesolver/general_contact/polynomial_roots.py +312 -0
- anyfesolver/general_contact/pressure_basis.py +241 -0
- anyfesolver/general_contact/pressure_diagnostics.py +155 -0
- anyfesolver/general_contact/pressure_overlay.py +182 -0
- anyfesolver/general_contact/pressure_space.py +51 -0
- anyfesolver/general_contact/q4_material_checkpoint.py +276 -0
- anyfesolver/general_contact/q4_overlap_local_bound.py +1111 -0
- anyfesolver/general_contact/q4_q4_overlap_derivatives.py +234 -0
- anyfesolver/general_contact/q4_q4_swept_bound.py +58 -0
- anyfesolver/general_contact/q4_s3_overlap_derivatives.py +1159 -0
- anyfesolver/general_contact/q4_s3_tiny_wedge.py +180 -0
- anyfesolver/general_contact/q4_skin_work.py +87 -0
- anyfesolver/general_contact/q4_source_mortar_energy.py +181 -0
- anyfesolver/general_contact/q4_source_overlap.py +401 -0
- anyfesolver/general_contact/q4_target_overlap.py +181 -0
- anyfesolver/general_contact/request_identity.py +192 -0
- anyfesolver/general_contact/rigid_translation.py +199 -0
- anyfesolver/general_contact/runtime.py +27 -0
- anyfesolver/general_contact/s3_friction_chart_interval.py +104 -0
- anyfesolver/general_contact/s3_friction_coverage.py +165 -0
- anyfesolver/general_contact/s3_friction_dyadic_interval.py +39 -0
- anyfesolver/general_contact/s3_friction_history_path.py +111 -0
- anyfesolver/general_contact/s3_friction_mesh_coverage.py +145 -0
- anyfesolver/general_contact/s3_friction_mesh_gap.py +74 -0
- anyfesolver/general_contact/s3_friction_mesh_monolithic.py +150 -0
- anyfesolver/general_contact/s3_friction_monolithic.py +121 -0
- anyfesolver/general_contact/s3_friction_moving_coverage.py +114 -0
- anyfesolver/general_contact/s3_friction_pair.py +237 -0
- anyfesolver/general_contact/s3_friction_point.py +129 -0
- anyfesolver/general_contact/s3_friction_prepared_path.py +254 -0
- anyfesolver/general_contact/s3_friction_replay.py +1094 -0
- anyfesolver/general_contact/s3_friction_rim_path.py +69 -0
- anyfesolver/general_contact/s3_friction_rim_transaction.py +23 -0
- anyfesolver/general_contact/s3_friction_static.py +267 -0
- anyfesolver/general_contact/s3_friction_swept_gap.py +112 -0
- anyfesolver/general_contact/s3_friction_touch.py +94 -0
- anyfesolver/general_contact/s3_friction_weak_pressure.py +66 -0
- anyfesolver/general_contact/s3_overlap_derivatives.py +220 -0
- anyfesolver/general_contact/s3_overlap_hermite_gap.py +180 -0
- anyfesolver/general_contact/s3_pair_static.py +343 -0
- anyfesolver/general_contact/s3_patch_augmented.py +2056 -0
- anyfesolver/general_contact/s3_patch_mortar_energy.py +545 -0
- anyfesolver/general_contact/s3_patch_static.py +1725 -0
- anyfesolver/general_contact/s3_pressure_hermite_bounds.py +395 -0
- anyfesolver/general_contact/s3_pressure_polygon_bounds.py +73 -0
- anyfesolver/general_contact/s3_q4_gap_resolution.py +191 -0
- anyfesolver/general_contact/s3_q4_overlap_derivatives.py +252 -0
- anyfesolver/general_contact/s3_q4_swept.py +56 -0
- anyfesolver/general_contact/s3_skin_work.py +101 -0
- anyfesolver/general_contact/s3_sliding_friction.py +640 -0
- anyfesolver/general_contact/s3_stable_plane_gap.py +43 -0
- anyfesolver/general_contact/seed_path_vertex_interval.py +323 -0
- anyfesolver/general_contact/semismooth.py +133 -0
- anyfesolver/general_contact/semismooth_block.py +147 -0
- anyfesolver/general_contact/semismooth_path.py +871 -0
- anyfesolver/general_contact/shell_pair_hermite_sweep.py +336 -0
- anyfesolver/general_contact/shell_sphere_temporal_bounds.py +305 -0
- anyfesolver/general_contact/skin_geometry.py +106 -0
- anyfesolver/general_contact/sliding.py +349 -0
- anyfesolver/general_contact/sphere.py +691 -0
- anyfesolver/general_contact/sphere_temporal_bounds.py +241 -0
- anyfesolver/general_contact/static_path.py +2608 -0
- anyfesolver/general_contact/static_results_archive.py +140 -0
- anyfesolver/general_contact/structural_state_bridge.py +196 -0
- anyfesolver/general_contact/supported_schur.py +594 -0
- anyfesolver/general_contact/swept_patch_broadphase.py +160 -0
- anyfesolver/general_contact/transient.py +2921 -0
- anyfesolver/general_contact/transient_results_archive.py +491 -0
- anyfesolver/general_contact/triangle_mortar_energy.py +280 -0
- anyfesolver/general_contact/triangle_pair_energy.py +211 -0
- anyfesolver/general_contact/triangulated_rigid.py +94 -0
- anyfesolver/general_contact/triangulated_rigid_static.py +399 -0
- anyfesolver/general_contact/warped_q4_plane.py +185 -0
- anyfesolver/general_contact/warped_q4_skin.py +302 -0
- anyfesolver/general_contact/warped_q4_static.py +331 -0
- anyfesolver/impact_performance.py +273 -0
- anyfesolver/impact_reduced_assembly.py +294 -0
- anyfesolver/imperfections.py +397 -0
- anyfesolver/inertia_relief.py +676 -0
- anyfesolver/initial_field_state.py +54 -0
- anyfesolver/jit_compiler.py +135 -0
- anyfesolver/kernel_warmup.py +228 -0
- anyfesolver/linalg.py +1002 -0
- anyfesolver/marine_contributions.py +634 -0
- anyfesolver/marine_coupled_equilibrium.py +292 -0
- anyfesolver/marine_equilibrium.py +405 -0
- anyfesolver/marine_hydro_coordinates.py +346 -0
- anyfesolver/marine_linear.py +549 -0
- anyfesolver/marine_link.py +306 -0
- anyfesolver/marine_mechanical.py +923 -0
- anyfesolver/marine_mooring.py +533 -0
- anyfesolver/marine_morison.py +331 -0
- anyfesolver/marine_potential_flow.py +403 -0
- anyfesolver/marine_rigid.py +397 -0
- anyfesolver/marine_seabed.py +122 -0
- anyfesolver/mass_properties.py +352 -0
- anyfesolver/material_curves.py +52 -0
- anyfesolver/materials.py +43 -0
- anyfesolver/matrix_assembly.py +7330 -0
- anyfesolver/mesh_gen.py +904 -0
- anyfesolver/mesh_load_bc_verification.py +612 -0
- anyfesolver/modal.py +2494 -0
- anyfesolver/nonlinear.py +341 -0
- anyfesolver/nonlinear_analysis_diagnostics.py +466 -0
- anyfesolver/nonlinear_element_evaluation.py +126 -0
- anyfesolver/nonlinear_performance.py +2094 -0
- anyfesolver/nonlinear_performance_batch_b.py +1173 -0
- anyfesolver/nonlinear_performance_batch_c.py +850 -0
- anyfesolver/nonlinear_performance_bootstrap.py +164 -0
- anyfesolver/nonlinear_reduced_assembly.py +806 -0
- anyfesolver/nonlinear_restart.py +1708 -0
- anyfesolver/nonlinear_state.py +2800 -0
- anyfesolver/nonlinear_static.py +9407 -0
- anyfesolver/outcomes.py +694 -0
- anyfesolver/plasticity.py +2087 -0
- anyfesolver/plasticity_qualification.py +758 -0
- anyfesolver/prepared_static.py +1129 -0
- anyfesolver/prepared_static_envelopes.py +389 -0
- anyfesolver/prepared_static_loads.py +1180 -0
- anyfesolver/prepared_static_measures.py +18 -0
- anyfesolver/prepared_static_numeric.py +247 -0
- anyfesolver/prepared_static_q4.py +297 -0
- anyfesolver/prepared_static_recovery.py +2068 -0
- anyfesolver/prepared_static_response.py +1013 -0
- anyfesolver/prepared_static_shared.py +226 -0
- anyfesolver/prepared_static_snapshot.py +323 -0
- anyfesolver/prepared_static_vectorized.py +866 -0
- anyfesolver/pressure_regions.py +287 -0
- anyfesolver/production_readiness.py +343 -0
- anyfesolver/quality_control.py +1487 -0
- anyfesolver/quantities.py +1289 -0
- anyfesolver/recovery.py +4217 -0
- anyfesolver/recovery_batches.py +1985 -0
- anyfesolver/recovery_policy.py +205 -0
- anyfesolver/recovery_s4.py +289 -0
- anyfesolver/recovery_shell_frames.py +102 -0
- anyfesolver/reference_cases.py +366 -0
- anyfesolver/result_capsule.py +2175 -0
- anyfesolver/results.py +752 -0
- anyfesolver/runtime.py +9819 -0
- anyfesolver/s3_reference_batch.py +1338 -0
- anyfesolver/s3_v2c_fast_assembly.py +544 -0
- anyfesolver/s3_v2d_fast_assembly.py +447 -0
- anyfesolver/s4_validity.py +354 -0
- anyfesolver/sections.py +67 -0
- anyfesolver/sesam_fem/__init__.py +55 -0
- anyfesolver/sesam_fem/__main__.py +80 -0
- anyfesolver/sesam_fem/diagnostics.py +5 -0
- anyfesolver/sesam_fem/document.py +39 -0
- anyfesolver/sesam_fem/exporter.py +9 -0
- anyfesolver/sesam_fem/importer.py +228 -0
- anyfesolver/sesam_fem/records.py +21 -0
- anyfesolver/sesam_fem/schema.py +35 -0
- anyfesolver/sesam_fem/sif_importer.py +9 -0
- anyfesolver/sesam_fem/validation.py +5 -0
- anyfesolver/sestra_deep_diagnostics.py +173 -0
- anyfesolver/sestra_mixed_verification.py +146 -0
- anyfesolver/sestra_structure_benchmarks.py +270 -0
- anyfesolver/sestra_three_case.py +215 -0
- anyfesolver/sestra_verification.py +523 -0
- anyfesolver/shell_benchmarks.py +367 -0
- anyfesolver/shell_formulations/director_field.py +799 -0
- anyfesolver/shell_formulations/geometry_provenance.py +921 -0
- anyfesolver/shell_formulations/mitc4_plus_d_quality.py +318 -0
- anyfesolver/shell_formulations/mitc4_plus_d_reference.py +837 -0
- anyfesolver/shell_formulations/mitc4_plus_d_scalar.py +209 -0
- anyfesolver/shell_formulations/protocol.py +222 -0
- anyfesolver/shell_formulations/q4_common.py +271 -0
- anyfesolver/shell_formulations/s4_restricted_policy.py +78 -0
- anyfesolver/shell_sections.py +394 -0
- anyfesolver/solid_submodel.py +930 -0
- anyfesolver/static_batch.py +662 -0
- anyfesolver/static_envelopes.py +250 -0
- anyfesolver/stiffened_shell.py +388 -0
- anyfesolver/submodel_transfer.py +1306 -0
- anyfesolver/test_cases.py +610 -0
- anyfesolver/threading_policy.py +431 -0
- anyfesolver/validation.py +719 -0
- anyfesolver/vectorized_beam.py +139 -0
- anyfesolver/vectorized_generalized_shell.py +448 -0
- anyfesolver/vectorized_hill48.py +956 -0
- anyfesolver/vectorized_nonlinear.py +360 -0
- anyfesolver/vectorized_stiffness.py +694 -0
- anyfesolver-0.5.0a1.dist-info/METADATA +374 -0
- anyfesolver-0.5.0a1.dist-info/RECORD +751 -0
- anyfesolver-0.5.0a1.dist-info/WHEEL +5 -0
- anyfesolver-0.5.0a1.dist-info/licenses/COPYRIGHT +1 -0
- anyfesolver-0.5.0a1.dist-info/licenses/LICENSE +373 -0
- anyfesolver-0.5.0a1.dist-info/licenses/THIRD_PARTY_NOTICES.md +32 -0
- anyfesolver-0.5.0a1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"""Private conservative shell pullback for the GE-B3 connection successor.
|
|
2
|
+
|
|
3
|
+
Unchanged local Q4/S3 operators supply forces, material history and tangent.
|
|
4
|
+
The new connection policy differentiates the COMPLETE deformational map, not
|
|
5
|
+
just its rigid rotation. It neither replaces the existing corotational route
|
|
6
|
+
nor grants production qualification. See GE_BEAM3_VARIATIONAL_SHELL_MAP.md.
|
|
7
|
+
"""
|
|
8
|
+
import numpy as np
|
|
9
|
+
|
|
10
|
+
from ._ge_beam3_mixed_ad import Jet2, constant_matrix, matmul, matvec, transpose, so3_exp, so3_log
|
|
11
|
+
from ._ge_beam3_pose_joint import _exp_terms
|
|
12
|
+
|
|
13
|
+
POLICY = 'GE_BEAM3_PROCRUSTES_VARIATIONAL_SHELL_PULLBACK_V2'
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _davenport(c):
|
|
17
|
+
trace = np.trace(c)
|
|
18
|
+
z = np.array([c[2, 1]-c[1, 2], c[0, 2]-c[2, 0], c[1, 0]-c[0, 1]])
|
|
19
|
+
return np.block([[np.array([[trace]]), z[None, :]],
|
|
20
|
+
[z[:, None], c+c.T-trace*np.eye(3)]])
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _quaternion_jets(reference, current, *, displacement=None):
|
|
24
|
+
"""Equal nodal-weight proper Procrustes fit and analytic two derivatives.
|
|
25
|
+
|
|
26
|
+
Centered vectors retain their lengths (no unit-vector normalization). The
|
|
27
|
+
normalized largest quaternion eigenpair is differentiated implicitly. Only
|
|
28
|
+
the top eigenvalue must be simple; repeated lower eigenvalues are harmless.
|
|
29
|
+
"""
|
|
30
|
+
ref = np.asarray(reference, dtype=float)
|
|
31
|
+
x = np.asarray(current if displacement is None else displacement, dtype=float)
|
|
32
|
+
if (ref.ndim != 2 or ref.shape[1:] != (3,) or len(ref) not in (3, 4)
|
|
33
|
+
or x.shape != ref.shape or not np.isfinite(ref).all() or not np.isfinite(x).all()):
|
|
34
|
+
raise ValueError('finite three/four-node shell fit required')
|
|
35
|
+
ref = ref-ref.mean(axis=0)
|
|
36
|
+
x = x-x.mean(axis=0)
|
|
37
|
+
n = 6*len(ref)
|
|
38
|
+
# Constant reference scaling improves eigenspace conditioning without
|
|
39
|
+
# introducing a displacement-dependent coefficient into differentiation.
|
|
40
|
+
scale = np.linalg.norm(ref)
|
|
41
|
+
if not np.isfinite(scale) or scale == 0.:
|
|
42
|
+
raise ValueError('degenerate reference shell fit')
|
|
43
|
+
ref = ref/scale
|
|
44
|
+
if displacement is None:
|
|
45
|
+
matrix = _davenport((x/scale).T@ref)
|
|
46
|
+
else:
|
|
47
|
+
# Algebraically the same centered covariance, without forming ref+u.
|
|
48
|
+
# Build the linear Davenport contributions separately: subtracting
|
|
49
|
+
# O(1) covariance entries would erase tiny antisymmetric increments.
|
|
50
|
+
matrix = _davenport(ref.T@ref)+_davenport((x/scale).T@ref)
|
|
51
|
+
eigenvalues, vectors = np.linalg.eigh(matrix)
|
|
52
|
+
gap = eigenvalues[-1]-eigenvalues[-2]
|
|
53
|
+
if not gap > 1e-11*max(np.finfo(float).tiny, np.max(np.abs(eigenvalues))):
|
|
54
|
+
raise ValueError('nonunique proper shell fit; refine or cut back')
|
|
55
|
+
q = vectors[:, -1]
|
|
56
|
+
if displacement is None:
|
|
57
|
+
inverse = (vectors[:, :-1]/(eigenvalues[-1]-eigenvalues[:-1]))@vectors[:, :-1].T
|
|
58
|
+
else:
|
|
59
|
+
# Recover small quaternion components from the preserved covariance
|
|
60
|
+
# increment. An eigensolver guarantees absolute eigenvector accuracy,
|
|
61
|
+
# which can swamp a tiny physical rotation. The largest-component
|
|
62
|
+
# chart avoids division by a small quaternion component.
|
|
63
|
+
pivot = int(np.argmax(np.abs(q)))
|
|
64
|
+
rest = np.array([i for i in range(4) if i != pivot])
|
|
65
|
+
refined = np.zeros(4)
|
|
66
|
+
refined[pivot] = 1.
|
|
67
|
+
refined[rest] = np.linalg.solve(
|
|
68
|
+
eigenvalues[-1]*np.eye(3)-matrix[np.ix_(rest, rest)],
|
|
69
|
+
matrix[rest, pivot])
|
|
70
|
+
refined /= np.linalg.norm(refined)
|
|
71
|
+
q = refined if q[pivot] >= 0. else -refined
|
|
72
|
+
# Differentiate on THIS quaternion's orthogonal complement. Reusing
|
|
73
|
+
# the old lower eigenvectors would break the normalization identities.
|
|
74
|
+
eigenvalue = float(q@matrix@q)
|
|
75
|
+
bordered = np.block([[eigenvalue*np.eye(4)-matrix, q[:, None]],
|
|
76
|
+
[q[None, :], np.zeros((1, 1))]])
|
|
77
|
+
inverse = np.linalg.solve(bordered, np.vstack((np.eye(4), np.zeros((1, 4)))))[:4]
|
|
78
|
+
derivatives = np.zeros((n, 4, 4))
|
|
79
|
+
derivative_reference = ref if displacement is None else ref-ref.mean(axis=0)
|
|
80
|
+
for node, r in enumerate(derivative_reference):
|
|
81
|
+
for axis in range(3):
|
|
82
|
+
dc = np.zeros((3, 3)); dc[axis] = r/scale
|
|
83
|
+
derivatives[6*node+axis] = _davenport(dc)
|
|
84
|
+
dq = np.einsum('ab,jbc,c->aj', inverse, derivatives, q)
|
|
85
|
+
dl = np.einsum('a,jab,b->j', q, derivatives, q)
|
|
86
|
+
reduced = derivatives-dl[:, None, None]*np.eye(4)
|
|
87
|
+
rhs = np.einsum('jab,bk->ajk', reduced, dq)
|
|
88
|
+
ddq = np.einsum('ab,bjk->ajk', inverse, rhs+rhs.transpose(0, 2, 1))
|
|
89
|
+
ddq -= q[:, None, None]*(dq.T@dq)[None, :, :]
|
|
90
|
+
return [Jet2(q[i], dq[i], ddq[i]) for i in range(4)]
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def rotation_jets(reference, current):
|
|
94
|
+
"""Proper Procrustes rotation with the historical two-argument contract."""
|
|
95
|
+
w, a, b, d = _quaternion_jets(reference, current)
|
|
96
|
+
return [[w*w+a*a-b*b-d*d, 2*(a*b-w*d), 2*(a*d+w*b)],
|
|
97
|
+
[2*(a*b+w*d), w*w-a*a+b*b-d*d, 2*(b*d-w*a)],
|
|
98
|
+
[2*(a*d-w*b), 2*(b*d+w*a), w*w-a*a-b*b+d*d]]
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def deformation(reference, displacement, *, stable_translation=False, rotation_anchors=None,
|
|
102
|
+
stable_rotation=False):
|
|
103
|
+
"""Value, differential and Hessian of all corotated nodal coordinates."""
|
|
104
|
+
ref = np.asarray(reference, dtype=float)
|
|
105
|
+
u = np.asarray(displacement, dtype=float)
|
|
106
|
+
if type(stable_rotation) is not bool:
|
|
107
|
+
raise ValueError('typed shell rotation numerical selection required')
|
|
108
|
+
exponential, logarithm = so3_exp, so3_log
|
|
109
|
+
if stable_rotation:
|
|
110
|
+
from ._ge_beam3_g3c_so3_numerics import so3_exp as exponential, so3_log as logarithm
|
|
111
|
+
if u.shape != (6*len(ref),) or not np.isfinite(u).all():
|
|
112
|
+
raise ValueError('finite complete shell coordinates required')
|
|
113
|
+
n = len(u)
|
|
114
|
+
if rotation_anchors is not None:
|
|
115
|
+
from ._stiffened_shell_rotation_charts import owned_anchors
|
|
116
|
+
rotation_anchors = owned_anchors(rotation_anchors, len(ref))
|
|
117
|
+
if stable_translation:
|
|
118
|
+
w, a, b, d = _quaternion_jets(
|
|
119
|
+
ref, None, displacement=u.reshape(-1, 6)[:, :3])
|
|
120
|
+
# Unit-quaternion R-I, including its full two derivatives. Avoid
|
|
121
|
+
# subtracting one from a near-unit diagonal after rotation evaluation.
|
|
122
|
+
increment = [[-2*(b*b+d*d), 2*(a*b-w*d), 2*(a*d+w*b)],
|
|
123
|
+
[2*(a*b+w*d), -2*(a*a+d*d), 2*(b*d-w*a)],
|
|
124
|
+
[2*(a*d-w*b), 2*(b*d+w*a), -2*(a*a+b*b)]]
|
|
125
|
+
rotation = [[increment[i][j]+float(i == j) for j in range(3)]
|
|
126
|
+
for i in range(3)]
|
|
127
|
+
else:
|
|
128
|
+
current = ref+u.reshape(-1, 6)[:, :3]
|
|
129
|
+
rotation = rotation_jets(ref, current)
|
|
130
|
+
rt = transpose(rotation)
|
|
131
|
+
jets = [[Jet2.variable(u[6*i+j], 6*i+j, n) for j in range(6)] for i in range(len(ref))]
|
|
132
|
+
x = [[jets[i][j]+(0. if stable_translation else ref[i, j])
|
|
133
|
+
for j in range(3)] for i in range(len(ref))]
|
|
134
|
+
centre = [sum(row[j] for row in x)/len(x) for j in range(3)]
|
|
135
|
+
refc = ref-ref.mean(axis=0)
|
|
136
|
+
values = []
|
|
137
|
+
for i in range(len(ref)):
|
|
138
|
+
local = matvec(rt, [x[i][j]-centre[j] for j in range(3)])
|
|
139
|
+
if stable_translation:
|
|
140
|
+
rotated_reference = [sum(increment[k][j]*refc[i, k]
|
|
141
|
+
for k in range(3)) for j in range(3)]
|
|
142
|
+
values.extend(local[j]+rotated_reference[j] for j in range(3))
|
|
143
|
+
else:
|
|
144
|
+
values.extend(local[j]-refc[i, j] for j in range(3))
|
|
145
|
+
physical = exponential(jets[i][3:])
|
|
146
|
+
if rotation_anchors is not None:
|
|
147
|
+
physical = matmul(physical, constant_matrix(rotation_anchors[i], n))
|
|
148
|
+
values.extend(logarithm(matmul(rt, physical)))
|
|
149
|
+
return (np.array([v.value for v in values]),
|
|
150
|
+
np.array([v.gradient for v in values]),
|
|
151
|
+
np.array([v.hessian for v in values]))
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def response(model, element, displacement, origin, layers, *, split=False,
|
|
155
|
+
rotation_anchors=None, stable_translation=False):
|
|
156
|
+
"""Spatial wrench rows, additive columns, and unchanged local trial state.
|
|
157
|
+
|
|
158
|
+
g=D.T f; H=D.T K D + sum(f_i Hess(d_i)). Spatial rows then follow
|
|
159
|
+
P.T r=g and P.T J=H-dP.T r. No post-hoc symmetrization is performed.
|
|
160
|
+
"""
|
|
161
|
+
if type(stable_translation) is not bool:
|
|
162
|
+
raise ValueError('explicit shell translation arithmetic policy required')
|
|
163
|
+
ref = np.array([model.mesh.nodes[i].coords() for i in element.node_ids])
|
|
164
|
+
u = np.asarray(displacement, dtype=float)
|
|
165
|
+
local, differential, second = deformation(ref, u, rotation_anchors=rotation_anchors,
|
|
166
|
+
stable_translation=stable_translation)
|
|
167
|
+
material = model.get_material(element.material_name)
|
|
168
|
+
# This successor currently owns virgin elastic shells only. Do not imply
|
|
169
|
+
# a conservative potential for active plastic/unsupported section states.
|
|
170
|
+
if material.yield_stress != 0. or material.hardening_curve is not None or element.shell_section is not None:
|
|
171
|
+
raise ValueError('variational shell successor requires its owned elastic section')
|
|
172
|
+
if split and element.num_nodes == 4:
|
|
173
|
+
f, k, candidate, components = element.compute_nonlinear_response(model.mesh, material,
|
|
174
|
+
local, origin, layers, True, _return_tangent_components=True)
|
|
175
|
+
km, kg = components['material'], components['geometric']
|
|
176
|
+
else:
|
|
177
|
+
f, k, candidate = element.compute_nonlinear_response(model.mesh, material,
|
|
178
|
+
local, origin, layers, True)
|
|
179
|
+
# The admitted elastic S3 V2D local strains are linear in local_u.
|
|
180
|
+
# Its finite geometric variation belongs entirely to this pullback.
|
|
181
|
+
km, kg = k, np.zeros_like(k)
|
|
182
|
+
f, k = np.asarray(f), np.asarray(k)
|
|
183
|
+
if not np.isfinite(f).all() or not np.isfinite(k).all():
|
|
184
|
+
raise ValueError('nonfinite local shell response')
|
|
185
|
+
if np.linalg.norm(k-k.T) > 1e-11*max(1., np.linalg.norm(k)):
|
|
186
|
+
raise ValueError('nonconservative local shell tangent')
|
|
187
|
+
g = differential.T@f
|
|
188
|
+
h = differential.T@k@differential+np.einsum('i,ijk->jk', f, second)
|
|
189
|
+
p = np.eye(len(u)); blocks = []
|
|
190
|
+
for node, row in enumerate(u.reshape(-1, 6)):
|
|
191
|
+
_, a, da = _exp_terms(row[3:])
|
|
192
|
+
singular = np.linalg.svd(a, compute_uv=False)
|
|
193
|
+
if singular[-1] <= 1e-11*max(1., singular[0]):
|
|
194
|
+
raise ValueError('singular additive shell chart; owner rebase required')
|
|
195
|
+
s = slice(6*node+3, 6*node+6)
|
|
196
|
+
p[s, s] = a; blocks.append((s, da))
|
|
197
|
+
residual = np.linalg.solve(p.T, g)
|
|
198
|
+
correction = np.zeros_like(h)
|
|
199
|
+
for s, da in blocks:
|
|
200
|
+
correction[s, s] = np.einsum('ijk,i->jk', da, residual[s])
|
|
201
|
+
tangent = np.linalg.solve(p.T, h-correction)
|
|
202
|
+
if split:
|
|
203
|
+
inverse = np.linalg.solve(p, np.eye(len(u)))
|
|
204
|
+
b = differential@inverse
|
|
205
|
+
material = b.T@km@b
|
|
206
|
+
geometric = np.linalg.solve(p.T, differential.T@kg@differential
|
|
207
|
+
+np.einsum('i,ijk->jk', f, second)-correction)@inverse
|
|
208
|
+
if np.linalg.norm(material+geometric-tangent@inverse) > 1e-11*max(1., np.linalg.norm(tangent@inverse)):
|
|
209
|
+
raise ValueError('shell variational material/geometric split mismatch')
|
|
210
|
+
return residual, tangent, candidate, material, geometric
|
|
211
|
+
return residual, tangent, candidate
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""Private V4 virgin-reference modal adapter; never a prestress fallback."""
|
|
2
|
+
|
|
3
|
+
from copy import deepcopy
|
|
4
|
+
|
|
5
|
+
import numpy as np
|
|
6
|
+
|
|
7
|
+
from ._ge_beam3_loaded_modal import prepare
|
|
8
|
+
from ._ge_beam3_p5_loads import NativeP5BeamElement
|
|
9
|
+
from ._ge_beam3_p5_loads.core import canonical
|
|
10
|
+
from ._ge_beam3_p5_centered.mass import reference_kinetic_factors
|
|
11
|
+
from ._native_reference_factor_spectrum import solve_reference_factor_spectrum
|
|
12
|
+
from .control import cancellation_safe_point
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def solve_virgin_reference_modes(model, element_states, displacement, section_inertias, *,
|
|
16
|
+
num_modes=6, cancellation_token=None):
|
|
17
|
+
"""Require exact fresh native states and zero displacement before factors.
|
|
18
|
+
|
|
19
|
+
The preserved loaded-state capture validates model/section ownership,
|
|
20
|
+
complete six-DOF maps, reference pose and homogeneous supports. Its dense
|
|
21
|
+
matrix is checked for consistency, but NOT used for the eigenproblem.
|
|
22
|
+
Explicitly rejects loaded, rotated, history-bearing or post-commit states;
|
|
23
|
+
no hidden fallback from a failed signed/prestressed solve is installed.
|
|
24
|
+
"""
|
|
25
|
+
cancellation_safe_point(cancellation_token, 'virgin_reference_modes.start')
|
|
26
|
+
total = np.array(displacement, dtype=float, copy=True)
|
|
27
|
+
if total.shape != (model.mesh.dof_manager.total_dofs,) or not np.isfinite(total).all() or np.any(total):
|
|
28
|
+
raise ValueError('exact zero virgin-reference displacement required')
|
|
29
|
+
elements = tuple(sorted(model.mesh.elements.items()))
|
|
30
|
+
if not elements or total.size+6*len(elements) > 256:
|
|
31
|
+
raise ValueError('bounded virgin-reference model required before mechanics')
|
|
32
|
+
if type(element_states) is not dict or set(element_states) != {eid for eid, _ in elements}:
|
|
33
|
+
raise ValueError('complete virgin state map required')
|
|
34
|
+
states, inertias = deepcopy(element_states), deepcopy(section_inertias)
|
|
35
|
+
for eid, element in elements:
|
|
36
|
+
if type(element) is not NativeP5BeamElement:
|
|
37
|
+
raise ValueError('exact native V4 reference elements required')
|
|
38
|
+
fresh = element.init_model_bound_nonlinear_state(model.mesh, element.core.section, 1)
|
|
39
|
+
if canonical(states[eid]) != canonical(fresh):
|
|
40
|
+
raise ValueError('exact fresh virgin state required; no prestress/history fallback')
|
|
41
|
+
packet, guard = prepare(model, states, total, inertias, load_parameter=0.,
|
|
42
|
+
cancellation_token=cancellation_token)
|
|
43
|
+
elastic_rows, kinetic_rows = [], []
|
|
44
|
+
for eid, internal in packet.internal_layout:
|
|
45
|
+
guard(); element = model.mesh.elements[eid]
|
|
46
|
+
factor = reference_kinetic_factors(element.core.reference, element.core.section._elastic,
|
|
47
|
+
inertias[eid], order=element.core.order)
|
|
48
|
+
slots = tuple(int(i) for i in element.get_dof_mapping(model.mesh))+internal
|
|
49
|
+
for local, rows in ((factor.uncondensed_stiffness_factor, elastic_rows), (factor.full, kinetic_rows)):
|
|
50
|
+
full = np.zeros((local.shape[0], len(packet.mass)))
|
|
51
|
+
full[:, slots] = local; rows.append(full)
|
|
52
|
+
elastic, kinetic = np.vstack(elastic_rows), np.vstack(kinetic_rows)
|
|
53
|
+
for made, saved in ((elastic.T@elastic, packet.stiffness), (kinetic.T@kinetic, packet.mass)):
|
|
54
|
+
if np.linalg.norm(made-saved) > 1e-11*max(1., np.linalg.norm(saved)):
|
|
55
|
+
raise ValueError('virgin factors disagree with native reference operator')
|
|
56
|
+
guard()
|
|
57
|
+
modes = solve_reference_factor_spectrum(elastic, kinetic, packet.free_dofs, packet.algebraic_dofs,
|
|
58
|
+
num_modes=num_modes, cancellation_token=cancellation_token)
|
|
59
|
+
guard()
|
|
60
|
+
return packet, modes
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"""Small multisecant accelerator for the coupled impact iteration (not physics)."""
|
|
2
|
+
import numpy as np
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ImpactCoupledIteration:
|
|
6
|
+
"""Anderson type-II update of displacement fixed-point residuals.
|
|
7
|
+
|
|
8
|
+
All returned coordinates must be re-evaluated by the physical contact law.
|
|
9
|
+
History is local to one substep; no material state is stored here.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, depth=4):
|
|
13
|
+
self.depth = depth
|
|
14
|
+
self.x = []
|
|
15
|
+
self.f = []
|
|
16
|
+
self.signatures = []
|
|
17
|
+
self.mode_origin = None
|
|
18
|
+
self.mode_direction = None
|
|
19
|
+
self.mode_bracket = {}
|
|
20
|
+
self.globalization_count = 0
|
|
21
|
+
|
|
22
|
+
def update(self, current, mapped, *, signature=None):
|
|
23
|
+
x = np.asarray(current, dtype=float)
|
|
24
|
+
f = np.asarray(mapped, dtype=float) - x
|
|
25
|
+
# Contact is a piecewise map. Keep one bridge sample at a branch
|
|
26
|
+
# crossing, but remove that bridge after two samples on the new branch
|
|
27
|
+
# establish its own secant. A window mixing stale open/closed slopes
|
|
28
|
+
# otherwise models neither branch and can crawl near first contact.
|
|
29
|
+
if signature is not None and self.signatures and self._on_scalar_line(x, f):
|
|
30
|
+
if signature != self.signatures[-1]:
|
|
31
|
+
self.x = self.x[-1:]
|
|
32
|
+
self.f = self.f[-1:]
|
|
33
|
+
self.signatures = self.signatures[-1:]
|
|
34
|
+
else:
|
|
35
|
+
start = len(self.signatures) - 1
|
|
36
|
+
while start > 0 and self.signatures[start - 1] == signature:
|
|
37
|
+
start -= 1
|
|
38
|
+
self.x = self.x[start:]
|
|
39
|
+
self.f = self.f[start:]
|
|
40
|
+
self.signatures = self.signatures[start:]
|
|
41
|
+
self.signatures.append(signature)
|
|
42
|
+
self.signatures = self.signatures[-self.depth - 1:]
|
|
43
|
+
self.x.append(x.copy())
|
|
44
|
+
self.f.append(f.copy())
|
|
45
|
+
self.x = self.x[-self.depth - 1:]
|
|
46
|
+
self.f = self.f[-self.depth - 1:]
|
|
47
|
+
if len(self.x) < 2:
|
|
48
|
+
return self._globalize(x, f, np.asarray(mapped, dtype=float).copy())
|
|
49
|
+
dx = np.column_stack([b-a for a,b in zip(self.x[:-1], self.x[1:])])
|
|
50
|
+
df = np.column_stack([b-a for a,b in zip(self.f[:-1], self.f[1:])])
|
|
51
|
+
try:
|
|
52
|
+
weights = np.linalg.lstsq(df, f, rcond=1.e-10)[0]
|
|
53
|
+
except np.linalg.LinAlgError:
|
|
54
|
+
return self._globalize(x, f, np.asarray(mapped, dtype=float).copy())
|
|
55
|
+
# Reject ill-conditioned extrapolations, never clip physical forces.
|
|
56
|
+
if not np.all(np.isfinite(weights)) or np.linalg.norm(weights, 1) > 10.:
|
|
57
|
+
self.x = self.x[-1:]
|
|
58
|
+
self.f = self.f[-1:]
|
|
59
|
+
self.signatures = self.signatures[-1:]
|
|
60
|
+
return self._globalize(x, f, np.asarray(mapped, dtype=float).copy())
|
|
61
|
+
with np.errstate(over="ignore", invalid="ignore"):
|
|
62
|
+
candidate = np.asarray(mapped, dtype=float) - (dx + df) @ weights
|
|
63
|
+
if not np.all(np.isfinite(candidate)):
|
|
64
|
+
self.x = self.x[-1:]
|
|
65
|
+
self.f = self.f[-1:]
|
|
66
|
+
self.signatures = self.signatures[-1:]
|
|
67
|
+
return self._globalize(x, f, np.asarray(mapped, dtype=float).copy())
|
|
68
|
+
return self._globalize(x, f, candidate)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _globalize(self, x, f, proposal):
|
|
72
|
+
"""Safeguard a detected scalar mode with its *raw* residual bracket.
|
|
73
|
+
|
|
74
|
+
Opposite vector residuals alone do not bracket a vector root. Use this
|
|
75
|
+
only while both coordinates and residuals lie on one numerical line;
|
|
76
|
+
otherwise forget the bracket and retain the general Anderson proposal.
|
|
77
|
+
The middle-half rule is a bisection safeguard, not force relaxation.
|
|
78
|
+
"""
|
|
79
|
+
with np.errstate(over="ignore", invalid="ignore"):
|
|
80
|
+
norm = float(np.linalg.norm(f))
|
|
81
|
+
if norm == 0.:
|
|
82
|
+
return x.copy()
|
|
83
|
+
if not np.isfinite(norm):
|
|
84
|
+
self.mode_bracket = {}
|
|
85
|
+
return proposal
|
|
86
|
+
if self.mode_direction is None:
|
|
87
|
+
self.mode_origin = x.copy()
|
|
88
|
+
self.mode_direction = f / norm
|
|
89
|
+
direction = self.mode_direction
|
|
90
|
+
offset = x - self.mode_origin
|
|
91
|
+
coordinate = float(np.dot(offset, direction))
|
|
92
|
+
residual = float(np.dot(f, direction))
|
|
93
|
+
if not self._on_scalar_line(x, f):
|
|
94
|
+
self.mode_origin = x.copy()
|
|
95
|
+
self.mode_direction = f / norm
|
|
96
|
+
self.mode_bracket = {}
|
|
97
|
+
return proposal
|
|
98
|
+
sign = 1 if residual > 0. else -1
|
|
99
|
+
self.mode_bracket[sign] = (coordinate, x.copy())
|
|
100
|
+
if len(self.mode_bracket) != 2:
|
|
101
|
+
return proposal
|
|
102
|
+
endpoints = sorted(self.mode_bracket.values(), key=lambda item: item[0])
|
|
103
|
+
low, high = endpoints[0][0], endpoints[1][0]
|
|
104
|
+
width = high - low
|
|
105
|
+
if not np.isfinite(width) or width <= 0.:
|
|
106
|
+
self.mode_bracket = {}
|
|
107
|
+
return proposal
|
|
108
|
+
proposal_offset = proposal - self.mode_origin
|
|
109
|
+
projected = float(np.dot(proposal_offset, direction))
|
|
110
|
+
if (np.linalg.norm(proposal_offset - projected * direction)
|
|
111
|
+
> self._coordinate_roundoff(proposal, proposal_offset)):
|
|
112
|
+
self.mode_bracket = {}
|
|
113
|
+
return proposal
|
|
114
|
+
if not (low + .25 * width <= projected <= high - .25 * width):
|
|
115
|
+
self.globalization_count += 1
|
|
116
|
+
return .5 * endpoints[0][1] + .5 * endpoints[1][1]
|
|
117
|
+
return proposal
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def _coordinate_roundoff(self, x, offset):
|
|
121
|
+
eps = np.finfo(float).eps
|
|
122
|
+
return (np.sqrt(eps) * float(np.linalg.norm(offset))
|
|
123
|
+
+ eps * (float(np.linalg.norm(x)) + float(np.linalg.norm(self.mode_origin))))
|
|
124
|
+
|
|
125
|
+
def _on_scalar_line(self, x, f):
|
|
126
|
+
if self.mode_direction is None:
|
|
127
|
+
return False
|
|
128
|
+
offset = x - self.mode_origin
|
|
129
|
+
direction = self.mode_direction
|
|
130
|
+
return (np.linalg.norm(f - np.dot(f, direction) * direction)
|
|
131
|
+
<= np.sqrt(np.finfo(float).eps) * float(np.linalg.norm(f))
|
|
132
|
+
and np.linalg.norm(offset - np.dot(offset, direction) * direction)
|
|
133
|
+
<= self._coordinate_roundoff(x, offset))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def numerical_contact_jacobian(evaluate, coordinates, length_scale, safe_point=None):
|
|
137
|
+
"""Centered derivative of original contact loads wrt displacement coordinates.
|
|
138
|
+
|
|
139
|
+
Velocity dependence is included by the caller's Newmark-consistent evaluate.
|
|
140
|
+
Probes are force-only and must not mutate constitutive or contact history.
|
|
141
|
+
The cube-root-epsilon step balances centered truncation and roundoff; it is
|
|
142
|
+
not a contact-law smoothing, penalty or acceptance tolerance.
|
|
143
|
+
"""
|
|
144
|
+
coordinates = np.asarray(coordinates, dtype=float)
|
|
145
|
+
columns = []
|
|
146
|
+
for index in range(coordinates.size):
|
|
147
|
+
if safe_point is not None:
|
|
148
|
+
safe_point()
|
|
149
|
+
# Truncation scale is physical and invariant to a world-origin shift.
|
|
150
|
+
# Absolute coordinates enter only through their representable spacing.
|
|
151
|
+
step = max(np.cbrt(np.finfo(float).eps) * float(length_scale),
|
|
152
|
+
4. * abs(float(np.spacing(coordinates[index]))))
|
|
153
|
+
plus = coordinates.copy(); minus = coordinates.copy()
|
|
154
|
+
plus[index] += step; minus[index] -= step
|
|
155
|
+
denominator = float(plus[index] - minus[index])
|
|
156
|
+
if not np.isfinite(denominator) or denominator <= 0.:
|
|
157
|
+
raise ValueError("unrepresentable numerical contact perturbation")
|
|
158
|
+
columns.append((evaluate(plus) - evaluate(minus)) / denominator)
|
|
159
|
+
jacobian = np.column_stack(columns)
|
|
160
|
+
if not np.all(np.isfinite(jacobian)):
|
|
161
|
+
raise ValueError("nonfinite numerical contact Jacobian")
|
|
162
|
+
return jacobian
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""Native guard-local authority matching; no proof survives an invocation.
|
|
2
|
+
|
|
3
|
+
Expected tuples are interned using identities only. Live function metadata is
|
|
4
|
+
checked anew by every guard. Globals/class facts remain their caller's checks.
|
|
5
|
+
"""
|
|
6
|
+
import types
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def intern_facts(records):
|
|
10
|
+
"""Share only identical captured predicates, retaining cyclic leaf meaning."""
|
|
11
|
+
interned, visited = {}, {}
|
|
12
|
+
def node(fact):
|
|
13
|
+
if id(fact) in visited:
|
|
14
|
+
return visited[id(fact)]
|
|
15
|
+
if not fact:
|
|
16
|
+
key, made = ('empty',), ()
|
|
17
|
+
elif len(fact) == 1:
|
|
18
|
+
child = fact[0]
|
|
19
|
+
if isinstance(child, tuple):
|
|
20
|
+
child = node(child)
|
|
21
|
+
key, made = ('descriptor', id(child)), (child,)
|
|
22
|
+
else:
|
|
23
|
+
key, made = ('identity', id(child)), fact
|
|
24
|
+
elif len(fact) == 5:
|
|
25
|
+
member, code, defaults, keywords, closures = fact
|
|
26
|
+
entries = tuple((value,node(expected),generation) for value,expected,generation in closures)
|
|
27
|
+
key = ('function',id(member),id(code),id(defaults),
|
|
28
|
+
None if keywords is None else tuple((id(k),id(v)) for k,v in keywords),
|
|
29
|
+
tuple((id(v),id(a),g) for v,a,g in entries))
|
|
30
|
+
made = (member,code,defaults,keywords,entries)
|
|
31
|
+
else:
|
|
32
|
+
children = tuple(node(child) for child in fact)
|
|
33
|
+
key, made = ('property',tuple(id(child) for child in children)), children
|
|
34
|
+
result = interned.setdefault(key,made)
|
|
35
|
+
visited[id(fact)] = result
|
|
36
|
+
return result
|
|
37
|
+
return tuple((member,node(authority),bindings) for member,authority,bindings in records)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def matches(member, authority, memo):
|
|
41
|
+
"""Literal boundary predicate, with memo scoped to one native guard only."""
|
|
42
|
+
key = (id(member),id(authority))
|
|
43
|
+
if key in memo:
|
|
44
|
+
previous_member,previous_authority,result=memo[key]
|
|
45
|
+
if previous_member is member and previous_authority is authority:
|
|
46
|
+
return result
|
|
47
|
+
if type(member) is types.FunctionType:
|
|
48
|
+
if len(authority) == 1:
|
|
49
|
+
result = member is authority[0]
|
|
50
|
+
elif not authority or member is not authority[0] or member.__code__ is not authority[1] or member.__defaults__ is not authority[2]:
|
|
51
|
+
result = False
|
|
52
|
+
else:
|
|
53
|
+
closure = member.__closure__ or ()
|
|
54
|
+
if len(closure) != len(authority[4]):
|
|
55
|
+
result = False
|
|
56
|
+
else:
|
|
57
|
+
try:
|
|
58
|
+
invalid = any((type(cell.cell_contents) is not int if generation_counter else
|
|
59
|
+
cell.cell_contents is not value or not matches(value,captured,memo))
|
|
60
|
+
for cell,(value,captured,generation_counter) in zip(closure,authority[4]))
|
|
61
|
+
except ValueError:
|
|
62
|
+
invalid = True
|
|
63
|
+
expected, current = authority[3], member.__kwdefaults__
|
|
64
|
+
result = (not invalid and (current is None if expected is None else
|
|
65
|
+
type(current) is dict and all(type(k) is str for k in current) and len(current)==len(expected)
|
|
66
|
+
and all(current.get(k,_MISSING) is v for k,v in expected)))
|
|
67
|
+
elif type(member) is property:
|
|
68
|
+
result = len(authority)==3 and all(matches(f,a,memo) for f,a in zip((member.fget,member.fset,member.fdel),authority))
|
|
69
|
+
elif type(member) in (staticmethod,classmethod):
|
|
70
|
+
result = len(authority)==1 and matches(member.__func__,authority[0],memo)
|
|
71
|
+
else:
|
|
72
|
+
result = not authority
|
|
73
|
+
memo[key] = (member,authority,result)
|
|
74
|
+
return result
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
_MISSING = object()
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""Outward-dyadic sign filter for an exactly represented shifted pencil.
|
|
2
|
+
|
|
3
|
+
Every endpoint is an integer in units of 2**-precision. No floating-point
|
|
4
|
+
arithmetic determines a pivot sign. An unresolved enclosure returns None;
|
|
5
|
+
the caller must use exact arithmetic or reject, never guess a sign.
|
|
6
|
+
This is not a continuum or pre-rounding operator certificate.
|
|
7
|
+
"""
|
|
8
|
+
from time import monotonic
|
|
9
|
+
import numpy as np
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _multiply(a,b,scale):
|
|
13
|
+
products=(a[0]*b[0],a[0]*b[1],a[1]*b[0],a[1]*b[1])
|
|
14
|
+
return min(products)//scale,-((-max(products))//scale)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _divide(a,b,scale):
|
|
18
|
+
if b[0]<=0<=b[1]: raise ZeroDivisionError('interval pivot contains zero')
|
|
19
|
+
fractions=((a[0]*scale,b[0]),(a[0]*scale,b[1]),(a[1]*scale,b[0]),(a[1]*scale,b[1]))
|
|
20
|
+
return min(n//d for n,d in fractions),max(-((-n)//d) for n,d in fractions)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def interval_inertia(h,mass,shift,check=lambda:None,*,precision=256,dimension_limit=64):
|
|
24
|
+
started=monotonic()
|
|
25
|
+
def guard():
|
|
26
|
+
check()
|
|
27
|
+
if monotonic()-started>30.: raise TimeoutError('dyadic shifted inertia deadline')
|
|
28
|
+
guard()
|
|
29
|
+
if type(precision) is not int or precision not in (256,512): raise ValueError('admitted dyadic precision required')
|
|
30
|
+
if type(dimension_limit) is not int or dimension_limit not in (64,96,160): raise ValueError('explicit admitted exact-inertia dimension limit required')
|
|
31
|
+
if (h.ndim!=2 or h.shape[0]!=h.shape[1] or not 1<=len(h)<=dimension_limit or mass.shape!=h.shape
|
|
32
|
+
or not np.isfinite(h).all() or not np.isfinite(mass).all() or not np.isfinite(shift)
|
|
33
|
+
or not np.array_equal(h,h.T) or not np.array_equal(mass,mass.T)):
|
|
34
|
+
raise ValueError('bounded finite symmetric shifted pencil required')
|
|
35
|
+
scale=1<<precision; sn,sd=float(shift).as_integer_ratio(); a=[]
|
|
36
|
+
for row,other in zip(h,mass):
|
|
37
|
+
guard(); entries=[]
|
|
38
|
+
for x,y in zip(row,other):
|
|
39
|
+
xn,xd=float(x).as_integer_ratio(); yn,yd=float(y).as_integer_ratio()
|
|
40
|
+
d=max(xd,sd*yd); n=(xn*(d//xd)-sn*yn*(d//(sd*yd)))*scale
|
|
41
|
+
entries.append((n//d,-((-n)//d)))
|
|
42
|
+
a.append(entries)
|
|
43
|
+
positive=negative=0
|
|
44
|
+
while a:
|
|
45
|
+
guard(); n=len(a)
|
|
46
|
+
candidates=[i for i in range(n) if a[i][i][0]>0 or a[i][i][1]<0]
|
|
47
|
+
if not candidates:
|
|
48
|
+
if all(entry==(0,0) for row in a for entry in row): return positive,negative,n
|
|
49
|
+
return None
|
|
50
|
+
pivot=max(candidates,key=lambda i:min(abs(a[i][i][0]),abs(a[i][i][1])))
|
|
51
|
+
order=[pivot]+[i for i in range(n) if i!=pivot]
|
|
52
|
+
a=[[a[i][j] for j in order] for i in order]; d=a[0][0]
|
|
53
|
+
positive+=int(d[0]>0); negative+=int(d[1]<0)
|
|
54
|
+
quotients=[_divide(a[i][0],d,scale) for i in range(1,n)]
|
|
55
|
+
reduced=[[(0,0)]*(n-1) for _ in range(n-1)]
|
|
56
|
+
for i in range(1,n):
|
|
57
|
+
guard()
|
|
58
|
+
for j in range(i,n):
|
|
59
|
+
lo,hi=_multiply(quotients[i-1],a[0][j],scale)
|
|
60
|
+
entry=(a[i][j][0]-hi,a[i][j][1]-lo)
|
|
61
|
+
reduced[i-1][j-1]=reduced[j-1][i-1]=entry
|
|
62
|
+
a=reduced
|
|
63
|
+
guard()
|
|
64
|
+
return positive,negative,0
|