mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-08-06 04:21:33 +00:00
fixes.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,9 @@ element_has_nodes(::Type{Val{:C3D20E}}) = 20
|
||||
element_has_nodes(::Type{Val{:S3}}) = 3
|
||||
element_has_type( ::Type{Val{:S3}}) = :Seg3
|
||||
|
||||
element_has_nodes(::Type{Val{:STRI65}}) = 6
|
||||
element_has_type(::Type{Val{:STRI65}}) = :Tri6
|
||||
|
||||
"""
|
||||
Checks for if line is a comment line or just empty
|
||||
"""
|
||||
|
||||
+12
-4
@@ -7,7 +7,7 @@ using JuliaFEM.API: Model
|
||||
"""
|
||||
This needs this a bit honing ...
|
||||
"""
|
||||
function solve!(model::Model, case_name::ASCIIString, time::Float64)
|
||||
function get_solver(model::Model, case_name::ASCIIString, time::Float64)
|
||||
element_ids = keys(model.elements)
|
||||
all_elements = model.elements
|
||||
case = model.load_cases[case_name]
|
||||
@@ -71,9 +71,17 @@ function solve!(model::Model, case_name::ASCIIString, time::Float64)
|
||||
end
|
||||
|
||||
# Creating the solver
|
||||
solver = JuliaFEM.Core.(case.solver)(field_problem, dirile_arr...)
|
||||
#solver = JuliaFEM.Core.(case.solver)(field_problem, dirile_arr...)
|
||||
solver = JuliaFEM.Core.(case.solver)()
|
||||
push!(solver, field_problem)
|
||||
for d in dirile_arr
|
||||
push!(solver, d)
|
||||
end
|
||||
return solver
|
||||
end
|
||||
|
||||
function solve!(model::Model, case_name::ASCIIString, time::Float64)
|
||||
solver = get_solver(model, case_name, time)
|
||||
# Solving
|
||||
solver(time)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user