vfife 1.23.4__tar.gz

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.
Files changed (414) hide show
  1. vfife-1.23.4/LICENSE +21 -0
  2. vfife-1.23.4/PKG-INFO +196 -0
  3. vfife-1.23.4/README.md +152 -0
  4. vfife-1.23.4/pyproject.toml +95 -0
  5. vfife-1.23.4/setup.cfg +4 -0
  6. vfife-1.23.4/tests/test_abaqus.py +35 -0
  7. vfife-1.23.4/tests/test_added_mass.py +221 -0
  8. vfife-1.23.4/tests/test_api.py +80 -0
  9. vfife-1.23.4/tests/test_api_v1.py +107 -0
  10. vfife-1.23.4/tests/test_arc_control.py +175 -0
  11. vfife-1.23.4/tests/test_backends.py +710 -0
  12. vfife-1.23.4/tests/test_bar_length_scale.py +175 -0
  13. vfife-1.23.4/tests/test_bcs.py +509 -0
  14. vfife-1.23.4/tests/test_beam2.py +119 -0
  15. vfife-1.23.4/tests/test_beam2_timoshenko.py +129 -0
  16. vfife-1.23.4/tests/test_bond.py +413 -0
  17. vfife-1.23.4/tests/test_bond_cyclic.py +588 -0
  18. vfife-1.23.4/tests/test_bond_warp.py +138 -0
  19. vfife-1.23.4/tests/test_bonded.py +266 -0
  20. vfife-1.23.4/tests/test_bonded_anchorage.py +205 -0
  21. vfife-1.23.4/tests/test_bonded_convergence.py +96 -0
  22. vfife-1.23.4/tests/test_bonded_dynamic.py +166 -0
  23. vfife-1.23.4/tests/test_bonded_solver.py +329 -0
  24. vfife-1.23.4/tests/test_bouc_wen.py +145 -0
  25. vfife-1.23.4/tests/test_cable_temperature.py +126 -0
  26. vfife-1.23.4/tests/test_cables.py +223 -0
  27. vfife-1.23.4/tests/test_capabilities.py +110 -0
  28. vfife-1.23.4/tests/test_capability_alignment.py +214 -0
  29. vfife-1.23.4/tests/test_cases.py +278 -0
  30. vfife-1.23.4/tests/test_catalog.py +123 -0
  31. vfife-1.23.4/tests/test_cdp.py +414 -0
  32. vfife-1.23.4/tests/test_chaboche.py +296 -0
  33. vfife-1.23.4/tests/test_ci_layers.py +213 -0
  34. vfife-1.23.4/tests/test_compiled_breaking.py +597 -0
  35. vfife-1.23.4/tests/test_compiled_connectors.py +263 -0
  36. vfife-1.23.4/tests/test_compiled_contact.py +382 -0
  37. vfife-1.23.4/tests/test_compiled_moving.py +277 -0
  38. vfife-1.23.4/tests/test_compiled_prescribed.py +228 -0
  39. vfife-1.23.4/tests/test_compiled_relax.py +197 -0
  40. vfife-1.23.4/tests/test_compiled_shear.py +91 -0
  41. vfife-1.23.4/tests/test_compiled_step.py +297 -0
  42. vfife-1.23.4/tests/test_composite_materials.py +234 -0
  43. vfife-1.23.4/tests/test_concrete01.py +118 -0
  44. vfife-1.23.4/tests/test_concrete02.py +48 -0
  45. vfife-1.23.4/tests/test_concrete_strain_scale.py +96 -0
  46. vfife-1.23.4/tests/test_confederation.py +333 -0
  47. vfife-1.23.4/tests/test_connector2.py +288 -0
  48. vfife-1.23.4/tests/test_connector_birth.py +112 -0
  49. vfife-1.23.4/tests/test_connector_laws.py +268 -0
  50. vfife-1.23.4/tests/test_connector_material.py +227 -0
  51. vfife-1.23.4/tests/test_corroded_beam_degradation.py +101 -0
  52. vfife-1.23.4/tests/test_corrosion_preprocessing.py +119 -0
  53. vfife-1.23.4/tests/test_coupled.py +156 -0
  54. vfife-1.23.4/tests/test_crack_band_guard.py +169 -0
  55. vfife-1.23.4/tests/test_creep.py +340 -0
  56. vfife-1.23.4/tests/test_crushing_energy.py +103 -0
  57. vfife-1.23.4/tests/test_curves.py +191 -0
  58. vfife-1.23.4/tests/test_cyclic_displacement_control.py +128 -0
  59. vfife-1.23.4/tests/test_damage_class.py +56 -0
  60. vfife-1.23.4/tests/test_damping_alpha.py +147 -0
  61. vfife-1.23.4/tests/test_damping_omega.py +71 -0
  62. vfife-1.23.4/tests/test_damping_regions.py +175 -0
  63. vfife-1.23.4/tests/test_debris_stability.py +295 -0
  64. vfife-1.23.4/tests/test_diagnostics.py +71 -0
  65. vfife-1.23.4/tests/test_diaphragm.py +224 -0
  66. vfife-1.23.4/tests/test_dimensional_smoke.py +244 -0
  67. vfife-1.23.4/tests/test_dof.py +53 -0
  68. vfife-1.23.4/tests/test_element_and_bar_monitors.py +270 -0
  69. vfife-1.23.4/tests/test_element_regions.py +131 -0
  70. vfife-1.23.4/tests/test_element_registration.py +399 -0
  71. vfife-1.23.4/tests/test_end_offsets.py +859 -0
  72. vfife-1.23.4/tests/test_energy_damping.py +141 -0
  73. vfife-1.23.4/tests/test_erosion.py +278 -0
  74. vfife-1.23.4/tests/test_face_moment.py +215 -0
  75. vfife-1.23.4/tests/test_fiber_beam.py +378 -0
  76. vfife-1.23.4/tests/test_fiber_beam_kernel.py +421 -0
  77. vfife-1.23.4/tests/test_fiber_benchmarked.py +153 -0
  78. vfife-1.23.4/tests/test_fiber_connector.py +311 -0
  79. vfife-1.23.4/tests/test_fiber_creep.py +410 -0
  80. vfife-1.23.4/tests/test_fiber_integration.py +50 -0
  81. vfife-1.23.4/tests/test_fiber_integration_rules.py +124 -0
  82. vfife-1.23.4/tests/test_fiber_sections.py +293 -0
  83. vfife-1.23.4/tests/test_fiber_sections_rc.py +212 -0
  84. vfife-1.23.4/tests/test_fiber_segment_ages.py +236 -0
  85. vfife-1.23.4/tests/test_fiber_shear.py +184 -0
  86. vfife-1.23.4/tests/test_fiber_stage_ramp.py +111 -0
  87. vfife-1.23.4/tests/test_fiber_tendons.py +292 -0
  88. vfife-1.23.4/tests/test_finite_rotations.py +185 -0
  89. vfife-1.23.4/tests/test_formfind.py +185 -0
  90. vfife-1.23.4/tests/test_fracture.py +414 -0
  91. vfife-1.23.4/tests/test_frame_kernel.py +94 -0
  92. vfife-1.23.4/tests/test_frame_solver_at_scale.py +229 -0
  93. vfife-1.23.4/tests/test_frame_threads.py +78 -0
  94. vfife-1.23.4/tests/test_free_flight.py +113 -0
  95. vfife-1.23.4/tests/test_front_page.py +79 -0
  96. vfife-1.23.4/tests/test_gmsh.py +362 -0
  97. vfife-1.23.4/tests/test_ground_motion.py +155 -0
  98. vfife-1.23.4/tests/test_hexa20.py +149 -0
  99. vfife-1.23.4/tests/test_hold_in_place.py +222 -0
  100. vfife-1.23.4/tests/test_hollow_member_buckling.py +198 -0
  101. vfife-1.23.4/tests/test_hollow_section.py +120 -0
  102. vfife-1.23.4/tests/test_hollow_sections.py +217 -0
  103. vfife-1.23.4/tests/test_host_deduction_guard.py +131 -0
  104. vfife-1.23.4/tests/test_hzb_bearings.py +151 -0
  105. vfife-1.23.4/tests/test_hzb_girder.py +273 -0
  106. vfife-1.23.4/tests/test_input_blocks.py +288 -0
  107. vfife-1.23.4/tests/test_input_model.py +156 -0
  108. vfife-1.23.4/tests/test_invariants.py +283 -0
  109. vfife-1.23.4/tests/test_jack.py +176 -0
  110. vfife-1.23.4/tests/test_kernel_cache.py +136 -0
  111. vfife-1.23.4/tests/test_kinematics.py +197 -0
  112. vfife-1.23.4/tests/test_lateral_torsional.py +387 -0
  113. vfife-1.23.4/tests/test_lint.py +19 -0
  114. vfife-1.23.4/tests/test_mass_scaling_initial_state.py +198 -0
  115. vfife-1.23.4/tests/test_material_blocks.py +362 -0
  116. vfife-1.23.4/tests/test_material_invariants.py +410 -0
  117. vfife-1.23.4/tests/test_material_points.py +66 -0
  118. vfife-1.23.4/tests/test_material_review.py +124 -0
  119. vfife-1.23.4/tests/test_material_selection.py +146 -0
  120. vfife-1.23.4/tests/test_member_contact.py +468 -0
  121. vfife-1.23.4/tests/test_member_failure.py +743 -0
  122. vfife-1.23.4/tests/test_member_materials.py +366 -0
  123. vfife-1.23.4/tests/test_mesh_review.py +244 -0
  124. vfife-1.23.4/tests/test_midas.py +186 -0
  125. vfife-1.23.4/tests/test_midas_case.py +461 -0
  126. vfife-1.23.4/tests/test_midas_creep.py +170 -0
  127. vfife-1.23.4/tests/test_midas_gaps.py +1301 -0
  128. vfife-1.23.4/tests/test_midas_settlement.py +68 -0
  129. vfife-1.23.4/tests/test_midas_temperature.py +132 -0
  130. vfife-1.23.4/tests/test_mixed_mesh.py +660 -0
  131. vfife-1.23.4/tests/test_mixed_precision_guard.py +144 -0
  132. vfife-1.23.4/tests/test_mixed_structural.py +35 -0
  133. vfife-1.23.4/tests/test_modal.py +276 -0
  134. vfife-1.23.4/tests/test_model_view.py +387 -0
  135. vfife-1.23.4/tests/test_modes_paraview.py +150 -0
  136. vfife-1.23.4/tests/test_moving_load.py +226 -0
  137. vfife-1.23.4/tests/test_multi_support.py +300 -0
  138. vfife-1.23.4/tests/test_numba_cache.py +92 -0
  139. vfife-1.23.4/tests/test_numba_embedded.py +132 -0
  140. vfife-1.23.4/tests/test_offset_arms.py +99 -0
  141. vfife-1.23.4/tests/test_opensees_reference.py +100 -0
  142. vfife-1.23.4/tests/test_orthotropic.py +112 -0
  143. vfife-1.23.4/tests/test_particle_split.py +463 -0
  144. vfife-1.23.4/tests/test_patch_material.py +160 -0
  145. vfife-1.23.4/tests/test_path_reinforcement.py +329 -0
  146. vfife-1.23.4/tests/test_piecewise_uniaxial.py +172 -0
  147. vfife-1.23.4/tests/test_plastic_hinge.py +98 -0
  148. vfife-1.23.4/tests/test_post.py +223 -0
  149. vfife-1.23.4/tests/test_post_review.py +181 -0
  150. vfife-1.23.4/tests/test_preflight.py +85 -0
  151. vfife-1.23.4/tests/test_prescribed_from_a_moved_state.py +185 -0
  152. vfife-1.23.4/tests/test_prestress.py +463 -0
  153. vfife-1.23.4/tests/test_problem.py +187 -0
  154. vfife-1.23.4/tests/test_py310_syntax.py +52 -0
  155. vfife-1.23.4/tests/test_pyramid5.py +157 -0
  156. vfife-1.23.4/tests/test_qualification.py +142 -0
  157. vfife-1.23.4/tests/test_rc_fiber.py +88 -0
  158. vfife-1.23.4/tests/test_reading_is_not_a_step.py +181 -0
  159. vfife-1.23.4/tests/test_readme_examples.py +173 -0
  160. vfife-1.23.4/tests/test_rebar.py +229 -0
  161. vfife-1.23.4/tests/test_reference.py +67 -0
  162. vfife-1.23.4/tests/test_reinforcement_fields.py +266 -0
  163. vfife-1.23.4/tests/test_relaxation_budget.py +73 -0
  164. vfife-1.23.4/tests/test_response_spectrum.py +160 -0
  165. vfife-1.23.4/tests/test_rest_stays_at_rest.py +213 -0
  166. vfife-1.23.4/tests/test_restart_across_versions.py +64 -0
  167. vfife-1.23.4/tests/test_restart_resumes.py +309 -0
  168. vfife-1.23.4/tests/test_result_format.py +141 -0
  169. vfife-1.23.4/tests/test_review3.py +424 -0
  170. vfife-1.23.4/tests/test_review4_cli.py +701 -0
  171. vfife-1.23.4/tests/test_review4_creep.py +535 -0
  172. vfife-1.23.4/tests/test_review4_fracture.py +512 -0
  173. vfife-1.23.4/tests/test_review4_seismic.py +528 -0
  174. vfife-1.23.4/tests/test_review4_vehicle.py +432 -0
  175. vfife-1.23.4/tests/test_review5_fibre.py +428 -0
  176. vfife-1.23.4/tests/test_review5_io.py +697 -0
  177. vfife-1.23.4/tests/test_review5_static.py +454 -0
  178. vfife-1.23.4/tests/test_review6_bridge.py +402 -0
  179. vfife-1.23.4/tests/test_review6_docs.py +379 -0
  180. vfife-1.23.4/tests/test_review6_followup.py +290 -0
  181. vfife-1.23.4/tests/test_review6_service.py +403 -0
  182. vfife-1.23.4/tests/test_review6_ux.py +287 -0
  183. vfife-1.23.4/tests/test_review_fixes.py +140 -0
  184. vfife-1.23.4/tests/test_rigid_contact.py +225 -0
  185. vfife-1.23.4/tests/test_rigid_links.py +476 -0
  186. vfife-1.23.4/tests/test_rupture_staged.py +227 -0
  187. vfife-1.23.4/tests/test_scaffold.py +84 -0
  188. vfife-1.23.4/tests/test_scope_review.py +225 -0
  189. vfife-1.23.4/tests/test_sections.py +68 -0
  190. vfife-1.23.4/tests/test_seismic_devices.py +276 -0
  191. vfife-1.23.4/tests/test_shell3.py +117 -0
  192. vfife-1.23.4/tests/test_shell4.py +206 -0
  193. vfife-1.23.4/tests/test_shell_at_scale.py +210 -0
  194. vfife-1.23.4/tests/test_solver.py +286 -0
  195. vfife-1.23.4/tests/test_solver_boundary.py +222 -0
  196. vfife-1.23.4/tests/test_solver_defaults.py +117 -0
  197. vfife-1.23.4/tests/test_solver_protocol.py +53 -0
  198. vfife-1.23.4/tests/test_stability_row_sums.py +262 -0
  199. vfife-1.23.4/tests/test_staging.py +198 -0
  200. vfife-1.23.4/tests/test_state_baseline.py +195 -0
  201. vfife-1.23.4/tests/test_static.py +369 -0
  202. vfife-1.23.4/tests/test_static_clock.py +168 -0
  203. vfife-1.23.4/tests/test_static_fallback.py +348 -0
  204. vfife-1.23.4/tests/test_static_review.py +154 -0
  205. vfife-1.23.4/tests/test_steel02.py +244 -0
  206. vfife-1.23.4/tests/test_steel02_rupture.py +186 -0
  207. vfife-1.23.4/tests/test_steel_cyclic.py +704 -0
  208. vfife-1.23.4/tests/test_step_ordering.py +69 -0
  209. vfife-1.23.4/tests/test_strain_penetration.py +268 -0
  210. vfife-1.23.4/tests/test_sweep.py +377 -0
  211. vfife-1.23.4/tests/test_tangent_members.py +212 -0
  212. vfife-1.23.4/tests/test_temperature.py +245 -0
  213. vfife-1.23.4/tests/test_tendon_block.py +342 -0
  214. vfife-1.23.4/tests/test_tendon_friction.py +300 -0
  215. vfife-1.23.4/tests/test_tensor.py +53 -0
  216. vfife-1.23.4/tests/test_truss2.py +153 -0
  217. vfife-1.23.4/tests/test_truss_batch.py +111 -0
  218. vfife-1.23.4/tests/test_uniaxial_numba.py +110 -0
  219. vfife-1.23.4/tests/test_v11_buckling.py +199 -0
  220. vfife-1.23.4/tests/test_v11_line_mass_and_fields.py +217 -0
  221. vfife-1.23.4/tests/test_v11_line_mesh.py +178 -0
  222. vfife-1.23.4/tests/test_v11_summary.py +108 -0
  223. vfife-1.23.4/tests/test_v12_new.py +79 -0
  224. vfife-1.23.4/tests/test_v12_sections.py +293 -0
  225. vfife-1.23.4/tests/test_v12_soil_springs.py +229 -0
  226. vfife-1.23.4/tests/test_v12_steps.py +676 -0
  227. vfife-1.23.4/tests/test_vehicle.py +151 -0
  228. vfife-1.23.4/tests/test_verification.py +81 -0
  229. vfife-1.23.4/tests/test_verification_reductions.py +139 -0
  230. vfife-1.23.4/tests/test_version.py +80 -0
  231. vfife-1.23.4/tests/test_view.py +269 -0
  232. vfife-1.23.4/tests/test_viscoelastic.py +59 -0
  233. vfife-1.23.4/tests/test_wedge15.py +95 -0
  234. vfife-1.23.4/tests/test_workflow.py +740 -0
  235. vfife-1.23.4/tests/test_yamlfmt.py +62 -0
  236. vfife-1.23.4/vfife/__init__.py +2 -0
  237. vfife-1.23.4/vfife/__main__.py +2 -0
  238. vfife-1.23.4/vfife/api.py +1190 -0
  239. vfife-1.23.4/vfife/assemble.py +248 -0
  240. vfife-1.23.4/vfife/base/__init__.py +8 -0
  241. vfife-1.23.4/vfife/base/compat.py +11 -0
  242. vfife-1.23.4/vfife/base/dof.py +115 -0
  243. vfife-1.23.4/vfife/base/errors.py +76 -0
  244. vfife-1.23.4/vfife/base/rotations.py +144 -0
  245. vfife-1.23.4/vfife/base/scatter.py +20 -0
  246. vfife-1.23.4/vfife/base/tensor.py +69 -0
  247. vfife-1.23.4/vfife/base/voigt.py +75 -0
  248. vfife-1.23.4/vfife/buckling.py +734 -0
  249. vfife-1.23.4/vfife/catalog.py +59 -0
  250. vfife-1.23.4/vfife/cli.py +1803 -0
  251. vfife-1.23.4/vfife/codes/__init__.py +16 -0
  252. vfife-1.23.4/vfife/codes/jtg3362.py +47 -0
  253. vfife-1.23.4/vfife/core/__init__.py +0 -0
  254. vfife-1.23.4/vfife/core/added_mass.py +242 -0
  255. vfife-1.23.4/vfife/core/amplitude.py +185 -0
  256. vfife-1.23.4/vfife/core/analysis_steps.py +1306 -0
  257. vfife-1.23.4/vfife/core/beam_family.py +1907 -0
  258. vfife-1.23.4/vfife/core/beam_solver.py +1639 -0
  259. vfife-1.23.4/vfife/core/capabilities.py +166 -0
  260. vfife-1.23.4/vfife/core/compiled_step.py +1282 -0
  261. vfife-1.23.4/vfife/core/components.py +102 -0
  262. vfife-1.23.4/vfife/core/connector_solver.py +32 -0
  263. vfife-1.23.4/vfife/core/constraints.py +884 -0
  264. vfife-1.23.4/vfife/core/coupled_solver.py +202 -0
  265. vfife-1.23.4/vfife/core/creep.py +732 -0
  266. vfife-1.23.4/vfife/core/damping.py +142 -0
  267. vfife-1.23.4/vfife/core/diagnostics.py +151 -0
  268. vfife-1.23.4/vfife/core/dof.py +6 -0
  269. vfife-1.23.4/vfife/core/end_offsets.py +232 -0
  270. vfife-1.23.4/vfife/core/families.py +377 -0
  271. vfife-1.23.4/vfife/core/fiber_beam_solver.py +1905 -0
  272. vfife-1.23.4/vfife/core/fiber_fracture.py +434 -0
  273. vfife-1.23.4/vfife/core/fiber_sections.py +1011 -0
  274. vfife-1.23.4/vfife/core/fiber_time.py +371 -0
  275. vfife-1.23.4/vfife/core/fracture.py +301 -0
  276. vfife-1.23.4/vfife/core/ground.py +243 -0
  277. vfife-1.23.4/vfife/core/mass_scaling.py +125 -0
  278. vfife-1.23.4/vfife/core/member_actions.py +116 -0
  279. vfife-1.23.4/vfife/core/member_axes.py +196 -0
  280. vfife-1.23.4/vfife/core/member_contact.py +608 -0
  281. vfife-1.23.4/vfife/core/member_failure.py +362 -0
  282. vfife-1.23.4/vfife/core/member_geometry.py +342 -0
  283. vfife-1.23.4/vfife/core/mesh.py +719 -0
  284. vfife-1.23.4/vfife/core/mixed_structural_solver.py +912 -0
  285. vfife-1.23.4/vfife/core/model_totals.py +154 -0
  286. vfife-1.23.4/vfife/core/monitors.py +70 -0
  287. vfife-1.23.4/vfife/core/moving_load.py +355 -0
  288. vfife-1.23.4/vfife/core/orientation.py +690 -0
  289. vfife-1.23.4/vfife/core/problem.py +208 -0
  290. vfife-1.23.4/vfife/core/protocol.py +119 -0
  291. vfife-1.23.4/vfife/core/relaxation.py +185 -0
  292. vfife-1.23.4/vfife/core/resume.py +368 -0
  293. vfife-1.23.4/vfife/core/rigid_contact.py +256 -0
  294. vfife-1.23.4/vfife/core/rotations.py +6 -0
  295. vfife-1.23.4/vfife/core/selectors.py +339 -0
  296. vfife-1.23.4/vfife/core/shell_line_solver.py +151 -0
  297. vfife-1.23.4/vfife/core/shell_solver.py +484 -0
  298. vfife-1.23.4/vfife/core/soil.py +233 -0
  299. vfife-1.23.4/vfife/core/solver.py +2629 -0
  300. vfife-1.23.4/vfife/core/staging.py +171 -0
  301. vfife-1.23.4/vfife/core/step_state.py +83 -0
  302. vfife-1.23.4/vfife/core/structural.py +117 -0
  303. vfife-1.23.4/vfife/core/temperature.py +102 -0
  304. vfife-1.23.4/vfife/core/topology.py +213 -0
  305. vfife-1.23.4/vfife/core/truss_solver.py +622 -0
  306. vfife-1.23.4/vfife/core/units.py +265 -0
  307. vfife-1.23.4/vfife/core/vehicle.py +424 -0
  308. vfife-1.23.4/vfife/elements/__init__.py +4 -0
  309. vfife-1.23.4/vfife/elements/bonded.py +391 -0
  310. vfife-1.23.4/vfife/elements/connector.py +659 -0
  311. vfife-1.23.4/vfife/elements/continuum.py +546 -0
  312. vfife-1.23.4/vfife/elements/fiber_section.py +309 -0
  313. vfife-1.23.4/vfife/elements/library.py +916 -0
  314. vfife-1.23.4/vfife/elements/shell.py +177 -0
  315. vfife-1.23.4/vfife/elements/stability.py +263 -0
  316. vfife-1.23.4/vfife/elements/truss.py +725 -0
  317. vfife-1.23.4/vfife/formfind.py +253 -0
  318. vfife-1.23.4/vfife/implicit.py +1738 -0
  319. vfife-1.23.4/vfife/io/__init__.py +0 -0
  320. vfife-1.23.4/vfife/io/abaqus.py +84 -0
  321. vfife-1.23.4/vfife/io/fingerprint.py +419 -0
  322. vfife-1.23.4/vfife/io/gmsh.py +923 -0
  323. vfife-1.23.4/vfife/io/line_mesh.py +228 -0
  324. vfife-1.23.4/vfife/io/midas.py +869 -0
  325. vfife-1.23.4/vfife/io/midas_case/__init__.py +78 -0
  326. vfife-1.23.4/vfife/io/midas_case/convert.py +1779 -0
  327. vfife-1.23.4/vfife/io/midas_case/geometry.py +78 -0
  328. vfife-1.23.4/vfife/io/midas_case/prepare.py +252 -0
  329. vfife-1.23.4/vfife/io/midas_case/shapes.py +173 -0
  330. vfife-1.23.4/vfife/io/midas_case/tendons.py +139 -0
  331. vfife-1.23.4/vfife/io/midas_case/time_effects.py +155 -0
  332. vfife-1.23.4/vfife/io/migrate.py +347 -0
  333. vfife-1.23.4/vfife/io/model.py +1740 -0
  334. vfife-1.23.4/vfife/io/schema.py +2927 -0
  335. vfife-1.23.4/vfife/io/writer.py +847 -0
  336. vfife-1.23.4/vfife/io/yamlfmt.py +114 -0
  337. vfife-1.23.4/vfife/kernels/__init__.py +123 -0
  338. vfife-1.23.4/vfife/kernels/_cache.py +97 -0
  339. vfife-1.23.4/vfife/kernels/assembly.py +59 -0
  340. vfife-1.23.4/vfife/kernels/numba_connector.py +464 -0
  341. vfife-1.23.4/vfife/kernels/numba_embedded.py +130 -0
  342. vfife-1.23.4/vfife/kernels/numba_fiber_beam.py +450 -0
  343. vfife-1.23.4/vfife/kernels/numba_frame.py +332 -0
  344. vfife-1.23.4/vfife/kernels/numba_hexa8.py +320 -0
  345. vfife-1.23.4/vfife/kernels/numba_loads.py +185 -0
  346. vfife-1.23.4/vfife/kernels/numba_member_contact.py +476 -0
  347. vfife-1.23.4/vfife/kernels/numba_rotations.py +263 -0
  348. vfife-1.23.4/vfife/kernels/numba_shell4.py +172 -0
  349. vfife-1.23.4/vfife/kernels/numba_step.py +1361 -0
  350. vfife-1.23.4/vfife/kernels/scalar.py +156 -0
  351. vfife-1.23.4/vfife/kernels/warp_backend.py +992 -0
  352. vfife-1.23.4/vfife/kernels/warp_materials.py +664 -0
  353. vfife-1.23.4/vfife/kernels/warp_scalar.py +143 -0
  354. vfife-1.23.4/vfife/kernels/warp_shell4.py +622 -0
  355. vfife-1.23.4/vfife/materials/__init__.py +21 -0
  356. vfife-1.23.4/vfife/materials/base.py +383 -0
  357. vfife-1.23.4/vfife/materials/bond.py +379 -0
  358. vfife-1.23.4/vfife/materials/bond_cyclic.py +413 -0
  359. vfife-1.23.4/vfife/materials/bouc_wen.py +211 -0
  360. vfife-1.23.4/vfife/materials/cdp.py +760 -0
  361. vfife-1.23.4/vfife/materials/chaboche.py +448 -0
  362. vfife-1.23.4/vfife/materials/composite.py +378 -0
  363. vfife-1.23.4/vfife/materials/concrete01.py +230 -0
  364. vfife-1.23.4/vfife/materials/concrete02.py +321 -0
  365. vfife-1.23.4/vfife/materials/curves.py +499 -0
  366. vfife-1.23.4/vfife/materials/elastic.py +83 -0
  367. vfife-1.23.4/vfife/materials/factory.py +31 -0
  368. vfife-1.23.4/vfife/materials/j2.py +242 -0
  369. vfife-1.23.4/vfife/materials/orthotropic.py +136 -0
  370. vfife-1.23.4/vfife/materials/piecewise_uniaxial.py +209 -0
  371. vfife-1.23.4/vfife/materials/points.py +103 -0
  372. vfife-1.23.4/vfife/materials/rebar.py +205 -0
  373. vfife-1.23.4/vfife/materials/steel02.py +368 -0
  374. vfife-1.23.4/vfife/materials/steel_cyclic.py +661 -0
  375. vfife-1.23.4/vfife/materials/viscoelastic.py +97 -0
  376. vfife-1.23.4/vfife/modal.py +420 -0
  377. vfife-1.23.4/vfife/post/__init__.py +300 -0
  378. vfife-1.23.4/vfife/post/model_page.py +798 -0
  379. vfife-1.23.4/vfife/post/model_view.py +613 -0
  380. vfife-1.23.4/vfife/post/modes_vtk.py +165 -0
  381. vfife-1.23.4/vfife/post/summary.py +501 -0
  382. vfife-1.23.4/vfife/post/tendons.py +126 -0
  383. vfife-1.23.4/vfife/post/view.py +760 -0
  384. vfife-1.23.4/vfife/post/view_page.py +768 -0
  385. vfife-1.23.4/vfife/preflight.py +1798 -0
  386. vfife-1.23.4/vfife/prep/__init__.py +71 -0
  387. vfife-1.23.4/vfife/prep/blocks.py +349 -0
  388. vfife-1.23.4/vfife/prep/offsets.py +222 -0
  389. vfife-1.23.4/vfife/prep/tendons.py +559 -0
  390. vfife-1.23.4/vfife/qualification.py +144 -0
  391. vfife-1.23.4/vfife/reference.py +741 -0
  392. vfife-1.23.4/vfife/scaffold.py +237 -0
  393. vfife-1.23.4/vfife/section_shapes.py +561 -0
  394. vfife-1.23.4/vfife/sections.py +156 -0
  395. vfife-1.23.4/vfife/spectrum.py +335 -0
  396. vfife-1.23.4/vfife/sweep.py +593 -0
  397. vfife-1.23.4/vfife/templates/arch.yaml +44 -0
  398. vfife-1.23.4/vfife/templates/cable.yaml +45 -0
  399. vfife-1.23.4/vfife/templates/girder.yaml +58 -0
  400. vfife-1.23.4/vfife/templates/pier_on_piles.yaml +51 -0
  401. vfife-1.23.4/vfife/tensor.py +6 -0
  402. vfife-1.23.4/vfife/testing/__init__.py +21 -0
  403. vfife-1.23.4/vfife/testing/invariants.py +372 -0
  404. vfife-1.23.4/vfife/testing/materials.py +818 -0
  405. vfife-1.23.4/vfife/testing/models.py +657 -0
  406. vfife-1.23.4/vfife/testing/state.py +393 -0
  407. vfife-1.23.4/vfife/verification.py +313 -0
  408. vfife-1.23.4/vfife/voigt.py +6 -0
  409. vfife-1.23.4/vfife.egg-info/PKG-INFO +196 -0
  410. vfife-1.23.4/vfife.egg-info/SOURCES.txt +412 -0
  411. vfife-1.23.4/vfife.egg-info/dependency_links.txt +1 -0
  412. vfife-1.23.4/vfife.egg-info/entry_points.txt +2 -0
  413. vfife-1.23.4/vfife.egg-info/requires.txt +22 -0
  414. vfife-1.23.4/vfife.egg-info/top_level.txt +1 -0
vfife-1.23.4/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 maolin2000
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
vfife-1.23.4/PKG-INFO ADDED
@@ -0,0 +1,196 @@
1
+ Metadata-Version: 2.4
2
+ Name: vfife
3
+ Version: 1.23.4
4
+ Summary: Explicit structural solver (VFIFE) for bridges, from construction stages to earthquake and collapse
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/maolin2000/vfife
7
+ Project-URL: Documentation, https://github.com/maolin2000/vfife/blob/master/docs/user_manual.md
8
+ Project-URL: Repository, https://github.com/maolin2000/vfife
9
+ Project-URL: Issues, https://github.com/maolin2000/vfife/issues
10
+ Project-URL: Changelog, https://github.com/maolin2000/vfife/blob/master/CHANGELOG.md
11
+ Project-URL: DOI, https://doi.org/10.5281/zenodo.24594822
12
+ Keywords: finite element,VFIFE,bridge,explicit dynamics,dynamic relaxation,fibre beam,progressive collapse,seismic
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Scientific/Engineering
21
+ Classifier: Topic :: Scientific/Engineering :: Physics
22
+ Classifier: Operating System :: OS Independent
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: numpy<3,>=1.24
27
+ Requires-Dist: scipy<2,>=1.10
28
+ Requires-Dist: pydantic<3,>=2.0
29
+ Requires-Dist: pyyaml<7,>=6.0
30
+ Requires-Dist: h5py<4,>=3.8
31
+ Provides-Extra: dev
32
+ Requires-Dist: pytest>=7.0; extra == "dev"
33
+ Requires-Dist: pytest-xdist>=3.0; extra == "dev"
34
+ Requires-Dist: ruff>=0.4; extra == "dev"
35
+ Provides-Extra: plot
36
+ Requires-Dist: matplotlib<4,>=3.6; extra == "plot"
37
+ Provides-Extra: cpu
38
+ Requires-Dist: numba<1,>=0.59; extra == "cpu"
39
+ Provides-Extra: gpu
40
+ Requires-Dist: warp-lang<2,>=1.16; extra == "gpu"
41
+ Provides-Extra: paraview
42
+ Requires-Dist: meshio<6,>=5.3; extra == "paraview"
43
+ Dynamic: license-file
44
+
45
+ # vfife
46
+
47
+ [![CI](https://github.com/maolin2000/vfife/actions/workflows/ci.yml/badge.svg)](https://github.com/maolin2000/vfife/actions/workflows/ci.yml)
48
+ [![Release](https://img.shields.io/github/v/release/maolin2000/vfife)](https://github.com/maolin2000/vfife/releases)
49
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org)
50
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://github.com/maolin2000/vfife/blob/master/LICENSE)
51
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24594822.svg)](https://doi.org/10.5281/zenodo.24594822)
52
+
53
+ vfife is a structural analysis program for bridges, based on the vector form intrinsic finite element method (VFIFE). It integrates the motion of every point explicitly, so large displacements, yielding, member fracture, falling debris and contact need no special treatment. The same model also gives the static dead-load state, construction stages, modes and buckling loads.
54
+
55
+ A model is one YAML file, run from the command line or the Python API. Meshes come from the case file, Gmsh or a converted Midas Civil model; results are written as XDMF/HDF5 for ParaView.
56
+
57
+ **Version 1.23.4** · MIT licence · [CHANGELOG](https://github.com/maolin2000/vfife/blob/master/CHANGELOG.md). The case, result and checkpoint formats and the Python API have been stable since 1.0.
58
+
59
+ ## Features
60
+
61
+ | | |
62
+ |---|---|
63
+ | Elements | Euler–Bernoulli and Timoshenko beams; fibre beams with concrete and steel laws; bars and cables; connectors and bearings; shells (experimental); solids with embedded or bonded reinforcement and tendons |
64
+ | Statics | dynamic relaxation, Newton statics, arc length, cable form-finding, construction stages with members built and removed |
65
+ | Time-dependent | creep, shrinkage and tendon relaxation with each segment's own age; temperature |
66
+ | Dynamics | uniform and multi-support ground motion, response spectrum, moving loads and sprung vehicles on rough decks, friction bearings and dampers, p-y soil springs, added water mass |
67
+ | Collapse | member and fibre fracture with separation, falling spans, contact between members and with the ground |
68
+ | Stability | modes about a loaded state, linear and lateral-torsional buckling |
69
+ | Interfaces | Midas Civil conversion, Gmsh meshes, ParaView output, two read-only web viewers (`vfife view`) |
70
+
71
+ ## Installation
72
+
73
+ ```bash
74
+ pip install "vfife[cpu]" # from PyPI; [cpu] adds numba
75
+ pip install "vfife-1.23.4-py3-none-any.whl[cpu]" # or the wheel from the Releases page
76
+ ```
77
+
78
+ From source:
79
+
80
+ ```bash
81
+ git clone https://github.com/maolin2000/vfife.git
82
+ cd vfife
83
+ pip install -e ".[dev,plot,cpu]"
84
+ ```
85
+
86
+ Python 3.10 or newer. Optional extras: `[cpu]` (numba, needed for models of any size), `[gpu]` (Warp/CUDA, for large solid models), `[plot]` (matplotlib). `environment.yml` defines the equivalent Conda environment.
87
+
88
+ ## Quick start
89
+
90
+ ```bash
91
+ vfife new girder # write a three-span girder case
92
+ vfife info girder.yaml # check the model before solving
93
+ vfife run girder.yaml # dead-load state
94
+ vfife summary results/girder.h5
95
+ vfife modal girder.yaml # natural modes
96
+ vfife view results/girder.h5 # replay the result in a web page
97
+ ```
98
+
99
+ The case written by `vfife new girder`:
100
+
101
+ ```yaml
102
+ version: 1
103
+ name: girder
104
+ units: {length: m, force: N, stress: Pa}
105
+ mesh:
106
+ type: lines
107
+ points:
108
+ A: [0.0, 0.0, 0.0]
109
+ B: [30.0, 0.0, 0.0]
110
+ C: [70.0, 0.0, 0.0]
111
+ D: [100.0, 0.0, 0.0]
112
+ mid_main: [50.0, 0.0, 0.0]
113
+ lines:
114
+ side_1: {through: [A, B], size: 2.0}
115
+ main: {through: [B, mid_main, C], size: 2.0}
116
+ side_2: {through: [C, D], size: 2.0}
117
+ groups:
118
+ girder: [side_1, main, side_2]
119
+ materials:
120
+ steel: {type: linear_elastic, E: 2.06e+11, nu: 0.3, rho: 7850.0}
121
+ sections:
122
+ box: {type: beam, material: steel, shape: general, area: 0.35, iy: 1.2, iz: 6.0, j: 2.0}
123
+ assign:
124
+ - {region: girder, section: box, orientation: [0, 1, 0]}
125
+ constraints:
126
+ - {region: A, dofs: [1, 1, 1, 1, 0, 0]}
127
+ - {region: B, dofs: [0, 1, 1, 1, 0, 0]}
128
+ - {region: C, dofs: [0, 1, 1, 1, 0, 0]}
129
+ - {region: D, dofs: [0, 1, 1, 1, 0, 0]}
130
+ loads:
131
+ - {region: all, gravity: [0.0, 0.0, -9.80665]}
132
+ - {region: girder, line_load: [0.0, 0.0, -6.0e+4], with_mass: true}
133
+ solver: {mode: static, backend: numpy}
134
+ output:
135
+ path: results/girder.h5
136
+ monitors:
137
+ w_main: {kind: displacement, region: mid_main, dof: z}
138
+ R_B: {kind: reaction, region: B, dof: z}
139
+ ```
140
+
141
+ For a Gmsh mesh, `vfife mesh file.msh` lists its contents and `vfife init` writes a first case around it; `vfife schema` gives editors completion for case files. From Python:
142
+
143
+ ```python
144
+ from vfife.api import run_case
145
+ result = run_case("girder.yaml")
146
+ print(result.status, result.monitors["w_main"][-1])
147
+ ```
148
+
149
+ ## Documentation
150
+
151
+ - [User manual](https://github.com/maolin2000/vfife/blob/master/docs/user_manual.md): modelling, the case file, the command line, a complete worked bridge
152
+ - [Tutorial](https://github.com/maolin2000/vfife/blob/master/docs/tutorial.md): one analysis from Gmsh mesh to hand check
153
+ - [YAML reference](https://github.com/maolin2000/vfife/blob/master/docs/yaml_reference.md), [API reference](https://github.com/maolin2000/vfife/blob/master/docs/api_reference.md), [error codes](https://github.com/maolin2000/vfife/blob/master/docs/error_codes.md): generated from the code
154
+ - [Reference cases](https://github.com/maolin2000/vfife/blob/master/cases/README.md): The 67 reference cases and what each is checked against
155
+ - [Technical notes](https://github.com/maolin2000/vfife/blob/master/docs/technical_notes.md): design decisions and verification records
156
+
157
+ ## Verification
158
+
159
+ Every reference case has a contract under `verification/` with the values it must reproduce and their tolerances, checked before each release. The references include closed-form solutions (elastica, Irvine's catenary, Frýba's moving load, Yang and Yau's sprung mass, Lee's frame, the 45° bend), laboratory tests (Tanaka and Park's column, Vecchio and Emara's frame, the Alberta and Chalmers beams, hollow-core slabs loaded to failure), measured deflections of the Confederation Bridge and published analyses of the Hangzhou Bay Bridge's 70 m girders. Compiled paths are tested to give the same results as the reference loop to the bit, and a restart the same as an uninterrupted run. `vfife probe case.yaml` checks a user's model for symmetry of the tangent, free rigid-body motion and stability of the time step.
160
+
161
+ ## Limitations
162
+
163
+ - Beams have six degrees of freedom per node: no warping, so open thin-walled sections in non-uniform torsion and distortion of box girders are not modelled.
164
+ - Shear in fibre sections is a member-level law, not a field theory.
165
+ - Shells (`shell4`, `shell3`, `shell_line`) are experimental and not covered by the 1.0 promises: `shell4` is too stiff in bending (2–30%, not removed by refinement) and `shell3` locks in shear. `vfife capabilities` lists them as EXPERIMENTAL and preflight warns on every shell model.
166
+ - Soil springs are monotonic p-y curves.
167
+ - Contact between members uses capsules of a given radius.
168
+ - Explicit time steps are small; static and long-duration problems use relaxation, Newton statics or analysis steps.
169
+ - No aerodynamics, fluids, soil continua or design-code checks.
170
+
171
+ The full list is in section 16 of the user manual.
172
+
173
+ ## Citation
174
+
175
+ Cite the version used: each release has its own DOI, listed on the [Zenodo record](https://doi.org/10.5281/zenodo.24594822); the DOI below stands for all versions. `CITATION.cff` has the metadata.
176
+
177
+ ```bibtex
178
+ @software{tian_vfife,
179
+ author = {Tian, Maolin},
180
+ title = {vfife: vector form intrinsic finite element analysis of bridges},
181
+ version = {1.23.4},
182
+ year = {2026},
183
+ doi = {10.5281/zenodo.24594822},
184
+ url = {https://github.com/maolin2000/vfife}
185
+ }
186
+ ```
187
+
188
+ The method: E. C. Ting, C. Shih and Y.-K. Wang, "Fundamentals of a vector form intrinsic finite element: Part I. Basic procedure and a plane frame element", *Journal of Mechanics* 20(2), 113–122, 2004.
189
+
190
+ ## Contributing
191
+
192
+ Bug reports with a small case that shows the problem are the most useful help; see [CONTRIBUTING](https://github.com/maolin2000/vfife/blob/master/CONTRIBUTING.md).
193
+
194
+ ## Licence
195
+
196
+ MIT; see [LICENSE](https://github.com/maolin2000/vfife/blob/master/LICENSE).
vfife-1.23.4/README.md ADDED
@@ -0,0 +1,152 @@
1
+ # vfife
2
+
3
+ [![CI](https://github.com/maolin2000/vfife/actions/workflows/ci.yml/badge.svg)](https://github.com/maolin2000/vfife/actions/workflows/ci.yml)
4
+ [![Release](https://img.shields.io/github/v/release/maolin2000/vfife)](https://github.com/maolin2000/vfife/releases)
5
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org)
6
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://github.com/maolin2000/vfife/blob/master/LICENSE)
7
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24594822.svg)](https://doi.org/10.5281/zenodo.24594822)
8
+
9
+ vfife is a structural analysis program for bridges, based on the vector form intrinsic finite element method (VFIFE). It integrates the motion of every point explicitly, so large displacements, yielding, member fracture, falling debris and contact need no special treatment. The same model also gives the static dead-load state, construction stages, modes and buckling loads.
10
+
11
+ A model is one YAML file, run from the command line or the Python API. Meshes come from the case file, Gmsh or a converted Midas Civil model; results are written as XDMF/HDF5 for ParaView.
12
+
13
+ **Version 1.23.4** · MIT licence · [CHANGELOG](https://github.com/maolin2000/vfife/blob/master/CHANGELOG.md). The case, result and checkpoint formats and the Python API have been stable since 1.0.
14
+
15
+ ## Features
16
+
17
+ | | |
18
+ |---|---|
19
+ | Elements | Euler–Bernoulli and Timoshenko beams; fibre beams with concrete and steel laws; bars and cables; connectors and bearings; shells (experimental); solids with embedded or bonded reinforcement and tendons |
20
+ | Statics | dynamic relaxation, Newton statics, arc length, cable form-finding, construction stages with members built and removed |
21
+ | Time-dependent | creep, shrinkage and tendon relaxation with each segment's own age; temperature |
22
+ | Dynamics | uniform and multi-support ground motion, response spectrum, moving loads and sprung vehicles on rough decks, friction bearings and dampers, p-y soil springs, added water mass |
23
+ | Collapse | member and fibre fracture with separation, falling spans, contact between members and with the ground |
24
+ | Stability | modes about a loaded state, linear and lateral-torsional buckling |
25
+ | Interfaces | Midas Civil conversion, Gmsh meshes, ParaView output, two read-only web viewers (`vfife view`) |
26
+
27
+ ## Installation
28
+
29
+ ```bash
30
+ pip install "vfife[cpu]" # from PyPI; [cpu] adds numba
31
+ pip install "vfife-1.23.4-py3-none-any.whl[cpu]" # or the wheel from the Releases page
32
+ ```
33
+
34
+ From source:
35
+
36
+ ```bash
37
+ git clone https://github.com/maolin2000/vfife.git
38
+ cd vfife
39
+ pip install -e ".[dev,plot,cpu]"
40
+ ```
41
+
42
+ Python 3.10 or newer. Optional extras: `[cpu]` (numba, needed for models of any size), `[gpu]` (Warp/CUDA, for large solid models), `[plot]` (matplotlib). `environment.yml` defines the equivalent Conda environment.
43
+
44
+ ## Quick start
45
+
46
+ ```bash
47
+ vfife new girder # write a three-span girder case
48
+ vfife info girder.yaml # check the model before solving
49
+ vfife run girder.yaml # dead-load state
50
+ vfife summary results/girder.h5
51
+ vfife modal girder.yaml # natural modes
52
+ vfife view results/girder.h5 # replay the result in a web page
53
+ ```
54
+
55
+ The case written by `vfife new girder`:
56
+
57
+ ```yaml
58
+ version: 1
59
+ name: girder
60
+ units: {length: m, force: N, stress: Pa}
61
+ mesh:
62
+ type: lines
63
+ points:
64
+ A: [0.0, 0.0, 0.0]
65
+ B: [30.0, 0.0, 0.0]
66
+ C: [70.0, 0.0, 0.0]
67
+ D: [100.0, 0.0, 0.0]
68
+ mid_main: [50.0, 0.0, 0.0]
69
+ lines:
70
+ side_1: {through: [A, B], size: 2.0}
71
+ main: {through: [B, mid_main, C], size: 2.0}
72
+ side_2: {through: [C, D], size: 2.0}
73
+ groups:
74
+ girder: [side_1, main, side_2]
75
+ materials:
76
+ steel: {type: linear_elastic, E: 2.06e+11, nu: 0.3, rho: 7850.0}
77
+ sections:
78
+ box: {type: beam, material: steel, shape: general, area: 0.35, iy: 1.2, iz: 6.0, j: 2.0}
79
+ assign:
80
+ - {region: girder, section: box, orientation: [0, 1, 0]}
81
+ constraints:
82
+ - {region: A, dofs: [1, 1, 1, 1, 0, 0]}
83
+ - {region: B, dofs: [0, 1, 1, 1, 0, 0]}
84
+ - {region: C, dofs: [0, 1, 1, 1, 0, 0]}
85
+ - {region: D, dofs: [0, 1, 1, 1, 0, 0]}
86
+ loads:
87
+ - {region: all, gravity: [0.0, 0.0, -9.80665]}
88
+ - {region: girder, line_load: [0.0, 0.0, -6.0e+4], with_mass: true}
89
+ solver: {mode: static, backend: numpy}
90
+ output:
91
+ path: results/girder.h5
92
+ monitors:
93
+ w_main: {kind: displacement, region: mid_main, dof: z}
94
+ R_B: {kind: reaction, region: B, dof: z}
95
+ ```
96
+
97
+ For a Gmsh mesh, `vfife mesh file.msh` lists its contents and `vfife init` writes a first case around it; `vfife schema` gives editors completion for case files. From Python:
98
+
99
+ ```python
100
+ from vfife.api import run_case
101
+ result = run_case("girder.yaml")
102
+ print(result.status, result.monitors["w_main"][-1])
103
+ ```
104
+
105
+ ## Documentation
106
+
107
+ - [User manual](https://github.com/maolin2000/vfife/blob/master/docs/user_manual.md): modelling, the case file, the command line, a complete worked bridge
108
+ - [Tutorial](https://github.com/maolin2000/vfife/blob/master/docs/tutorial.md): one analysis from Gmsh mesh to hand check
109
+ - [YAML reference](https://github.com/maolin2000/vfife/blob/master/docs/yaml_reference.md), [API reference](https://github.com/maolin2000/vfife/blob/master/docs/api_reference.md), [error codes](https://github.com/maolin2000/vfife/blob/master/docs/error_codes.md): generated from the code
110
+ - [Reference cases](https://github.com/maolin2000/vfife/blob/master/cases/README.md): The 67 reference cases and what each is checked against
111
+ - [Technical notes](https://github.com/maolin2000/vfife/blob/master/docs/technical_notes.md): design decisions and verification records
112
+
113
+ ## Verification
114
+
115
+ Every reference case has a contract under `verification/` with the values it must reproduce and their tolerances, checked before each release. The references include closed-form solutions (elastica, Irvine's catenary, Frýba's moving load, Yang and Yau's sprung mass, Lee's frame, the 45° bend), laboratory tests (Tanaka and Park's column, Vecchio and Emara's frame, the Alberta and Chalmers beams, hollow-core slabs loaded to failure), measured deflections of the Confederation Bridge and published analyses of the Hangzhou Bay Bridge's 70 m girders. Compiled paths are tested to give the same results as the reference loop to the bit, and a restart the same as an uninterrupted run. `vfife probe case.yaml` checks a user's model for symmetry of the tangent, free rigid-body motion and stability of the time step.
116
+
117
+ ## Limitations
118
+
119
+ - Beams have six degrees of freedom per node: no warping, so open thin-walled sections in non-uniform torsion and distortion of box girders are not modelled.
120
+ - Shear in fibre sections is a member-level law, not a field theory.
121
+ - Shells (`shell4`, `shell3`, `shell_line`) are experimental and not covered by the 1.0 promises: `shell4` is too stiff in bending (2–30%, not removed by refinement) and `shell3` locks in shear. `vfife capabilities` lists them as EXPERIMENTAL and preflight warns on every shell model.
122
+ - Soil springs are monotonic p-y curves.
123
+ - Contact between members uses capsules of a given radius.
124
+ - Explicit time steps are small; static and long-duration problems use relaxation, Newton statics or analysis steps.
125
+ - No aerodynamics, fluids, soil continua or design-code checks.
126
+
127
+ The full list is in section 16 of the user manual.
128
+
129
+ ## Citation
130
+
131
+ Cite the version used: each release has its own DOI, listed on the [Zenodo record](https://doi.org/10.5281/zenodo.24594822); the DOI below stands for all versions. `CITATION.cff` has the metadata.
132
+
133
+ ```bibtex
134
+ @software{tian_vfife,
135
+ author = {Tian, Maolin},
136
+ title = {vfife: vector form intrinsic finite element analysis of bridges},
137
+ version = {1.23.4},
138
+ year = {2026},
139
+ doi = {10.5281/zenodo.24594822},
140
+ url = {https://github.com/maolin2000/vfife}
141
+ }
142
+ ```
143
+
144
+ The method: E. C. Ting, C. Shih and Y.-K. Wang, "Fundamentals of a vector form intrinsic finite element: Part I. Basic procedure and a plane frame element", *Journal of Mechanics* 20(2), 113–122, 2004.
145
+
146
+ ## Contributing
147
+
148
+ Bug reports with a small case that shows the problem are the most useful help; see [CONTRIBUTING](https://github.com/maolin2000/vfife/blob/master/CONTRIBUTING.md).
149
+
150
+ ## Licence
151
+
152
+ MIT; see [LICENSE](https://github.com/maolin2000/vfife/blob/master/LICENSE).
@@ -0,0 +1,95 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "vfife"
7
+ version = "1.23.4"
8
+ description = "Explicit structural solver (VFIFE) for bridges, from construction stages to earthquake and collapse"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ keywords = ["finite element", "VFIFE", "bridge", "explicit dynamics", "dynamic relaxation", "fibre beam",
14
+ "progressive collapse", "seismic"]
15
+ classifiers = [
16
+ "Development Status :: 5 - Production/Stable",
17
+ "Intended Audience :: Science/Research",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Topic :: Scientific/Engineering",
24
+ "Topic :: Scientific/Engineering :: Physics",
25
+ "Operating System :: OS Independent",
26
+ ]
27
+ # Lower bounds: the oldest versions CI tests (.github/minimum-versions.txt).
28
+ # Upper bounds: the next major version, which may break the API; within them the
29
+ # weekly CI run installs the newest releases, so a breaking one is seen there.
30
+ dependencies = [
31
+ "numpy>=1.24,<3",
32
+ "scipy>=1.10,<2",
33
+ "pydantic>=2.0,<3",
34
+ "pyyaml>=6.0,<7",
35
+ "h5py>=3.8,<4",
36
+ ]
37
+
38
+ [project.optional-dependencies]
39
+ dev = ["pytest>=7.0", "pytest-xdist>=3.0", "ruff>=0.4"] # check_all runs the pytest layers on --jobs processes
40
+ plot = ["matplotlib>=3.6,<4"] # `vfife plot`; `vfife export` needs nothing extra
41
+ cpu = ["numba>=0.59,<1"] # fused CPU kernel
42
+ gpu = ["warp-lang>=1.16,<2"] # GPU backend (Windows + CUDA supported)
43
+ paraview = ["meshio>=5.3,<6"] # `vfife sweep` and `vfife modal --paraview` (.pvd/.vtu export)
44
+
45
+ [project.urls]
46
+ Homepage = "https://github.com/maolin2000/vfife"
47
+ Documentation = "https://github.com/maolin2000/vfife/blob/master/docs/user_manual.md"
48
+ Repository = "https://github.com/maolin2000/vfife"
49
+ Issues = "https://github.com/maolin2000/vfife/issues"
50
+ Changelog = "https://github.com/maolin2000/vfife/blob/master/CHANGELOG.md"
51
+ DOI = "https://doi.org/10.5281/zenodo.24594822"
52
+
53
+ [project.scripts]
54
+ vfife = "vfife.cli:main"
55
+
56
+ [tool.setuptools.packages.find]
57
+ include = ["vfife*"]
58
+
59
+ [tool.setuptools.package-data]
60
+ # the scenario templates of `vfife new` (1.2)
61
+ vfife = ["templates/*.yaml"]
62
+
63
+ [tool.ruff]
64
+ line-length = 130
65
+ target-version = "py310"
66
+
67
+ [tool.ruff.lint]
68
+ # What is held (tests/test_lint.py): names that do not exist, imports nobody
69
+ # uses, syntax that changed meaning. Style is not: the code writes several
70
+ # short statements on a line where they are one thought, and the kernels keep
71
+ # the names of the formulas they come from.
72
+ select = ["F", "E9"]
73
+ ignore = ["F841"] # a tuple unpacked for one of its parts names the others
74
+
75
+ [tool.ruff.lint.per-file-ignores]
76
+ "__init__.py" = ["F401"] # re-exports
77
+ "vfife/kernels/warp_*.py" = ["F401"] # an import that initialises Warp, or fails early without it
78
+
79
+ [tool.pytest.ini_options]
80
+ testpaths = ["tests"]
81
+ filterwarnings = ["ignore::RuntimeWarning"]
82
+ # Solving eleven shipped cases takes minutes, so those runs are opt-in and the
83
+ # default suite stays fast. Everything ABOUT the cases that can be checked
84
+ # without solving -- they parse, they preflight, their contracts line up with
85
+ # their monitors -- runs every time, because that is what actually rots.
86
+ # pytest -m slow just the full-solve verification
87
+ # pytest -m "" everything
88
+ # A test is moved out of the default layer not because it is slow but because
89
+ # the nightly run covers the same thing and a cheaper fast-tier test guards the
90
+ # same subsystem. A check that quietly stops running is no check, so sentinel
91
+ # tests (relaxation convergence, backend parity, erosion end to end) stay in
92
+ # the default layer even when they are not cheap.
93
+ markers = ["slow: solves to convergence; deselected by default, run by `pytest -m slow` and nightly CI",
94
+ "heavy: over 3 s (tests/heavy_tests.txt); in the default layer, left out of the GitHub fast tier"]
95
+ addopts = "-m 'not slow'"
vfife-1.23.4/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,35 @@
1
+ from pathlib import Path
2
+ import numpy as np
3
+ import pytest
4
+
5
+ from vfife.io import abaqus, schema
6
+ from vfife.cli import build
7
+
8
+ ROOT=Path(__file__).resolve().parents[1]
9
+ INP=ROOT/"tests"/"data"/"abaqus_hex_truss.inp"
10
+
11
+
12
+ def test_inp_coupled_preserves_sparse_tags_sets_and_elsets():
13
+ mesh, element=abaqus.read(str(INP),coupled=True)
14
+ assert element=="coupled"
15
+ assert set(mesh.cell_blocks)=={"hexa8","truss2"}
16
+ assert mesh.cell_blocks["truss2"].tolist()==[[0,1]]
17
+ assert mesh.regions["FIXED"].tolist()==[0]
18
+ assert mesh.regions["BRACE"].tolist()==[0,1]
19
+ assert mesh.regions["ALL_SOLID"].tolist()==list(range(8))
20
+
21
+
22
+ def test_inp_requires_explicit_coupled_mode_for_mixed_topology():
23
+ with pytest.raises(ValueError,match="element.type: coupled"):
24
+ abaqus.read(str(INP))
25
+
26
+
27
+ def test_schema_and_build_accept_abaqus_mesh():
28
+ case=schema.Case.model_validate({
29
+ "mesh":{"type":"abaqus","path":str(INP)},
30
+ "element":{"type":"coupled","formulation":"full"},
31
+ "members":[{"region":"BRACE","type":"truss2","area":1e-3}],
32
+ "material":{"type":"linear_elastic","E":2e11,"nu":.3,"rho":7850},
33
+ "solver":{"mode":"relaxation","backend":"numpy","n_steps":10}})
34
+ mesh,_mat,element=build(case,str(INP))
35
+ assert element=="coupled" and np.allclose(mesh.nodes[1],[1,0,0])