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,399 @@
|
|
|
1
|
+
"""Planar finite rigid mesh against the existing affine S3 physical skin map.
|
|
2
|
+
|
|
3
|
+
All face integrals are accumulated before E = k/2 sum(w_i**2/s_i).
|
|
4
|
+
Geometry derivatives come from the existing S3 overlap Jet2 primitive.
|
|
5
|
+
"""
|
|
6
|
+
from dataclasses import asdict
|
|
7
|
+
from fractions import Fraction
|
|
8
|
+
import hashlib
|
|
9
|
+
import json
|
|
10
|
+
import numpy as np
|
|
11
|
+
from scipy import sparse
|
|
12
|
+
from .core import ContactSolverSettings, ContactValidationReport, _contact_settings_contract
|
|
13
|
+
from .triangulated_rigid import TriangulatedRigidContactBody
|
|
14
|
+
from .s3_skin_work import S3SkinWorkAdapter
|
|
15
|
+
from .s3_patch_mortar_energy import MovingS3PatchPrimalMortarPenalty, MovingS3PatchMortarWork, S3PatchFace
|
|
16
|
+
from .s3_patch_static import GeneralS3PatchManager, _unique_work_map
|
|
17
|
+
from .s3_overlap_derivatives import s3_overlap_derivatives
|
|
18
|
+
|
|
19
|
+
PROFILE = 'S3_PLANAR_TRIANGULATED_RIGID_SHARED_PENALTY_STATIC_DEV_V1'
|
|
20
|
+
PATCH_PROFILE = 'S3_PATCH_PLANAR_TRIANGULATED_RIGID_SHARED_PENALTY_STATIC_DEV_V1'
|
|
21
|
+
LOCAL_DERIVATIVE_WORK_LIMIT_BYTES = 128*1024**2
|
|
22
|
+
|
|
23
|
+
def derivative_work_storage_bound(n,m,pairs):
|
|
24
|
+
if any(type(v) is not int or v<1 for v in (n,m,pairs)):
|
|
25
|
+
raise ValueError('positive integer derivative-work inventory required')
|
|
26
|
+
# Js/Jw/Hs/Hw + returned H/residual + twelve dense matrix temporaries,
|
|
27
|
+
# pressure gram, pair state/coordinate scratch, and sequential 18D Jets.
|
|
28
|
+
return 8*(2*n*m*m+2*n*m+13*m*m+16*m+n*n+512*pairs)+4*1024**2
|
|
29
|
+
|
|
30
|
+
def _storage_guard(n,m,pairs):
|
|
31
|
+
estimate=derivative_work_storage_bound(n,m,pairs)
|
|
32
|
+
if estimate>LOCAL_DERIVATIVE_WORK_LIMIT_BYTES:
|
|
33
|
+
raise ValueError('128MiB local derivative-work budget exceeded before dense allocation')
|
|
34
|
+
return estimate
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _source_overlap_guard(points,faces):
|
|
38
|
+
"""Exact projected positive overlap refuses duplicate source ownership."""
|
|
39
|
+
def sub(a,b): return [x-y for x,y in zip(a,b)]
|
|
40
|
+
def dot(a,b): return sum(x*y for x,y in zip(a,b))
|
|
41
|
+
def cross(a,b): return [a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]
|
|
42
|
+
def orient(a,b,c): return (b[0]-a[0])*(c[1]-a[1])-(b[1]-a[1])*(c[0]-a[0])
|
|
43
|
+
triangles=[[[Fraction(float(x)) for x in points[int(j)]] for j in ids] for ids in faces]
|
|
44
|
+
for i,a in enumerate(triangles):
|
|
45
|
+
n=cross(sub(a[1],a[0]),sub(a[2],a[0]));square=dot(n,n)
|
|
46
|
+
if square<=0: raise ValueError('source patch contains degenerate geometry')
|
|
47
|
+
drop=max(range(3),key=lambda j:abs(n[j]));axes=[j for j in range(3) if j!=drop]
|
|
48
|
+
first=[tuple(p[j] for j in axes) for p in a]
|
|
49
|
+
if orient(*first)<0: first.reverse()
|
|
50
|
+
for b in triangles[i+1:]:
|
|
51
|
+
projected=[[x-nj*dot(n,sub(p,a[0]))/square for x,nj in zip(p,n)] for p in b]
|
|
52
|
+
second=[tuple(p[j] for j in axes) for p in projected]
|
|
53
|
+
if orient(*second)==0: raise ValueError('source patch projection ownership is unresolved')
|
|
54
|
+
if orient(*second)<0: second.reverse()
|
|
55
|
+
poly=list(first)
|
|
56
|
+
for x,y in zip(second,second[1:]+second[:1]):
|
|
57
|
+
if not poly: break
|
|
58
|
+
out=[];old=poly[-1];od=orient(x,y,old)
|
|
59
|
+
for current in poly:
|
|
60
|
+
d=orient(x,y,current)
|
|
61
|
+
if (od>=0)!=(d>=0):
|
|
62
|
+
f=od/(od-d);out.append(tuple(u+f*(v-u) for u,v in zip(old,current)))
|
|
63
|
+
if d>=0: out.append(current)
|
|
64
|
+
old,od=current,d
|
|
65
|
+
poly=out
|
|
66
|
+
area=sum(x[0]*y[1]-x[1]*y[0] for x,y in zip(poly,poly[1:]+poly[:1])) if poly else 0
|
|
67
|
+
if area>0: raise ValueError('source reference/current faces have overlapping projected interiors')
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class _JetPenalty(MovingS3PatchPrimalMortarPenalty):
|
|
71
|
+
def evaluate(self,source,target):
|
|
72
|
+
state=super().evaluate(source,target)
|
|
73
|
+
if not getattr(self,'stable_plane_gap',False):
|
|
74
|
+
return state
|
|
75
|
+
from dataclasses import replace
|
|
76
|
+
support=np.zeros_like(state.reference_support)
|
|
77
|
+
weighted=np.zeros_like(state.reference_weighted_gap)
|
|
78
|
+
for index,pair in enumerate(state.pair_states):
|
|
79
|
+
if pair is None or pair.overlap_vertices==0:
|
|
80
|
+
continue
|
|
81
|
+
si=self.source_face_indices[index//len(self.target_faces)]
|
|
82
|
+
ti=self.target_face_indices[index%len(self.target_faces)]
|
|
83
|
+
d=s3_overlap_derivatives(self.reference_source[si],source[si],target[ti],stable_plane_gap=True)
|
|
84
|
+
support[si]+=d.reference_support
|
|
85
|
+
weighted[si]+=d.reference_weighted_gap
|
|
86
|
+
if np.any(support<=0) or not np.all(np.isfinite(weighted)):
|
|
87
|
+
raise ValueError('stable shared penalty requires every positive finite support')
|
|
88
|
+
normalized=weighted/support
|
|
89
|
+
pressure=self.stiffness*np.maximum(-normalized,0.)
|
|
90
|
+
energy=.5*self.stiffness*float(support@np.minimum(normalized,0.)**2)
|
|
91
|
+
return replace(state,reference_support=support,reference_weighted_gap=weighted,
|
|
92
|
+
normalized_gap=normalized,pressure=pressure,energy=energy)
|
|
93
|
+
|
|
94
|
+
def work(self, source, target, *, tangent=True):
|
|
95
|
+
n, m = len(self.source_node_ids), self.n_coordinates
|
|
96
|
+
_storage_guard(n,m,len(self.pair_laws))
|
|
97
|
+
state = self.evaluate(source, target)
|
|
98
|
+
js, jw = np.zeros((n,m)), np.zeros((n,m))
|
|
99
|
+
hs, hw = np.zeros((n,m,m)), np.zeros((n,m,m))
|
|
100
|
+
count = 0
|
|
101
|
+
for index, pair in enumerate(state.pair_states):
|
|
102
|
+
if pair is None or pair.overlap_vertices == 0:
|
|
103
|
+
continue
|
|
104
|
+
si = self.source_face_indices[index//len(self.target_faces)]
|
|
105
|
+
ti = self.target_face_indices[index%len(self.target_faces)]
|
|
106
|
+
d = s3_overlap_derivatives(self.reference_source[si], source[si], target[ti],
|
|
107
|
+
stable_plane_gap=getattr(self,'stable_plane_gap',False))
|
|
108
|
+
coords = np.r_[np.concatenate([np.arange(3*j,3*j+3) for j in si]),
|
|
109
|
+
np.concatenate([np.arange(3*n+3*j,3*n+3*j+3) for j in ti])]
|
|
110
|
+
for row, node in enumerate(si):
|
|
111
|
+
js[node,coords] += d.support_gradient[row]
|
|
112
|
+
jw[node,coords] += d.weighted_gap_gradient[row]
|
|
113
|
+
hs[node][np.ix_(coords,coords)] += d.support_hessian[row]
|
|
114
|
+
hw[node][np.ix_(coords,coords)] += d.weighted_gap_hessian[row]
|
|
115
|
+
count += 1
|
|
116
|
+
force, hessian = np.zeros(m), np.zeros((m,m))
|
|
117
|
+
for i,(s,w) in enumerate(zip(state.reference_support,state.reference_weighted_gap)):
|
|
118
|
+
if s <= 0 or w >= 0:
|
|
119
|
+
continue
|
|
120
|
+
force += self.stiffness*(w/s*jw[i]-.5*w*w/s**2*js[i])
|
|
121
|
+
hessian += self.stiffness*(np.outer(jw[i],jw[i])/s
|
|
122
|
+
-w/s**2*(np.outer(jw[i],js[i])+np.outer(js[i],jw[i]))
|
|
123
|
+
+w*w/s**3*np.outer(js[i],js[i])+w/s*hw[i]-.5*w*w/s**2*hs[i])
|
|
124
|
+
return MovingS3PatchMortarWork(state, force, hessian if tangent else None, count)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def _prepare(model, definition, settings):
|
|
128
|
+
if len(definition.surfaces)!=1 or len(definition.rigid_bodies)!=1 or len(definition.interactions)!=1:
|
|
129
|
+
raise ValueError('first rigid mesh profile requires one shell surface and one rigid body')
|
|
130
|
+
body, surface, interaction = definition.rigid_bodies[0], definition.surfaces[0], definition.interactions[0]
|
|
131
|
+
if type(body) is not TriangulatedRigidContactBody:
|
|
132
|
+
raise ValueError('explicit TriangulatedRigidContactBody required')
|
|
133
|
+
if (interaction.surface != surface.name or interaction.target != body.name
|
|
134
|
+
or interaction.normal_law!='penalty'
|
|
135
|
+
or surface.beam_radius is not None or interaction.line_stiffness is not None
|
|
136
|
+
or interaction.endpoint_stiffness is not None or interaction.normal_stiffness is None):
|
|
137
|
+
raise ValueError('only frictionless shell-source penalty is supported')
|
|
138
|
+
if (settings.pair_motion!='general' or settings.normal_discretization!='primal_mortar'
|
|
139
|
+
or settings.general_s3_difference_step is None or settings.d1_interior_profile
|
|
140
|
+
or settings.q4_source_gap_certificate!='whole_face'):
|
|
141
|
+
raise ValueError('rigid mesh requires explicit general primal mortar settings')
|
|
142
|
+
from anyfesolver.e4_pl_s3_v2d_element import NativeParityE4PLS3V2DShellElement
|
|
143
|
+
adapters=[]
|
|
144
|
+
for eid in surface.element_ids:
|
|
145
|
+
if type(model.mesh.elements[eid]) is not NativeParityE4PLS3V2DShellElement:
|
|
146
|
+
raise ValueError('only formulation-owned e4-pl-s3-v2d physical skins are supported; Q4 work remains unverified')
|
|
147
|
+
material=model.materials[model.mesh.elements[eid].material_name]
|
|
148
|
+
if 0 < float(getattr(material,'yield_stress',0.)) < float('inf'):
|
|
149
|
+
raise ValueError('rigid mesh profile currently requires elastic material')
|
|
150
|
+
adapters.append(S3SkinWorkAdapter.from_model(model, 1, eid, surface.side))
|
|
151
|
+
if settings.enforcement_solver!='nested_augmented':
|
|
152
|
+
raise ValueError('rigid mesh profile requires nested_augmented enforcement')
|
|
153
|
+
if len(adapters)>1:
|
|
154
|
+
traces={}
|
|
155
|
+
for adapter in adapters:
|
|
156
|
+
for local,node in enumerate(adapter.node_ids):
|
|
157
|
+
position=adapter.reference_positions[local]
|
|
158
|
+
row=adapter.work_map[3*local:3*local+3]
|
|
159
|
+
if node in traces:
|
|
160
|
+
old_position,old_row=traces[node]
|
|
161
|
+
if not np.array_equal(position,old_position) or (row-old_row).nnz:
|
|
162
|
+
raise ValueError('source shared physical trace/work rows must agree exactly')
|
|
163
|
+
else:traces[node]=(position,row)
|
|
164
|
+
neighbours={i:set() for i in range(len(adapters))};edges={}
|
|
165
|
+
for i,a in enumerate(adapters):
|
|
166
|
+
for first,last in zip(a.node_ids,a.node_ids[1:]+a.node_ids[:1]):
|
|
167
|
+
key=tuple(sorted((first,last)));entries=edges.setdefault(key,[])
|
|
168
|
+
if len(entries)==2 or any((first,last)==e[1:] for e in entries):
|
|
169
|
+
raise ValueError('source patch has nonmanifold or inverted shared edges')
|
|
170
|
+
entries.append((i,first,last))
|
|
171
|
+
for entries in edges.values():
|
|
172
|
+
if len(entries)==2:
|
|
173
|
+
i,j=entries[0][0],entries[1][0];neighbours[i].add(j);neighbours[j].add(i)
|
|
174
|
+
reached={0};pending=[0]
|
|
175
|
+
while pending:
|
|
176
|
+
for i in neighbours[pending.pop()]-reached:
|
|
177
|
+
reached.add(i);pending.append(i)
|
|
178
|
+
if len(reached)!=len(adapters): raise ValueError('source patch must be connected through complete shared edges')
|
|
179
|
+
positions=body.planar_positions()
|
|
180
|
+
source=tuple(S3PatchFace(a.node_ids,a.reference_positions) for a in adapters)
|
|
181
|
+
offset=max(node for a in adapters for node in a.node_ids)+1
|
|
182
|
+
target=tuple(S3PatchFace(tuple(j+offset for j in ids),positions[list(ids)]) for _,ids in body.faces)
|
|
183
|
+
nsource=len({j for face in source for j in face.node_ids});ntarget=len({j for face in target for j in face.node_ids})
|
|
184
|
+
if nsource>settings.maximum_patch_normal_dofs: raise ValueError('shared pressure node budget exceeded')
|
|
185
|
+
_storage_guard(nsource,3*(nsource+ntarget),len(source)*len(target))
|
|
186
|
+
reference,_=_unique_work_map(adapters,tuple(sorted({j for face in source for j in face.node_ids})))
|
|
187
|
+
if len(adapters)>1:
|
|
188
|
+
node_index={node:i for i,node in enumerate(sorted({j for face in source for j in face.node_ids}))}
|
|
189
|
+
_source_overlap_guard(reference,tuple(tuple(node_index[j] for j in f.node_ids) for f in source))
|
|
190
|
+
law=_JetPenalty(source,target,interaction.normal_stiffness,
|
|
191
|
+
difference_step=settings.general_s3_difference_step,
|
|
192
|
+
maximum_energy_evaluations=settings.maximum_general_s3_energy_evaluations,
|
|
193
|
+
differentiation='jet2_s3', maximum_candidate_pairs=settings.maximum_candidate_pairs)
|
|
194
|
+
law.maximum_candidate_pairs=settings.maximum_candidate_pairs
|
|
195
|
+
if len(law.source_node_ids)>settings.maximum_patch_normal_dofs:
|
|
196
|
+
raise ValueError('shared pressure node budget exceeded')
|
|
197
|
+
return adapters,law,interaction
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
def validate_triangulated_rigid(model, definition, settings=None, **kwargs):
|
|
201
|
+
try:
|
|
202
|
+
if kwargs.get('analysis_control','force') not in ('force','displacement'):
|
|
203
|
+
raise ValueError('rigid mesh static profile requires force/displacement control')
|
|
204
|
+
_prepare(model,definition,settings or ContactSolverSettings())
|
|
205
|
+
except (ValueError,KeyError,TypeError) as exc:
|
|
206
|
+
profile=PATCH_PROFILE if len(definition.surfaces)==1 and len(definition.surfaces[0].element_ids)>1 else PROFILE
|
|
207
|
+
return ContactValidationReport('unsupported',(str(exc),),profile)
|
|
208
|
+
return ContactValidationReport('ok',(),PATCH_PROFILE if len(definition.surfaces[0].element_ids)>1 else PROFILE)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
class TriangulatedRigidManager(GeneralS3PatchManager):
|
|
212
|
+
def __init__(self,model,definition,settings=None,initial_displacement=None):
|
|
213
|
+
self.settings=settings or ContactSolverSettings()
|
|
214
|
+
self.adapters,self.law,interaction=_prepare(model,definition,self.settings)
|
|
215
|
+
self.model,self.definition,self.profile=model,definition,(PATCH_PROFILE if len(self.adapters)>1 else PROFILE)
|
|
216
|
+
source,map_=_unique_work_map(self.adapters,self.law.source_node_ids)
|
|
217
|
+
self.reference=(source,self.law.reference_target)
|
|
218
|
+
self.n_dof=model.mesh.dof_manager.total_dofs
|
|
219
|
+
self.map=sparse.vstack((map_,sparse.csr_matrix((3*len(self.law.target_node_ids),self.n_dof)))).tocsr()
|
|
220
|
+
self.stiffness,self.gap_tolerance=interaction.normal_stiffness,interaction.gap_tolerance
|
|
221
|
+
self.augmented=self.projected_work=False
|
|
222
|
+
self.finite_skin=None
|
|
223
|
+
self.swept_trial_cutbacks=0
|
|
224
|
+
from .s3_pair_static import _normal
|
|
225
|
+
self.reference_normals=(_normal(source[self.law.source_face_indices[0]]),_normal(self.law.reference_target[self.law.target_face_indices[0]]))
|
|
226
|
+
self._binding=self._contract_bytes()
|
|
227
|
+
u=np.zeros(self.n_dof) if initial_displacement is None else initial_displacement
|
|
228
|
+
lower=self._gap_lower(self._positions(u))
|
|
229
|
+
scale=max(1.,float(np.max(np.abs(np.concatenate(self.reference)))))
|
|
230
|
+
if lower < -256*np.finfo(float).eps*scale:
|
|
231
|
+
raise ValueError('initial rigid mesh overclosure is unsupported')
|
|
232
|
+
|
|
233
|
+
def _contract_bytes(self):
|
|
234
|
+
contract={'definition':asdict(self.definition),'settings':_contact_settings_contract(self.settings),
|
|
235
|
+
'profile':self.profile,'reference':[a.reference_positions.tolist() for a in self.adapters],
|
|
236
|
+
'model_reference':[S3SkinWorkAdapter.from_model(self.model,a.body_id,a.element_id,a.side).reference_positions.tolist() for a in self.adapters],
|
|
237
|
+
'model_maps':[S3SkinWorkAdapter.from_model(self.model,a.body_id,a.element_id,a.side).work_map.toarray().tolist() for a in self.adapters],
|
|
238
|
+
'law_source':self.law.reference_source.tolist(),'law_target':self.law.reference_target.tolist(),
|
|
239
|
+
'law_faces':[[(f.node_ids,f.reference_positions.tolist()) for f in side] for side in (self.law.source_faces,self.law.target_faces)],
|
|
240
|
+
'references':[r.tolist() for r in self.reference],
|
|
241
|
+
'operator':[self.law.stiffness,self.stiffness,self.gap_tolerance,self.law.differentiation,
|
|
242
|
+
[list(map(int,i)) for i in self.law.source_face_indices],[list(map(int,i)) for i in self.law.target_face_indices],
|
|
243
|
+
[n.tolist() for n in self.reference_normals],
|
|
244
|
+
[(p.stiffness,p.reference_source.tolist(),p.reference_target.tolist()) for p in self.law.pair_laws],
|
|
245
|
+
self.law.source_node_ids,self.law.target_node_ids,self.law.n_coordinates,
|
|
246
|
+
self.law.maximum_candidate_pairs,self.law.maximum_energy_evaluations],
|
|
247
|
+
'map_data':self.map.data.tolist(),'map_indices':self.map.indices.tolist(),'map_indptr':self.map.indptr.tolist()}
|
|
248
|
+
if self.profile==PATCH_PROFILE:
|
|
249
|
+
contract['patch_derivative_work']={'policy':'explicit128MiB-v1','limit_bytes':LOCAL_DERIVATIVE_WORK_LIMIT_BYTES,
|
|
250
|
+
'estimate_bytes':derivative_work_storage_bound(len(self.law.source_node_ids),self.law.n_coordinates,len(self.law.pair_laws))}
|
|
251
|
+
return json.dumps(contract,sort_keys=True).encode()
|
|
252
|
+
|
|
253
|
+
def _positions(self,u):
|
|
254
|
+
if self._contract_bytes()!=self._binding:
|
|
255
|
+
raise ValueError('rigid mesh contact binding mutated')
|
|
256
|
+
positions=super()._positions(u)
|
|
257
|
+
if self.profile==PATCH_PROFILE: _source_overlap_guard(positions[0],self.law.source_face_indices)
|
|
258
|
+
return positions
|
|
259
|
+
|
|
260
|
+
def _gap_lower(self,positions,*,endpoint_errors=None):
|
|
261
|
+
if endpoint_errors is not None:
|
|
262
|
+
raise ValueError('affine rigid profile does not consume finite endpoint boxes')
|
|
263
|
+
state=self.law.evaluate(*positions)
|
|
264
|
+
value=state.minimum_physical_gap
|
|
265
|
+
self._reject_edge_only(positions,state)
|
|
266
|
+
if value is None:
|
|
267
|
+
return float('inf')
|
|
268
|
+
scale=max(1.,*(float(np.max(np.abs(p))) for p in positions))
|
|
269
|
+
return float(value)-256*np.finfo(float).eps*scale
|
|
270
|
+
|
|
271
|
+
def _reject_edge_only(self,positions,state):
|
|
272
|
+
"""Every unrepresented singular intersection needs represented ownership."""
|
|
273
|
+
def q(p): return [Fraction(float(x)) for x in p]
|
|
274
|
+
def sub(a,b): return [x-y for x,y in zip(a,b)]
|
|
275
|
+
def dot(a,b): return sum(x*y for x,y in zip(a,b))
|
|
276
|
+
def cross(a,b): return [a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]
|
|
277
|
+
def orient(a,b,c): return (b[0]-a[0])*(c[1]-a[1])-(b[1]-a[1])*(c[0]-a[0])
|
|
278
|
+
def clip(first,second):
|
|
279
|
+
poly=first
|
|
280
|
+
for a,b in zip(second,second[1:]+second[:1]):
|
|
281
|
+
if not poly: break
|
|
282
|
+
out=[];old=poly[-1];od=orient(a,b,old)
|
|
283
|
+
for current in poly:
|
|
284
|
+
d=orient(a,b,current)
|
|
285
|
+
if (od>=0)!=(d>=0):
|
|
286
|
+
f=od/(od-d)
|
|
287
|
+
out.append(tuple(x+f*(y-x) for x,y in zip(old,current)))
|
|
288
|
+
if d>=0: out.append(current)
|
|
289
|
+
old,od=current,d
|
|
290
|
+
poly=out
|
|
291
|
+
return poly
|
|
292
|
+
for source_index,si in enumerate(self.law.source_face_indices):
|
|
293
|
+
source=[q(p) for p in positions[0][si]]
|
|
294
|
+
ns=cross(sub(source[1],source[0]),sub(source[2],source[0]))
|
|
295
|
+
reference=[q(p) for p in positions[1][self.law.target_face_indices[0]]]
|
|
296
|
+
nt=cross(sub(reference[1],reference[0]),sub(reference[2],reference[0]))
|
|
297
|
+
heights=[dot(nt,sub(p,reference[0])) for p in source]
|
|
298
|
+
if min(heights)>0: continue
|
|
299
|
+
denominator=dot(nt,ns)
|
|
300
|
+
if denominator<=0: raise ValueError('unresolved rigid rim polarity')
|
|
301
|
+
projected=[[x-n*h/denominator for x,n in zip(p,ns)] for p,h in zip(source,heights)]
|
|
302
|
+
drop=max(range(3),key=lambda i:abs(nt[i]));axes=[i for i in range(3) if i!=drop]
|
|
303
|
+
original=[tuple(p[i] for i in axes) for p in projected]
|
|
304
|
+
first=original if orient(*original)>0 else list(reversed(original))
|
|
305
|
+
inventory=[];represented=[]
|
|
306
|
+
for target_index,ti in enumerate(self.law.target_face_indices):
|
|
307
|
+
second=[tuple(q(p)[i] for i in axes) for p in positions[1][ti]]
|
|
308
|
+
if orient(*second)<0: second.reverse()
|
|
309
|
+
poly=clip(first,second)
|
|
310
|
+
pair=state.pair_states[source_index*len(self.law.target_faces)+target_index]
|
|
311
|
+
area=sum(a[0]*b[1]-a[1]*b[0] for a,b in zip(poly,poly[1:]+poly[:1])) if poly else Fraction(0)
|
|
312
|
+
if pair is not None and pair.overlap_vertices>0:
|
|
313
|
+
if area<=0: raise ValueError('unresolved positive rigid overlap representation')
|
|
314
|
+
represented.append(poly)
|
|
315
|
+
elif poly:
|
|
316
|
+
inventory.append(poly)
|
|
317
|
+
determinant=orient(*original)
|
|
318
|
+
def height(point):
|
|
319
|
+
b=orient(original[0],point,original[2])/determinant
|
|
320
|
+
c=orient(original[0],original[1],point)/determinant
|
|
321
|
+
return (1-b-c)*heights[0]+b*heights[1]+c*heights[2]
|
|
322
|
+
for poly in inventory:
|
|
323
|
+
if min(height(point) for point in poly)>0: continue
|
|
324
|
+
# A represented polygon is convex. Covering every endpoint of
|
|
325
|
+
# the closed intersection proves coverage of its whole hull.
|
|
326
|
+
covered=any(candidate and all(all(orient(a,b,point)>=0 for a,b in zip(candidate,candidate[1:]+candidate[:1])) for point in poly) for candidate in represented)
|
|
327
|
+
if not covered:
|
|
328
|
+
raise ValueError('unrepresented physical rigid rim contact is unsupported')
|
|
329
|
+
|
|
330
|
+
def restart_contract(self):
|
|
331
|
+
self._positions(np.zeros(self.n_dof))
|
|
332
|
+
return {'profile':self.profile,'rigid_mesh_contract_sha256':hashlib.sha256(self._binding).hexdigest()}
|
|
333
|
+
|
|
334
|
+
def _swept_admissible(self,start,end):
|
|
335
|
+
"""Bound the matched normal gap on a superset of finite overlap.
|
|
336
|
+
|
|
337
|
+
Frozen tool plane and affine physical S3 positions make each vertex
|
|
338
|
+
height affine and the unnormalized source normal quadratic. All dot
|
|
339
|
+
and cross coefficients below use exact stored binary64 arithmetic.
|
|
340
|
+
"""
|
|
341
|
+
first,last=self._positions(start),self._positions(end)
|
|
342
|
+
if self._gap_lower(first)<-self.gap_tolerance:
|
|
343
|
+
raise ValueError('committed rigid mesh gap exceeds tolerance')
|
|
344
|
+
try:
|
|
345
|
+
if self._gap_lower(last)<-self.gap_tolerance: return False
|
|
346
|
+
except ValueError:
|
|
347
|
+
return False
|
|
348
|
+
def q(p): return [Fraction(float(x)) for x in p]
|
|
349
|
+
def sub(a,b): return [x-y for x,y in zip(a,b)]
|
|
350
|
+
def dot(a,b): return sum(x*y for x,y in zip(a,b))
|
|
351
|
+
def cross(a,b): return [a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]
|
|
352
|
+
def normal(p): return cross(sub(p[1],p[0]),sub(p[2],p[0]))
|
|
353
|
+
def down(x):
|
|
354
|
+
f=float(x)
|
|
355
|
+
return np.nextafter(f,-np.inf) if Fraction(f)>x else f
|
|
356
|
+
def up(x):
|
|
357
|
+
f=float(x)
|
|
358
|
+
return np.nextafter(f,np.inf) if Fraction(f)<x else f
|
|
359
|
+
def sqrt_up(x):
|
|
360
|
+
f=float(np.sqrt(up(x)))
|
|
361
|
+
while Fraction(f)**2<x: f=np.nextafter(f,np.inf)
|
|
362
|
+
return f
|
|
363
|
+
tool=[q(p) for p in first[1][self.law.target_face_indices[0]]]
|
|
364
|
+
nt=normal(tool)
|
|
365
|
+
tool_norm=sqrt_up(dot(nt,nt))
|
|
366
|
+
# Enclose ref + map*u before cancellation, including all affine path t.
|
|
367
|
+
refs=np.concatenate(self.reference).reshape(-1)
|
|
368
|
+
endpoints=[]; magnitude=Fraction(1)
|
|
369
|
+
for displacement in (start,end):
|
|
370
|
+
values=[]
|
|
371
|
+
for row,ref in enumerate(refs):
|
|
372
|
+
begin,stop=self.map.indptr[row:row+2]
|
|
373
|
+
terms=[Fraction(float(self.map.data[j]))*Fraction(float(displacement[self.map.indices[j]])) for j in range(begin,stop)]
|
|
374
|
+
values.append(Fraction(float(ref))+sum(terms))
|
|
375
|
+
magnitude=max(magnitude,abs(Fraction(float(ref)))+sum(abs(t) for t in terms))
|
|
376
|
+
endpoints.append([values[j:j+3] for j in range(0,len(values),3)])
|
|
377
|
+
err=Fraction(1024)*Fraction(float(np.finfo(float).eps))*magnitude
|
|
378
|
+
spatial_error=Fraction(sqrt_up(3*err*err))
|
|
379
|
+
guard=spatial_error
|
|
380
|
+
|
|
381
|
+
for ids in self.law.source_face_indices:
|
|
382
|
+
a,b=([pose[int(j)] for j in ids] for pose in endpoints)
|
|
383
|
+
middle=[[(x+y)/2 for x,y in zip(p,r)] for p,r in zip(a,b)]
|
|
384
|
+
n0,nm,n1=normal(a),normal(middle),normal(b)
|
|
385
|
+
controls=(n0,[2*x-(y+z)/2 for x,y,z in zip(nm,n0,n1)],n1)
|
|
386
|
+
d=min(dot(nt,n) for n in controls)
|
|
387
|
+
norm=max(sqrt_up(dot(n,n)) for n in controls)
|
|
388
|
+
edge1=max(sqrt_up(dot(sub(p[1],p[0]),sub(p[1],p[0]))) for p in (a,b))
|
|
389
|
+
edge2=max(sqrt_up(dot(sub(p[2],p[0]),sub(p[2],p[0]))) for p in (a,b))
|
|
390
|
+
edge_error=2*spatial_error
|
|
391
|
+
normal_error=(Fraction(edge1)+Fraction(edge2))*edge_error+edge_error**2
|
|
392
|
+
d-=Fraction(tool_norm)*normal_error
|
|
393
|
+
norm=up(Fraction(norm)+normal_error)
|
|
394
|
+
if d<=0 or norm<=0: return False
|
|
395
|
+
# A position error enclosure is applied before the normal quotient.
|
|
396
|
+
height=min(dot(nt,sub(p,tool[0])) for p in (*a,*b))-guard*Fraction(tool_norm)
|
|
397
|
+
lower=(down(height*Fraction(norm)/d) if height<0 else down(height/Fraction(tool_norm)))
|
|
398
|
+
if lower < -self.gap_tolerance: return False
|
|
399
|
+
return True
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"""Local primal-pressure work for a warped Q4 skin against an analytic plane.
|
|
2
|
+
|
|
3
|
+
This linearized small-rotation kernel is an unadmitted ingredient. A solver
|
|
4
|
+
owner must still certify current/swept physical gap and coordinate lifecycle.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from dataclasses import dataclass
|
|
10
|
+
|
|
11
|
+
import numpy as np
|
|
12
|
+
|
|
13
|
+
from .warped_q4_skin import WarpedQ4Skin
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass(frozen=True)
|
|
17
|
+
class WarpedQ4PlaneState:
|
|
18
|
+
weighted_gap: np.ndarray
|
|
19
|
+
normalized_gap: np.ndarray
|
|
20
|
+
energy: float
|
|
21
|
+
residual: np.ndarray
|
|
22
|
+
tangent: np.ndarray
|
|
23
|
+
pressure_coefficients: np.ndarray
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class WarpedQ4PlaneMortar:
|
|
27
|
+
"""Four nonnegative Q1 pressure supports on one physical Q4 side."""
|
|
28
|
+
|
|
29
|
+
def __init__(self, skin: WarpedQ4Skin, plane_point: np.ndarray,
|
|
30
|
+
plane_normal: np.ndarray, stiffness: float, *,
|
|
31
|
+
quadrature_order: int, control_order: int,
|
|
32
|
+
integration_relative_tolerance: float):
|
|
33
|
+
if type(skin) is not WarpedQ4Skin:
|
|
34
|
+
raise TypeError("warped Q4 plane mortar needs a physical Q4 skin")
|
|
35
|
+
point = np.asarray(plane_point, dtype=float)
|
|
36
|
+
normal = np.asarray(plane_normal, dtype=float)
|
|
37
|
+
if (point.shape != (3,) or normal.shape != (3,)
|
|
38
|
+
or not np.all(np.isfinite(point))
|
|
39
|
+
or not np.all(np.isfinite(normal))
|
|
40
|
+
or float(np.linalg.norm(normal)) <= 0.0):
|
|
41
|
+
raise ValueError("plane needs a finite point and nonzero normal")
|
|
42
|
+
if not np.isfinite(stiffness) or stiffness <= 0.0:
|
|
43
|
+
raise ValueError("normal stiffness must be finite and positive")
|
|
44
|
+
if (type(quadrature_order) is not int or quadrature_order < 1
|
|
45
|
+
or type(control_order) is not int
|
|
46
|
+
or control_order <= quadrature_order or control_order > 32):
|
|
47
|
+
raise ValueError("warped contact needs increasing finite quadrature orders")
|
|
48
|
+
if (not np.isfinite(integration_relative_tolerance)
|
|
49
|
+
or integration_relative_tolerance <= 0.0):
|
|
50
|
+
raise ValueError("integration relative tolerance must be positive")
|
|
51
|
+
self.skin = skin
|
|
52
|
+
self.point = point.copy()
|
|
53
|
+
self.normal = normal / np.linalg.norm(normal)
|
|
54
|
+
self.stiffness = float(stiffness)
|
|
55
|
+
self.quadrature_order = quadrature_order
|
|
56
|
+
self.control_order = control_order
|
|
57
|
+
self.integration_relative_tolerance = float(integration_relative_tolerance)
|
|
58
|
+
low = self._integrals(quadrature_order)
|
|
59
|
+
high = self._integrals(control_order)
|
|
60
|
+
support_scale = float(np.sum(high[0]))
|
|
61
|
+
reference_span = float(np.max(np.ptp(skin.reference, axis=0)))
|
|
62
|
+
length_scale = max(reference_span, abs(skin.offset),
|
|
63
|
+
abs(float(self.normal @ (skin.reference[0] - point))),
|
|
64
|
+
np.finfo(float).tiny)
|
|
65
|
+
errors = (
|
|
66
|
+
float(np.max(np.abs(low[0] - high[0]))) / support_scale,
|
|
67
|
+
float(np.max(np.abs(low[1] - high[1]))) / (support_scale * length_scale),
|
|
68
|
+
float(np.max(np.abs(low[2][:, :, :3] - high[2][:, :, :3]))) / support_scale,
|
|
69
|
+
float(np.max(np.abs(low[2][:, :, 3:] - high[2][:, :, 3:])))
|
|
70
|
+
/ (support_scale * max(abs(skin.offset), np.finfo(float).tiny)),
|
|
71
|
+
)
|
|
72
|
+
self.integration_relative_error = max(errors)
|
|
73
|
+
if self.integration_relative_error > self.integration_relative_tolerance:
|
|
74
|
+
raise ValueError(
|
|
75
|
+
"warped Q4 contact integration tolerance exceeded: "
|
|
76
|
+
f"{self.integration_relative_error:.6g} > "
|
|
77
|
+
f"{self.integration_relative_tolerance:.6g}"
|
|
78
|
+
)
|
|
79
|
+
self.support, self.reference_weighted_gap, local_gradient = high
|
|
80
|
+
if np.any(self.support <= 0.0):
|
|
81
|
+
raise ValueError("warped Q4 pressure support must be positive")
|
|
82
|
+
self.gap_gradient = local_gradient.reshape(4, 24)
|
|
83
|
+
|
|
84
|
+
def _integrals(self, order: int):
|
|
85
|
+
positions, weights = np.polynomial.legendre.leggauss(order)
|
|
86
|
+
support = np.zeros(4)
|
|
87
|
+
weighted_gap = np.zeros(4)
|
|
88
|
+
gradient = np.zeros((4, 4, 6))
|
|
89
|
+
for xi, weight_xi in zip(positions, weights):
|
|
90
|
+
for eta, weight_eta in zip(positions, weights):
|
|
91
|
+
shape, _dx, _dy = self.skin.element.compute_shape_functions(
|
|
92
|
+
float(xi), float(eta),
|
|
93
|
+
)
|
|
94
|
+
shape = np.asarray(shape, dtype=float)
|
|
95
|
+
sample = self.skin.sample(float(xi), float(eta))
|
|
96
|
+
measure = float(weight_xi * weight_eta * sample.reference_measure)
|
|
97
|
+
reference_gap = float(self.normal @ (sample.position - self.point))
|
|
98
|
+
work = np.r_[self.normal,
|
|
99
|
+
self.skin.offset * np.cross(sample.director, self.normal)]
|
|
100
|
+
support += measure * shape
|
|
101
|
+
weighted_gap += measure * shape * reference_gap
|
|
102
|
+
gradient += measure * shape[:, None, None] * shape[None, :, None] * work
|
|
103
|
+
return support, weighted_gap, gradient
|
|
104
|
+
|
|
105
|
+
def evaluate(self, nodal_coordinates: np.ndarray, *,
|
|
106
|
+
plane_normal_translation: float = 0.0) -> WarpedQ4PlaneState:
|
|
107
|
+
coordinates = np.asarray(nodal_coordinates, dtype=float)
|
|
108
|
+
if coordinates.shape != (4, 6) or not np.all(np.isfinite(coordinates)):
|
|
109
|
+
raise ValueError("warped Q4 contact needs four finite six-DOF rows")
|
|
110
|
+
if not np.isfinite(plane_normal_translation):
|
|
111
|
+
raise ValueError("plane translation must be finite")
|
|
112
|
+
return _evaluate_penalty(
|
|
113
|
+
self.support, self.reference_weighted_gap, self.gap_gradient,
|
|
114
|
+
self.stiffness, coordinates, plane_normal_translation,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def _evaluate_penalty(support, reference_weighted_gap, gap_gradient,
|
|
119
|
+
stiffness, coordinates, plane_normal_translation):
|
|
120
|
+
weighted = (reference_weighted_gap
|
|
121
|
+
+ gap_gradient @ coordinates.reshape(-1)
|
|
122
|
+
- float(plane_normal_translation) * support)
|
|
123
|
+
normalized = weighted / support
|
|
124
|
+
closed_gap = np.minimum(normalized, 0.0)
|
|
125
|
+
closed = normalized <= 0.0
|
|
126
|
+
energy = 0.5 * stiffness * float(support @ (closed_gap * closed_gap))
|
|
127
|
+
residual = gap_gradient.T @ (stiffness * closed_gap)
|
|
128
|
+
tangent = (stiffness * gap_gradient[closed].T
|
|
129
|
+
@ np.diag(1.0 / support[closed])
|
|
130
|
+
@ gap_gradient[closed])
|
|
131
|
+
return WarpedQ4PlaneState(
|
|
132
|
+
weighted, normalized, energy, residual.reshape(coordinates.shape), tangent,
|
|
133
|
+
np.maximum(0.0, -stiffness * closed_gap),
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class WarpedQ4PatchPlaneMortar:
|
|
138
|
+
"""Continuous Q1 pressure supports over two edge-sharing Q4 skins."""
|
|
139
|
+
|
|
140
|
+
def __init__(self, skins, plane_point, plane_normal, stiffness, *,
|
|
141
|
+
quadrature_order, control_order,
|
|
142
|
+
integration_relative_tolerance):
|
|
143
|
+
if len(skins) != 2 or any(type(skin) is not WarpedQ4Skin for skin in skins):
|
|
144
|
+
raise ValueError("warped Q4 patch law needs exactly two physical skins")
|
|
145
|
+
self.skins = tuple(skins)
|
|
146
|
+
self.node_ids = tuple(sorted({node for skin in skins for node in skin.node_ids}))
|
|
147
|
+
index = {node: i for i, node in enumerate(self.node_ids)}
|
|
148
|
+
n_nodes = len(self.node_ids)
|
|
149
|
+
self.support = np.zeros(n_nodes)
|
|
150
|
+
self.reference_weighted_gap = np.zeros(n_nodes)
|
|
151
|
+
gradient = np.zeros((n_nodes, n_nodes, 6))
|
|
152
|
+
local_laws = tuple(WarpedQ4PlaneMortar(
|
|
153
|
+
skin, plane_point, plane_normal, stiffness,
|
|
154
|
+
quadrature_order=quadrature_order,
|
|
155
|
+
control_order=control_order,
|
|
156
|
+
integration_relative_tolerance=integration_relative_tolerance,
|
|
157
|
+
) for skin in skins)
|
|
158
|
+
for skin, law in zip(skins, local_laws):
|
|
159
|
+
local_gradient = law.gap_gradient.reshape(4, 4, 6)
|
|
160
|
+
for a, node_a in enumerate(skin.node_ids):
|
|
161
|
+
row = index[node_a]
|
|
162
|
+
self.support[row] += law.support[a]
|
|
163
|
+
self.reference_weighted_gap[row] += law.reference_weighted_gap[a]
|
|
164
|
+
for b, node_b in enumerate(skin.node_ids):
|
|
165
|
+
gradient[row, index[node_b]] += local_gradient[a, b]
|
|
166
|
+
if np.any(self.support <= 0.0):
|
|
167
|
+
raise ValueError("warped Q4 patch pressure support must be positive")
|
|
168
|
+
self.gap_gradient = gradient.reshape(n_nodes, 6 * n_nodes)
|
|
169
|
+
self.stiffness = float(stiffness)
|
|
170
|
+
self.integration_relative_error = max(
|
|
171
|
+
law.integration_relative_error for law in local_laws
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
def evaluate(self, nodal_coordinates: np.ndarray, *,
|
|
175
|
+
plane_normal_translation: float = 0.0) -> WarpedQ4PlaneState:
|
|
176
|
+
coordinates = np.asarray(nodal_coordinates, dtype=float)
|
|
177
|
+
if (coordinates.shape != (len(self.node_ids), 6)
|
|
178
|
+
or not np.all(np.isfinite(coordinates))):
|
|
179
|
+
raise ValueError("warped Q4 patch needs finite six-DOF nodal rows")
|
|
180
|
+
if not np.isfinite(plane_normal_translation):
|
|
181
|
+
raise ValueError("plane translation must be finite")
|
|
182
|
+
return _evaluate_penalty(
|
|
183
|
+
self.support, self.reference_weighted_gap, self.gap_gradient,
|
|
184
|
+
self.stiffness, coordinates, plane_normal_translation,
|
|
185
|
+
)
|