chore: remove obsolete and legacy files

Major cleanup: remove obsolete files that have been replaced or
moved to new locations. Files removed include legacy assembly
implementations, old API files, and deprecated test files.

Removed files:

Assemblers and assembly:
- src/assemblers/nodal_based.jl
- src/assemblers/nodal_cache.jl
- src/assemblers/node_based_coo.jl
- src/assembly/assembly.jl
- src/assembly/element_structures.jl
- src/assembly/framework.jl
- src/assembly/nodal_structures.jl
- src/assembly/problems.jl
- src/element_assembly_structures.jl
- src/nodal_assembly_structures.jl

Legacy API and structure files:
- src/beams/api.jl
- src/formulations/api.jl
- src/gpu_elasticity.jl
- src/io.jl
- src/materials_plasticity.jl
- src/postprocess_utils.jl
- src/preprocess.jl
- src/quadrature.jl
- src/readers.jl
- src/shells/api.jl
- src/trusses/api.jl

Elements and domains:
- src/domains/continuum/assemble_v2.jl
- src/elements/integrate.jl

Quadrature legacy files:
- src/quadrature/gauss_points.jl
- src/quadrature/integration.jl

Test files:
- test/runtests_new.jl
- test/runtests.jl.old
- test/test_problems_elasticity_assemble_3d_seg3.jl
This commit is contained in:
Jukka Aho
2025-12-12 22:45:49 +02:00
parent cba8d19c1c
commit ff3c26d2c3
28 changed files with 0 additions and 6419 deletions
-163
View File
@@ -1,163 +0,0 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM, Test
@testset "JuliaFEM.jl" begin
@testset "test_dirichlet.jl" begin
include("test_dirichlet.jl")
end
@testset "test_elasticity_1d.jl" begin
include("test_elasticity_1d.jl")
end
@testset "test_elasticity_2d_linear_with_surface_load.jl" begin
include("test_elasticity_2d_linear_with_surface_load.jl")
end
@testset "test_elasticity_2d_nonhomogeneous_boundary_conditions.jl" begin
include("test_elasticity_2d_nonhomogeneous_boundary_conditions.jl")
end
@testset "test_elasticity_2d_nonlinear_with_surface_load.jl" begin
include("test_elasticity_2d_nonlinear_with_surface_load.jl")
end
@testset "test_elasticity_2d_plane_stress_stiffness_matrix.jl" begin
include("test_elasticity_2d_plane_stress_stiffness_matrix.jl")
end
@testset "test_elasticity_2d_residual.jl" begin
include("test_elasticity_2d_residual.jl")
end
@testset "test_elasticity_3d_linear_with_surface_load.jl" begin
include("test_elasticity_3d_linear_with_surface_load.jl")
end
@testset "test_elasticity_3d_nonlinear_with_surface_load.jl" begin
include("test_elasticity_3d_nonlinear_with_surface_load.jl")
end
@testset "test_elasticity_3d_unit_block.jl" begin
include("test_elasticity_3d_unit_block.jl")
end
@testset "test_elasticity_forwarddiff.jl" begin
include("test_elasticity_forwarddiff.jl")
end
@testset "test_elasticity_hollow_sphere_with_surface_pressure.jl" begin
include("test_elasticity_hollow_sphere_with_surface_pressure.jl")
end
@testset "test_elasticity_med_pyr5_point_load.jl" begin
include("test_elasticity_med_pyr5_point_load.jl")
end
@testset "test_elasticity_plane_strain.jl" begin
include("test_elasticity_plane_strain.jl")
end
@testset "test_elasticity_pyr5_point_load.jl" begin
include("test_elasticity_pyr5_point_load.jl")
end
@testset "test_elasticity_tet4_stiffness_matrix.jl" begin
include("test_elasticity_tet4_stiffness_matrix.jl")
end
@testset "test_elasticity_tet10_mass_matrix.jl" begin
include("test_elasticity_tet10_mass_matrix.jl")
end
@testset "test_elasticity_tet10_stiffness_matrix.jl" begin
include("test_elasticity_tet10_stiffness_matrix.jl")
end
@testset "test_elasticity_tetra.jl" begin
include("test_elasticity_tetra.jl")
end
@testset "test_elasticplastic_2d_nonhomogenious_boundary_conditions.jl" begin
include("test_elasticplastic_2d_nonhomogenious_boundary_conditions.jl")
end
@testset "test_elasticplastic_3d_linear_with_surface_load.jl" begin
include("test_elasticplastic_3d_linear_with_surface_load.jl")
end
@testset "test_heat_2d_one_element.jl" begin
include("test_heat_2d_one_element.jl")
end
@testset "test_heat_3d.jl" begin
include("test_heat_3d.jl")
end
@testset "test_heat_tet10_convection.jl" begin
include("test_heat_tet10_convection.jl")
end
@testset "test_heat_3d_2.jl" begin
include("test_heat_3d_2.jl")
end
@testset "test_heat.jl" begin
include("test_heat.jl")
end
@testset "test_heat_2.jl" begin
include("test_heat_2.jl")
end
@testset "test_heat_3.jl" begin
include("test_heat_3.jl")
end
@testset "test_heat_3d_two_rings.jl" begin
include("test_heat_3d_two_rings.jl")
end
@testset "test_heat_4.jl" begin
include("test_heat_4.jl")
end
@testset "test_modal_analysis.jl" begin
include("test_modal_analysis.jl")
end
@testset "test_modal_analysis_elasticity.jl" begin
include("test_modal_analysis_elasticity.jl")
end
@testset "test_modal_analysis_elasticity_2.jl" begin
include("test_modal_analysis_elasticity_2.jl")
end
@testset "test_modal_analysis_zero_eigenmodes.jl" begin
include("test_modal_analysis_zero_eigenmodes.jl")
end
@testset "test_mortar.jl" begin
include("test_mortar.jl")
end
@testset "test_mortar_2d.jl" begin
include("test_mortar_2d.jl")
end
@testset "test_mortar_2d_assembly.jl" begin
include("test_mortar_2d.jl")
end
@testset "test_mortar_2d_contact.jl" begin
include("test_mortar_2d_contact.jl")
end
@testset "test_mortar_2d_mesh_tie.jl" begin
include("test_mortar_2d_mesh_tie.jl")
end
@testset "test_mortar_2d_weighted_gap.jl" begin
include("test_mortar_2d_weighted_gap.jl")
end
@testset "test_mortar_3d_mesh_tie_modal.jl" begin
include("test_mortar_3d_mesh_tie_modal.jl")
end
@testset "test_mortar_3d_mesh_tie_two_rings.jl" begin
include("test_mortar_3d_mesh_tie_two_rings.jl")
end
@testset "test_mortar_3d_polygon_clip.jl" begin
include("test_mortar_3d_polygon_clip.jl")
end
@testset "test_postprocess.jl" begin
include("test_postprocess.jl")
end
@testset "test_potential_energy.jl" begin
include("test_potential_energy.jl")
end
@testset "test_problems_contact_3d.jl" begin
include("test_problems_contact_3d.jl")
end
@testset "test_problems_elasticity.jl" begin
include("test_problems_elasticity.jl")
end
@testset "test_problems_mortar_3d.jl" begin
include("test_problems_mortar_3d.jl")
end
@testset "test_problems_mortar_3d_lowlevel.jl" begin
include("test_problems_mortar_3d_lowlevel.jl")
end
@testset "test_solvers_postprocess.jl" begin
include("test_solvers_postprocess.jl")
end
@testset "test_virtual_work.jl" begin
include("test_virtual_work.jl")
end
@testset "test_von_mises_material.jl" begin
include("test_von_mises_material.jl")
end
end
-47
View File
@@ -1,47 +0,0 @@
# JuliaFEM Test Suite - New Structure
# Educational testing with Literate.jl
using Test, JuliaFEM
# Configuration
const RUN_TUTORIALS = get(ENV, "JULIAFEM_TEST_TUTORIALS", "true") == "true"
const RUN_UNIT = get(ENV, "JULIAFEM_TEST_UNIT", "false") == "true"
const RUN_OLD = get(ENV, "JULIAFEM_TEST_OLD", "false") == "true"
println("="^70)
println("JuliaFEM Test Suite (New Structure)")
println("="^70)
println("Tutorials: ", RUN_TUTORIALS ? "✓" : "✗")
println("Unit tests: ", RUN_UNIT ? "✓" : "✗")
println("Old tests: ", RUN_OLD ? "✓" : "✗")
println("="^70)
# Tutorial Tests
if RUN_TUTORIALS
@testset "Tutorials" begin
@testset "01_Fundamentals" begin
include("tutorials/01_fundamentals/creating_elements.jl")
include("tutorials/01_fundamentals/reading_gmsh_meshes.jl")
include("tutorials/01_fundamentals/basis_functions.jl")
include("tutorials/01_fundamentals/validation_1element_quad4.jl")
end
end
end
# Unit Tests
if RUN_UNIT
@testset "Unit Tests" begin
@info "No unit tests yet"
end
end
# Old Tests
if RUN_OLD
@warn "Old tests have 49+ failures - see docs/TEST_FIXES_NEEDED.md"
include("runtests.jl") # Original test suite
end
println()
println("="^70)
println("Complete - See docs/TESTING_PHILOSOPHY.md")
println("="^70)
@@ -1,12 +0,0 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM, Test
# Test that if 3d continuum problem have some elements we don't know how to
# deal with, raise error with clear message
elements = [Element(Seg3, (1, 2, 3))]
problem = Problem(Elasticity, "test seg3", 3)
add_elements!(problem, elements)
@test_throws ErrorException assemble!(problem, 0.0)