mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-02 06:13:59 +00:00
Implement new function add_elements!
Add new elements to the problem.
This commit is contained in:
+12
-1
@@ -8,7 +8,7 @@ abstract type MixedProblem<:AbstractProblem end
|
||||
|
||||
"""
|
||||
General linearized problem to solve
|
||||
(K₁+K₂)Δu + C1'*Δλ = f₁+f₂
|
||||
(K₁+K₂)Δu + C1*Δλ = f₁+f₂
|
||||
C2Δu + D*Δλ = g
|
||||
"""
|
||||
type Assembly
|
||||
@@ -274,6 +274,17 @@ function update!{P<:BoundaryProblem}(problem::Problem{P}, assembly::Assembly, el
|
||||
end
|
||||
end
|
||||
|
||||
"""
|
||||
add_elements!(problem::Problem, elements)
|
||||
|
||||
Add new elements into the problem.
|
||||
"""
|
||||
function add_elements!(problem::Problem, elements)
|
||||
for element in elements
|
||||
push!(problem.elements, element)
|
||||
end
|
||||
end
|
||||
|
||||
function get_elements(problem::Problem)
|
||||
return problem.elements
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user