reading and testing abaqus .inp files

This commit is contained in:
Jukka Aho
2016-07-11 04:48:59 +03:00
parent 9eaa71fd78
commit d394ed6deb
7 changed files with 143 additions and 18 deletions
+21
View File
@@ -0,0 +1,21 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM
using JuliaFEM.Preprocess
using JuliaFEM.Postprocess
using JuliaFEM.Abaqus
using JuliaFEM.Testing
#=
test_name = "ecs4sfs1"
@testset "$test_name" begin
abaqus_run_test(test_name) || return
results = abaqus_read_results(test_name)
end
=#
@testset "ec38sfs2" begin
abaqus_run_test("ec38sfs2"; print_test_file=true) || return
results = abaqus_read_results("ec38sfs2")
end
-1
View File
@@ -50,4 +50,3 @@ end
@test mesh.surfaces[:LOAD][1] == (16, :S1)
@test mesh.surface_types[:LOAD] == :ELEMENT
end
+10 -3
View File
@@ -2,6 +2,8 @@
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM
using JuliaFEM.Preprocess
using JuliaFEM.Postprocess
using JuliaFEM.Abaqus
using JuliaFEM.Testing
@@ -31,10 +33,15 @@ using JuliaFEM.Testing
@test load[1] == [:LOAD, :P, 1.00000]
end
#=
@testset "given abaqus model solve field" begin
fn = Pkg.dir("JuliaFEM") * "/test/testdata/cube_tet4.inp"
model = abaqus_read_model(fn)
model()
problems = model()
body = first(problems)
info(body("displacement", 0.0))
result = XDMF()
xdmf_new_result!(result, body, 0.0)
xdmf_save_field!(result, body, 0.0, "displacement"; field_type="Vector")
xdmf_save!(result, "/tmp/cube_tet4.xmf")
end
=#