mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-19 09:54:55 +00:00
reading and testing abaqus .inp files
This commit is contained in:
@@ -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
|
||||
@@ -50,4 +50,3 @@ end
|
||||
@test mesh.surfaces[:LOAD][1] == (16, :S1)
|
||||
@test mesh.surface_types[:LOAD] == :ELEMENT
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
=#
|
||||
|
||||
|
||||
Reference in New Issue
Block a user