mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-26 03:44:45 +00:00
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:
@@ -1,57 +0,0 @@
|
||||
# This file is a part of JuliaFEM.
|
||||
# License is MIT: see https://github.com/JuliaFEM/FEMBase.jl/blob/master/LICENSE
|
||||
|
||||
# Default number of integration points for each element. First rule is the
|
||||
# default integration rule returned by `get_integration_points(element)`.
|
||||
# Sometimes we want to increase integration order, e.g. when integrating mass
|
||||
# matrix or boundary conditions. For that reason, additional rules are provied
|
||||
# in list, so e.g. `get_integration_points(element, 1)` returns the second rule,
|
||||
# `get_integration_points(element, 2)` third rule and so on. Rules should be
|
||||
# ordered so that picking next one integrates more accurately.
|
||||
integration_rule_mapping = (
|
||||
:Seg2 => (:GLSEG2, :GLSEG3, :GLSEG4, :GLSEG5),
|
||||
:Seg3 => (:GLSEG3, :GLSEG4, :GLSEG5),
|
||||
:NSeg => (:GLSEG2, :GLSEG3, :GLSEG4, :GLSEG5),
|
||||
:Quad4 => (:GLQUAD4, :GLQUAD9, :GLQUAD16, :GLQUAD25),
|
||||
:Quad8 => (:GLQUAD9, :GLQUAD16, :GLQUAD25),
|
||||
:Quad9 => (:GLQUAD9, :GLQUAD16, :GLQUAD25),
|
||||
:NSurf => (:GLQUAD9, :GLQUAD16, :GLQUAD25),
|
||||
:Hex8 => (:GLHEX8, :GLHEX27, :GLHEX64, :GLHEX125),
|
||||
:Hex20 => (:GLHEX27, :GLHEX64, :GLHEX125),
|
||||
:Hex27 => (:GLHEX27, :GLHEX64, :GLHEX125),
|
||||
:NSolid => (:GLHEX27, :GLHEX64, :GLHEX125),
|
||||
:Tri3 => (:GLTRI1, :GLTRI3, :GLTRI4, :GLTRI6, :GLTRI7, :GLTRI12),
|
||||
:Tri6 => (:GLTRI3, :GLTRI4, :GLTRI6, :GLTRI7, :GLTRI12),
|
||||
:Tri7 => (:GLTRI3, :GLTRI4, :GLTRI6, :GLTRI7, :GLTRI12),
|
||||
:Tet4 => (:GLTET1, :GLTET4, :GLTET5, :GLTET15),
|
||||
:Tet10 => (:GLTET4, :GLTET5, :GLTET15),
|
||||
:Pyr5 => (:GLPYR5,),
|
||||
:Wedge6 => (:GLWED6, :GLWED21),
|
||||
:Wedge15 => (:GLWED21,))
|
||||
|
||||
for (E, R) in integration_rule_mapping
|
||||
for i in 1:length(R)
|
||||
P = Val{R[i]}
|
||||
order = Val{i - 1}
|
||||
local code # Explicitly declare as local to avoid warning
|
||||
if isequal(i, 1)
|
||||
code = quote
|
||||
function get_integration_points(element::$E)
|
||||
return get_quadrature_points($P)
|
||||
end
|
||||
end
|
||||
else
|
||||
code = quote
|
||||
function get_integration_points(element::$E, ::Type{$order})
|
||||
return get_quadrature_points($P)
|
||||
end
|
||||
end
|
||||
end
|
||||
eval(code)
|
||||
end
|
||||
end
|
||||
|
||||
# All good codes needs a special case. Here we have it: Poi1
|
||||
function get_integration_points(::Poi1)
|
||||
[(1.0, (0.0,))]
|
||||
end
|
||||
Reference in New Issue
Block a user