-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mesh = aster_read_mesh(meshfile) doesn't work in my case... #51
Comments
Hi @Sukhe1993, meshfile = joinpath(datadir, "JuliaFEMSMP18.med")
mesh = aster_read_mesh(meshfile) This equals: mesh = aster_read_mesh( "datadir/JuliaFEMSMP18.med") Here is the full example: https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/examples/linear_static.jl and here is the mesh file: https://github.com/JuliaFEM/JuliaFEM.jl/tree/master/examples/linear_static I just noticed that instead of datadir it should be linear_static in the above example. |
Thanks, TeroFrondelius, I gave the name same as the example below and follow the example below. |
Can you post your code and the error message. |
Thanks for your help using JuliaFEM, LinearAlgebra, Pkg Stacktrace: |
_ipynb.pdf |
Please download the med file to the same directory you are running the example and change the command to have just the file name. |
Thanks Tero,
I put .med file and Julia file in the same folder. I run it and still doesn’t work.
Here is the screenshot. Which gives me same the same message.
Also, after I test the Pkg.test(“JuliaFEM”), it seems like Package JuliaFEM errored during testing. Is this the issue?
I also uploaded my test file. Could you please have a look at it to see if the FEM package I installed is correct?
Many thanks
Sent from Mail for Windows 10
From: Tero Frondelius
Sent: Wednesday, 11 September 2019 5:36 PM
To: JuliaFEM/AbaqusReader.jl
Cc: Yue; Mention
Subject: Re: [JuliaFEM/AbaqusReader.jl] mesh = aster_read_mesh(meshfile)doesn't work in my case... (#51)
No such file or directory
Please download the med file to the same directory you are running the example and change the command to have just the file name.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
julia> using Pkg
julia> Pkg.test("JuliaFEM")
Updating registry at `C:\Users\Sukhe\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Testing JuliaFEM
Resolving package versions...
Status `C:\Users\Sukhe\AppData\Local\Temp\jl_xaMfGI\Manifest.toml`
[bc6b9049] AbaqusReader v0.2.2
[7d9fca2a] Arpack v0.3.1
[cb1a753d] AsterReader v0.2.2
[9e28174c] BinDeps v0.8.10
[b99e7846] BinaryProvider v0.5.6
[a74b3585] Blosc v0.5.1
[631607c0] CMake v1.1.2
[d5fb7624] CMakeWrapper v0.2.3
[49dc2e85] Calculus v0.5.0
[bbf7d656] CommonSubexpressions v0.2.0
[34da2185] Compat v2.1.0
[a8cc5b0e] Crayons v4.0.0
[163ba53b] DiffResults v0.0.4
[b552c78f] DiffRules v0.0.10
[ffbed154] DocStringExtensions v0.8.0
[e30172f5] Documenter v0.23.3
[fbcbbc08] FEMBase v0.2.2
[353fb843] FEMBasis v0.2.0
[962f5c4a] FEMBeam v0.3.0
[be8e8821] FEMQuad v0.3.0
[f6369f11] ForwardDiff v0.10.3
[f67ccb44] HDF5 v0.12.3
[4030f512] HeatTransfer v0.3.0
[682c06a0] JSON v0.21.0
[f80590ac] JuliaFEM v0.5.0
[9c8b4983] LightXML v0.8.0
[98b081ad] Literate v2.0.3
[048d6160] MortarContact2D v0.3.0
[c1673bdb] MortarContact2DAD v0.2.0
[77ba4419] NaNMath v0.3.2
[4d1e1d77] Nullables v0.0.8
[bac558e1] OrderedCollections v1.1.0
[d96e819e] Parameters v0.11.0
[69de0a69] Parsers v0.3.7
[189a3867] Reexport v0.2.0
[276daf66] SpecialFunctions v0.8.0
[90137ffa] StaticArrays v0.11.0
[a759f4b9] TimerOutputs v0.5.0
[30578b45] URIParser v0.4.0
[2a0f44e3] Base64 [`@stdlib/Base64`]
[ade2ca70] Dates [`@stdlib/Dates`]
[8bb1440f] DelimitedFiles [`@stdlib/DelimitedFiles`]
[8ba89e20] Distributed [`@stdlib/Distributed`]
[b77e0a4c] InteractiveUtils [`@stdlib/InteractiveUtils`]
[76f85450] LibGit2 [`@stdlib/LibGit2`]
[8f399da3] Libdl [`@stdlib/Libdl`]
[37e2e46d] LinearAlgebra [`@stdlib/LinearAlgebra`]
[56ddb016] Logging [`@stdlib/Logging`]
[d6f4376e] Markdown [`@stdlib/Markdown`]
[a63ad114] Mmap [`@stdlib/Mmap`]
[44cfe95a] Pkg [`@stdlib/Pkg`]
[de0858da] Printf [`@stdlib/Printf`]
[3fa0cd96] REPL [`@stdlib/REPL`]
[9a3f8284] Random [`@stdlib/Random`]
[ea8e919c] SHA [`@stdlib/SHA`]
[9e88b42a] Serialization [`@stdlib/Serialization`]
[1a1011a3] SharedArrays [`@stdlib/SharedArrays`]
[6462fe0b] Sockets [`@stdlib/Sockets`]
[2f01184e] SparseArrays [`@stdlib/SparseArrays`]
[10745b16] Statistics [`@stdlib/Statistics`]
[8dfed614] Test [`@stdlib/Test`]
[cf7118a7] UUIDs [`@stdlib/UUIDs`]
[4ec0a83e] Unicode [`@stdlib/Unicode`]
[ Info: generating markdown page from `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\examples\2d_hertz_contact.jl`
+ Warning: expansion of `@__REPO_ROOT_URL__`, `@__REPO_ROOT_URL__` and `@__REPO_ROOT_URL__` will only be correct if running in DocumentationGenerator.jl or Travis CI.
+ @ Literate C:\Users\Sukhe\.julia\packages\Literate\1lTVT\src\Literate.jl:214
[ Info: writing result to `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\docs\src\examples\2d_hertz_contact.md`
[ Info: generating markdown page from `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\examples\3d_frame.jl`
+ Warning: expansion of `@__REPO_ROOT_URL__`, `@__REPO_ROOT_URL__` and `@__REPO_ROOT_URL__` will only be correct if running in DocumentationGenerator.jl or Travis CI.
+ @ Literate C:\Users\Sukhe\.julia\packages\Literate\1lTVT\src\Literate.jl:214
[ Info: writing result to `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\docs\src\examples\3d_frame.md`
[ Info: generating markdown page from `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\examples\generate_stiffness_matrices.jl`
+ Warning: expansion of `@__REPO_ROOT_URL__`, `@__REPO_ROOT_URL__` and `@__REPO_ROOT_URL__` will only be correct if running in DocumentationGenerator.jl or Travis CI.
+ @ Literate C:\Users\Sukhe\.julia\packages\Literate\1lTVT\src\Literate.jl:214
[ Info: writing result to `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\docs\src\examples\generate_stiffness_matrices.md`
[ Info: generating markdown page from `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\examples\linear_static.jl`
+ Warning: expansion of `@__REPO_ROOT_URL__`, `@__REPO_ROOT_URL__` and `@__REPO_ROOT_URL__` will only be correct if running in DocumentationGenerator.jl or Travis CI.
+ @ Literate C:\Users\Sukhe\.julia\packages\Literate\1lTVT\src\Literate.jl:214
[ Info: writing result to `C:\Users\Sukhe\.julia\packages\JuliaFEM\or1RT\docs\src\examples\linear_static.md`
[ Info: Copied documentation of package FEMBase from C:\Users\Sukhe\.julia\packages\FEMBase\sO4aw\docs\src succesfully.
[ Info: Copied documentation of package FEMBase from C:\Users\Sukhe\.julia\packages\FEMBase\sO4aw\docs\src succesfully.
[ Info: Could not find package FEMBasis from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package FEMQuad from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package FEMSparse from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package Materials from JuliaFEM namespace, pkg_path unknown.
[ Info: Copied documentation of package AsterReader from C:\Users\Sukhe\.julia\packages\AsterReader\LfzMD\docs\src succesfully.
[ Info: Copied documentation of package AbaqusReader from C:\Users\Sukhe\.julia\packages\AbaqusReader\sDEH0\docs\src succesfully.
[ Info: Could not find package LinearImplicitDynamics from JuliaFEM namespace, pkg_path unknown.
[ Info: Copied documentation of package HeatTransfer from C:\Users\Sukhe\.julia\packages\HeatTransfer\SuEI0\docs\src succesfully.
[ Info: Could not find package PlaneElasticity from JuliaFEM namespace, pkg_path unknown.
[ Info: Copied documentation of package FEMBeam from C:\Users\Sukhe\.julia\packages\FEMBeam\ZGxZ6\docs\src succesfully.
[ Info: Could not find package FEMCoupling from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package FEMTruss from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package Mortar2D from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package Mortar3D from JuliaFEM namespace, pkg_path unknown.
[ Info: Copied documentation of package MortarContact2D from C:\Users\Sukhe\.julia\packages\MortarContact2D\7o6sz\docs\src succesfully.
[ Info: Copied documentation of package MortarContact2DAD from C:\Users\Sukhe\.julia\packages\MortarContact2DAD\Rq4yL\docs\src succesfully.
[ Info: Could not find package OptoMechanics from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package Miniball from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package ModelReduction from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package NodeNumbering from JuliaFEM namespace, pkg_path unknown.
[ Info: Could not find package UMAT from JuliaFEM namespace, pkg_path unknown.
+ Info: Pages in documentation
¦ PAGES =
¦ 6-element Array{Pair{String,Any},1}:
¦ "Home" => "index.md"
¦ "User's guide" => Any[]
¦ "Examples" => Any["examples\\2d_hertz_contact.md", "examples\\3d_frame.md", "examples\\generate_stiffness_matrices.md", "examples\\linear_static.md"]
¦ "Developer's guide" => Any["packages/FEMBase/mesh.md", "packages/FEMBase/fields.md", "packages/FEMBase/basis.md", "packages/FEMBase/integration.md", "packages/FEMBase/elements.md", "packages/FEMBase/problems.md", "packages/FEMBase/solvers.md", "packages/FEMBase/postprocessing.md", "packages/FEMBase/results.md", "packages/FEMBase/materials.md"]
¦ "Description of packages" => Any["packages/FEMBase/index.md", "packages/AsterReader/index.md", "packages/AbaqusReader/index.md", "packages/HeatTransfer/index.md", "packages/FEMBeam/index.md", "packages/MortarContact2D/index.md", "packages/MortarContact2DAD/index.md"]
+ "API documentation" => ["api.md"]
+ Warning: The `analytics` keyword argument should now be specified in the
¦ `Documenter.HTML()` format specifier. To fix this warning replace
¦ ```
¦ analytics = ...
¦ ```
¦ with
¦ ```
¦ format = Documenter.HTML(analytics = ...)
¦ ```
+ @ Documenter C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Documenter.jl:246
+ Warning: `format = :html` is deprecated, use `format = Documenter.HTML()` instead.
¦ caller = ip:0x0
+ @ Core :-1
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
[ Info: ExpandTemplates: expanding markdown templates.
+ Warning: no docs found for 'JuliaFEM.Element' in `@docs` block in src\api.md:16-20
¦ ```@docs
¦ JuliaFEM.Element
¦ JuliaFEM.Problem
¦ JuliaFEM.Elasticity
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'JuliaFEM.update!' in `@docs` block in src\api.md:24-26
¦ ```@docs
¦ JuliaFEM.update!
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: failed to run `@example` block in src\examples.md:56-59
¦ ```@example 1
¦ solver = Solver(Linear, body, traction, bc)
¦ solver()
¦ ```
¦ value =
¦ MethodError: no method matching add!(::SparseMatrixCOO{Float64}, ::Int64, ::Int64, ::Float64)
¦ Closest candidates are:
¦ add!(::SparseMatrixCOO, ::Int32, ::Int32, ::Float64) at C:\Users\Sukhe\.julia\packages\FEMBase\sO4aw\src\sparse.jl:58
¦ add!(::SparseMatrixCOO, ::AbstractArray{Int32,1}, ::AbstractArray{Int32,1}, ::Any) at C:\Users\Sukhe\.julia\packages\FEMBase\sO4aw\src\sparse.jl:115
¦ add!(::SparseMatrixCOO, ::Int32, ::Float64) at C:\Users\Sukhe\.julia\packages\FEMBase\sO4aw\src\sparse.jl:65
¦ ...
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:35-51
¦ ```@example 2d_hertz_contact
¦ datadir = Pkg.dir("JuliaFEM", "examples", "2d_hertz_contact")
¦ meshfile = joinpath(datadir, "hertz_2d_full.med")
¦ mesh = aster_read_mesh(meshfile)
¦ for (elset_name, element_ids) in mesh.element_sets
¦ nel = length(element_ids)
¦ println("Element set $elset_name contains $nel elements.")
¦ end
¦ for (nset_name, node_ids) in mesh.node_sets
¦ nno = length(node_ids)
¦ println("Node set $nset_name contains $nno nodes.")
¦ end
¦ nnodes = length(mesh.nodes)
¦ println("Total number of nodes in mesh: $nnodes")
¦ nelements = length(mesh.elements)
¦ println("Total number of elements in mesh: $nelements")
¦ ```
¦ value = UndefVarError: Pkg not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:62-75
¦ ```@example 2d_hertz_contact
¦ upper_elements = create_elements(mesh, "CYLINDER")
¦ update!(upper_elements, "youngs modulus", 70.0e3)
¦ update!(upper_elements, "poissons ratio", 0.3)
¦ upper = Problem(Elasticity, "cylinder", 2)
¦ upper.properties.formulation = :plane_strain
¦ add_elements!(upper, upper_elements)
¦ lower_elements = create_elements(mesh, "BLOCK")
¦ update!(lower_elements, "youngs modulus", 210.0e3)
¦ update!(lower_elements, "poissons ratio", 0.3)
¦ lower = Problem(Elasticity, "block", 2)
¦ lower.properties.formulation = :plane_strain
¦ add_elements!(lower, lower_elements)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:82-87
¦ ```@example 2d_hertz_contact
¦ bc_fixed_elements = create_elements(mesh, "FIXED")
¦ update!(bc_fixed_elements, "displacement 2", 0.0)
¦ bc_fixed = Problem(Dirichlet, "fixed", 2, "displacement")
¦ add_elements!(bc_fixed, bc_fixed_elements)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:91-96
¦ ```@example 2d_hertz_contact
¦ bc_sym_23_elements = create_elements(mesh, "SYM23")
¦ update!(bc_sym_23_elements, "displacement 1", 0.0)
¦ bc_sym_23 = Problem(Dirichlet, "symmetry line 23", 2, "displacement")
¦ add_elements!(bc_sym_23, bc_sym_23_elements)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:106-113
¦ ```@example 2d_hertz_contact
¦ nid = find_nearest_node(mesh, [0.0, 100.0])
¦ load = Problem(Elasticity, "point load", 2)
¦ load.properties.formulation = :plane_strain
¦ load.elements = [Element(Poi1, [nid])]
¦ update!(load.elements, "geometry", mesh.nodes)
¦ update!(load.elements, "displacement traction force 2", -35.0e3)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:124-131
¦ ```@example 2d_hertz_contact
¦ contact = Problem(Contact2D, "contact", 2, "displacement")
¦ contact.properties.rotate_normals = true
¦ contact_slave_elements = create_elements(mesh, "BLOCK_TO_CYLINDER")
¦ contact_master_elements = create_elements(mesh, "CYLINDER_TO_BLOCK")
¦ add_master_elements!(contact, contact_master_elements)
¦ add_slave_elements!(contact, contact_slave_elements)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:143-148
¦ ```@example 2d_hertz_contact
¦ analysis = Analysis(Nonlinear)
¦ add_problems!(analysis, upper, lower, bc_fixed, bc_sym_23, load, contact)
¦ xdmf = Xdmf("2d_hertz_results"; overwrite=true)
¦ add_results_writer!(analysis, xdmf)
¦ ```
¦ value = UndefVarError: upper not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:152-155
¦ ```@example 2d_hertz_contact
¦ run!(analysis)
¦ close(xdmf)
¦ ```
¦ value = ArgumentError: the number of rows or columns of the matrix must be greater than zero
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:164-182
¦ ```@example 2d_hertz_contact
¦ Rn = 0.0
¦ Rt = 0.0
¦ time = 0.0
¦ for sel in contact_slave_elements
¦ for ip in get_integration_points(sel)
¦ w = ip.weight*sel(ip, time, Val{:detJ})
¦ n = sel("normal", ip, time)
¦ t = sel("tangent", ip, time)
¦ la = sel("lambda", ip, time)
¦ Rn += w*dot(n, la)
¦ Rt += w*dot(t, la)
¦ end
¦ end
¦ println("2d hertz contact resultant forces: Rn = $Rn, Rt = $Rt")
¦ using Test
¦ @test isapprox(Rn, 35.0e3)
¦ @test isapprox(Rt, 0.0)
¦ ```
¦ value = UndefVarError: contact_slave_elements not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:189-202
¦ ```@example 2d_hertz_contact
¦ lambda = contact("lambda", time)
¦ normal = contact("normal", time)
¦ p0 = 0.0
¦ p0_acc = 3585.0
¦ for (nid, n) in normal
¦ lan = dot(n, lambda[nid])
¦ println("$nid => $lan")
¦ p0 = max(p0, lan)
¦ end
¦ p0 = round(p0, 2)
¦ rtol = round(norm(p0-p0_acc)/max(p0,p0_acc)*100, 2)
¦ println("Maximum contact pressure p0 = $p0, p0_acc = $p0_acc, rtol = $rtol %")
¦ ```
¦ value =
¦ MethodError: no method matching round(::Float64, ::Int32)
¦ Closest candidates are:
¦ round(::Float64, ::RoundingMode{:Nearest}) at float.jl:370
¦ round(::Float64, ::RoundingMode{:Up}) at float.jl:368
¦ round(::Float64, ::RoundingMode{:Down}) at float.jl:366
¦ ...
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\2d_hertz_contact.md:208-225
¦ ```@example 2d_hertz_contact
¦ a_rad = 0.0
¦ for element in contact_slave_elements
¦ la1, la2 = element("lambda", time)
¦ p1, p2 = norm(la1), norm(la2)
¦ a, b = isapprox(p1, 0.0), isapprox(p2, 0.0)
¦ if (a && !b) || (b && !a)
¦ X1, X2 = element("geometry", time)
¦ println("Contact opening element geometry: X1 = $X1, X2 = $X2")
¦ println("Contact opening element lambda: la1 = $la1, la2 = $la2")
¦ x11, y11 = X1
¦ x12, y12 = X2
¦ a_rad = 1/2*abs(x11+x12)
¦ break
¦ end
¦ end
¦ println("Contact radius: $a_rad")
¦ ```
¦ value = UndefVarError: contact_slave_elements not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\3d_frame.md:19-23
¦ ```@example 3d_frame
¦ datadir = Pkg.dir("JuliaFEM", "examples", "3d_frame")
¦ mesh = aster_read_mesh(joinpath(datadir, "model.med"))
¦ println("Number of nodes in a model: ", length(mesh.nodes))
¦ ```
¦ value = UndefVarError: Pkg not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\3d_frame.md:32-42
¦ ```@example 3d_frame
¦ beam_elements = create_elements(mesh, "FRAME")
¦ @info("Number of elements: ", length(beam_elements))
¦ update!(beam_elements, "youngs modulus", 210.0e6)
¦ update!(beam_elements, "shear modulus", 84.0e6)
¦ update!(beam_elements, "density", 7850.0e-3)
¦ update!(beam_elements, "cross-section area", 20.0e-2)
¦ update!(beam_elements, "torsional moment of inertia 1", 10.0e-5)
¦ update!(beam_elements, "torsional moment of inertia 2", 10.0e-5)
¦ update!(beam_elements, "polar moment of inertia", 30.0e-5)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\3d_frame.md:50-59
¦ ```@example 3d_frame
¦ for element in beam_elements
¦ X1, X2 = element("geometry", 0.0)
¦ t = (X2-X1)/norm(X2-X1)
¦ I = [1.0 0.0 0.0; 0.0 1.0 0.0; 0.0 0.0 1.0]
¦ k = indmax([norm(cross(t, I[:,k])) for k in 1:3])
¦ n = cross(t, I[:,k])/norm(cross(t, I[:,k]))
¦ update!(element, "normal", n)
¦ end
¦ ```
¦ value = UndefVarError: beam_elements not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\3d_frame.md:67-74
¦ ```@example 3d_frame
¦ bc_elements = [Element(Poi1, [j]) for j in mesh.node_sets[:FIXED]]
¦ update!(bc_elements, "geometry", mesh.nodes)
¦ for i=1:3
¦ update!(bc_elements, "fixed displacement $i", 0.0)
¦ update!(bc_elements, "fixed rotation $i", 0.0)
¦ end
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\3d_frame.md:78-82
¦ ```@example 3d_frame
¦ frame = Problem(Beam, "3d frame", 6)
¦ add_elements!(frame, beam_elements)
¦ add_elements!(frame, bc_elements)
¦ ```
¦ value = UndefVarError: beam_elements not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\3d_frame.md:86-93
¦ ```@example 3d_frame
¦ analysis = Analysis(Modal)
¦ xdmf = Xdmf(joinpath(datadir, "3d_frame_results"); overwrite=true)
¦ add_results_writer!(analysis, xdmf)
¦ add_problems!(analysis, frame)
¦ run!(analysis)
¦ close(xdmf)
¦ ```
¦ value = UndefVarError: datadir not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\3d_frame.md:99-102
¦ ```@example 3d_frame
¦ freqs = sqrt.(step.properties.eigvals) / (2*pi)
¦ println("Natural frequencies [Hz]: $(round.(freqs, 2))")
¦ ```
¦ value = type #step has no field properties
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\generate_stiffness_matrices.md:14-25
¦ ```@example generate_stiffness_matrices
¦ X = Dict(1 => [0.0, 0.0], 2 => [2.0, 0.0], 3 => [2.0, 2.0], 4 => [0.0, 2.0])
¦ element = Element(Quad4, [1, 2, 3, 4])
¦ update!(element, "geometry", X)
¦ update!(element, "youngs modulus", 288.0)
¦ update!(element, "poissons ratio", 1/3)
¦ problem = Problem(Elasticity, "test problem", 2)
¦ problem.properties.formulation = :plane_stress
¦ add_elements!(problem, [element])
¦ assemble!(problem, 0.0)
¦ K = round.(Matrix(problem.assembly.K), 5)
¦ ```
¦ value =
¦ MethodError: no method matching round(::Float64, ::Int32)
¦ Closest candidates are:
¦ round(::Float64, ::RoundingMode{:Nearest}) at float.jl:370
¦ round(::Float64, ::RoundingMode{:Up}) at float.jl:368
¦ round(::Float64, ::RoundingMode{:Down}) at float.jl:366
¦ ...
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:22-26
¦ ```@example linear_static
¦ datadir = Pkg.dir("JuliaFEM", "examples", "linear_static")
¦ meshfile = joinpath(datadir, "JuliaFEMSMP18.med")
¦ mesh = aster_read_mesh(meshfile)
¦ ```
¦ value = UndefVarError: Pkg not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:31-34
¦ ```@example linear_static
¦ model = Problem(Elasticity, "OTHER", 3)
¦ model_elements = create_elements(mesh, "OTHER")
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:38-43
¦ ```@example linear_static
¦ update!(model_elements, "youngs modulus", 208.0E3)
¦ update!(model_elements, "poissons ratio", 0.30)
¦ update!(model_elements, "density", 7.80E-9)
¦ add_elements!(model, model_elements)
¦ ```
¦ value = UndefVarError: model_elements not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:79-81
¦ ```@example linear_static
¦ add_nodes_at_certain_plane_to_node_set!(mesh, :mid_fixed, 2, 50.0)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:87-92
¦ ```@example linear_static
¦ ipoint = find_nearest_nodes(mesh, [165.0, 88.0, 10],3)
¦ for poi in ipoint
¦ add_node_to_node_set!(mesh, :mid_fixed, poi)
¦ end
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:96-103
¦ ```@example linear_static
¦ fixed = Problem(Dirichlet, "fixed", 3, "displacement")
¦ fixed_elements = create_nodal_elements(mesh, "mid_fixed")
¦ add_elements!(fixed, fixed_elements)
¦ update!(fixed_elements, "displacement 1", 0.0)
¦ update!(fixed_elements, "displacement 2", 0.0)
¦ update!(fixed_elements, "displacement 3", 0.0)
¦ ```
¦ value = UndefVarError: mesh not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:107-109
¦ ```@example linear_static
¦ update!(model_elements, "displacement load 1", 1.0)
¦ ```
¦ value = UndefVarError: model_elements not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:132-134
¦ ```@example linear_static
¦ run!(analysis)
¦ ```
¦ value = ArgumentError: the number of rows or columns of the matrix must be greater than zero
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:154-163
¦ ```@example linear_static
¦ if VERSION < v"1.0.0"
¦ using Base.Test
¦ else
¦ using Test
¦ end
¦
¦ @test isfile("model_results.xmf")
¦ @test isfile("model_results.h5")
¦ ```
¦ value = Test.FallbackTestSetException("There was an error during testing")
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\examples\linear_static.md:168-173
¦ ```@example linear_static
¦ time = 0.0
¦ u = analysis("displacement", time)
¦ u_norms = Dict(i => norm(j) for (i, j) in u)
¦ @test isapprox(maximum(values(u_norms)),2.4052929896922337)
¦ ```
¦ value = Test.FallbackTestSetException("There was an error during testing")
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: unable to get the binding for 'AbaqusReader.abaqus_download' in `@docs` block in src\packages\AbaqusReader\index.md:14-19 from expression ':(AbaqusReader.abaqus_download)' in module Main
¦ ```@docs
¦ AbaqusReader.abaqus_download
¦ AbaqusReader.abaqus_read_mesh
¦ AbaqusReader.abaqus_read_model
¦ AbaqusReader.create_surface_elements
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.abaqus_read_mesh' in `@docs` block in src\packages\AbaqusReader\index.md:14-19 from expression ':(AbaqusReader.abaqus_read_mesh)' in module Main
¦ ```@docs
¦ AbaqusReader.abaqus_download
¦ AbaqusReader.abaqus_read_mesh
¦ AbaqusReader.abaqus_read_model
¦ AbaqusReader.create_surface_elements
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.abaqus_read_model' in `@docs` block in src\packages\AbaqusReader\index.md:14-19 from expression ':(AbaqusReader.abaqus_read_model)' in module Main
¦ ```@docs
¦ AbaqusReader.abaqus_download
¦ AbaqusReader.abaqus_read_mesh
¦ AbaqusReader.abaqus_read_model
¦ AbaqusReader.create_surface_elements
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.create_surface_elements' in `@docs` block in src\packages\AbaqusReader\index.md:14-19 from expression ':(AbaqusReader.create_surface_elements)' in module Main
¦ ```@docs
¦ AbaqusReader.abaqus_download
¦ AbaqusReader.abaqus_read_mesh
¦ AbaqusReader.abaqus_read_model
¦ AbaqusReader.create_surface_elements
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.parse_definition(definition)' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.parse_definition(definition))' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.parse_section' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.parse_section)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.regex_match' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.regex_match)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.add_set!' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.add_set!)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.consumeList' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.consumeList)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.parse_numbers' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.parse_numbers)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.register_abaqus_keyword' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.register_abaqus_keyword)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.is_abaqus_keyword_registered' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.is_abaqus_keyword_registered)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.element_mapping' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.element_mapping)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.find_keywords' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.find_keywords)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.matchset' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.matchset)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.empty_or_comment_line' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.empty_or_comment_line)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.create_surface_element' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.create_surface_element)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: unable to get the binding for 'AbaqusReader.parse_abaqus' in `@docs` block in src\packages\AbaqusReader\index.md:23-38 from expression ':(AbaqusReader.parse_abaqus)' in module Main
¦ ```@docs
¦ AbaqusReader.parse_definition(definition)
¦ AbaqusReader.parse_section
¦ AbaqusReader.regex_match
¦ AbaqusReader.add_set!
¦ AbaqusReader.consumeList
¦ AbaqusReader.parse_numbers
¦ AbaqusReader.register_abaqus_keyword
¦ AbaqusReader.is_abaqus_keyword_registered
¦ AbaqusReader.element_mapping
¦ AbaqusReader.find_keywords
¦ AbaqusReader.matchset
¦ AbaqusReader.empty_or_comment_line
¦ AbaqusReader.create_surface_element
¦ AbaqusReader.parse_abaqus
¦ ```
¦ exception = UndefVarError: AbaqusReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:285
+ Warning: failed to evaluate `Modules = [AsterReader]` in `@autodocs` block in src\packages\AsterReader\api.md:14-16
¦ ```@autodocs
¦ Modules = [AsterReader]
¦ ```
¦ exception = UndefVarError: AsterReader not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:384
+ Warning: '@autodocs' missing 'Modules = ...' in src\packages\AsterReader\api.md:14-16
¦ ```@autodocs
¦ Modules = [AsterReader]
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:477
+ Warning: no docs found for 'interpolate(element::Element, field_name::String, time::Float64)' in `@docs` block in src\packages\FEMBase\api.md:15-17
¦ ```@docs
¦ interpolate(element::Element, field_name::String, time::Float64)
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'assemble_elements!' in `@docs` block in src\packages\FEMBase\api.md:21-23
¦ ```@docs
¦ assemble_elements!
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: failed to parse exception in src\packages\FEMBase\basis.md
¦ exception = Base.Meta.ParseError("extra token \"PSeg\" after end of expression")
+ @ Documenter.Utilities C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Utilities\Utilities.jl:112
+ Warning: failed to run `@example` block in src\packages\FEMBase\basis.md:382-414
¦ ```@example FEMBase
¦ function eval_basis!{T}(basis::PSeg, N::Matrix{T}, xi::Tuple{T})
¦ n = length(basis)
¦ t = xi[1]
¦ N[1] = 0.5*(1-t)
¦ N[2] = 0.5*(1+t)
¦ n < 3 && return N
¦ for i=3:n
¦ j = i-1
¦ P1 = get_legendre_polynomial(j)
¦ P2 = get_legendre_polynomial(j-2)
¦ N[i] = 1.0/sqrt(2.0*(2.0*j-1.0))*(P1(t)-P2(t))
¦ end
¦ return N
¦ end
¦
¦ function eval_dbasis!{T}(basis::PSeg, dN::Matrix{T}, xi::Tuple{T})
¦ n = length(basis)
¦ t = xi[1]
¦ dN[1] = -0.5
¦ dN[2] = 0.5
¦ n < 3 && return N
¦ for i=3:n
¦ j = i-1
¦ P1 = get_legendre_polynomial_derivative(j)
¦ P2 = get_legendre_polynomial_derivative(j-2)
¦ dN[i] = 1.0/sqrt(2.0*(2.0*j-1.0))*(P1(t)-P2(t))
¦ end
¦ return dN
¦ end
¦
¦ nothing # hide
¦ ```
¦ value = TypeError: in Type{...} expression, expected UnionAll, got typeof(eval_basis!)
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\elements.md:85-103
¦ ```@example FEMBase
¦ update!(el, "lambda", 96.0)
¦ update!(el, "mu", 48.0)
¦
¦ A = 0.0
¦ W = 0.0
¦ for ip in get_integration_points(el)
¦ detJ = el(ip, time, Val{:detJ})
¦ A += ip.weight * detJ
¦ ?u = el("displacement", ip, time, Val{:Grad})
¦ E = 1/2*(?u + ?u')
¦ ? = el("lambda", ip, time)
¦ µ = el("mu", ip, time)
¦ W += ip.weight * ( ?/2*trace(E*E') + µ*trace(E)^2) * detJ
¦ end
¦
¦ println("Area: $A")
¦ println("Strain energy: $W")
¦ ```
¦ value = UndefVarError: A not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\elements.md:107-117
¦ ```@example FEMBase
¦ K = zeros(4,4)
¦ update!(el, "coefficient", 36.0)
¦ for ip in get_integration_points(el)
¦ dN = el(ip, time, Val{:Grad})
¦ detJ = el(ip, time, Val{:detJ})
¦ c = el("coefficient", ip, time)
¦ K += ip.weight * c*dN'*dN * detJ
¦ end
¦ K
¦ ```
¦ value = UndefVarError: K not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\elements.md:124-133
¦ ```@example FEMBase
¦ bi = BasisInfo(Quad4)
¦ fill!(K, 0.0)
¦ for ip in get_integration_points(el)
¦ J, detJ, N, dN = element_info!(bi, el, ip, time)
¦ c = el("coefficient", ip, time)
¦ K += ip.weight * c*dN'*dN * detJ
¦ end
¦ K
¦ ```
¦ value = UndefVarError: K not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: no docs found for 'AbstractField' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'DCTI' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'DVTI' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'DCTV' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'DVTV' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'CVTV' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'DVTId' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'DVTVd' in `@docs` block in src\packages\FEMBase\fields.md:271-280
¦ ```@docs
¦ AbstractField
¦ DCTI
¦ DVTI
¦ DCTV
¦ DVTV
¦ CVTV
¦ DVTId
¦ DVTVd
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'new_field' in `@docs` block in src\packages\FEMBase\fields.md:286-290
¦ ```@docs
¦ new_field
¦ update_field!
¦ interpolate_field
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'update_field!' in `@docs` block in src\packages\FEMBase\fields.md:286-290
¦ ```@docs
¦ new_field
¦ update_field!
¦ interpolate_field
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'interpolate_field' in `@docs` block in src\packages\FEMBase\fields.md:286-290
¦ ```@docs
¦ new_field
¦ update_field!
¦ interpolate_field
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'field(x)' in `@docs` block in src\packages\FEMBase\fields.md:295-299
¦ ```@docs
¦ field(x)
¦ update!(field::F, data) where {F<:AbstractField}
¦ interpolate(field::F, time) where {F<:AbstractField}
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'update!(field::F, data) where {F<:AbstractField}' in `@docs` block in src\packages\FEMBase\fields.md:295-299
¦ ```@docs
¦ field(x)
¦ update!(field::F, data) where {F<:AbstractField}
¦ interpolate(field::F, time) where {F<:AbstractField}
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: no docs found for 'interpolate(field::F, time) where {F<:AbstractField}' in `@docs` block in src\packages\FEMBase\fields.md:295-299
¦ ```@docs
¦ field(x)
¦ update!(field::F, data) where {F<:AbstractField}
¦ interpolate(field::F, time) where {F<:AbstractField}
¦ ```
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:334
+ Warning: failed to parse exception in src\packages\FEMBase\problems.md
¦ exception = Base.Meta.ParseError("extra token \"Heat\" after end of expression")
+ @ Documenter.Utilities C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Utilities\Utilities.jl:112
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:86-109
¦ ```@example FEMBase
¦ function assemble_elements!{B}(problem::Problem{Heat}, assembly::Assembly,
¦ elements::Vector{Element{B}}, time::Float64)
¦
¦ println("Assembling elements of kind $B")
¦ bi = BasisInfo(B)
¦ ndofs = length(B)
¦ Ke = zeros(ndofs, ndofs)
¦
¦ for element in elements
¦ fill!(Ke, 0.0)
¦ for ip in get_integration_points(element)
¦ J, detJ, N, dN = element_info!(bi, element, ip, time)
¦ k = element("thermal conductivity", ip, time)
¦ Ke += ip.weight * k*dN'*dN * detJ
¦ end
¦ gdofs = get_gdofs(problem, element)
¦ add!(assembly.K, gdofs, gdofs, Ke)
¦ end
¦
¦ end
¦
¦ nothing # hide
¦ ```
¦ value = UndefVarError: B not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:138-147
¦ ```@example FEMBase
¦ el1 = Element(Quad4, [1, 2, 3, 4])
¦ X = Dict(1 => [0.0,0.0], 2 => [1.0,0.0], 3 => [1.0,1.0], 4 => [0.0,1.0])
¦ update!(el1, "geometry", X)
¦ update!(el1, "thermal conductivity", 6.0)
¦ elements = [el1]
¦ assembly = Assembly()
¦ problem = Problem(Heat, "test problem", 1)
¦ nothing # hide
¦ ```
¦ value = UndefVarError: Heat not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:159-162
¦ ```@example FEMBase
¦ time = 0.0
¦ assemble_elements!(problem, assembly, elements, time)
¦ ```
¦ value = UndefVarError: problem not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:173-182
¦ ```@example FEMBase
¦ el2 = Element(Tri3, [3, 2, 5])
¦ X[5] = [2.0, 1.0]
¦ elements = [el1, el2]
¦ update!(elements, "geometry", X)
¦ update!(elements, "thermal conductivity", 6.0)
¦ problem = Problem(Heat, "test problem", 1)
¦ add_elements!(problem, elements)
¦ assemble!(problem, time)
¦ ```
¦ value = UndefVarError: Heat not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:220-250
¦ ```@example FEMBase
¦ function assemble_elements!{B}(problem::Problem{Heat}, assembly::Assembly,
¦ elements::Vector{Element{B}}, time::Float64)
¦
¦ println("Assembling volume elements of kind $B")
¦ bi = BasisInfo(B)
¦ ndofs = length(B)
¦ Ke = zeros(ndofs, ndofs)
¦ fe = zeros(ndofs)
¦
¦ for element in elements
¦ fill!(Ke, 0.0)
¦ fill!(fe, 0.0)
¦ for ip in get_integration_points(element)
¦ J, detJ, N, dN = element_info!(bi, element, ip, time)
¦ k = element("thermal conductivity", ip, time)
¦ Ke += ip.weight * k*dN'*dN * detJ
¦ if haskey(element, "heat source")
¦ f = element("heat source", ip, time)
¦ fe += ip.weight * N'*f * detJ
¦ end
¦ end
¦ gdofs = get_gdofs(problem, element)
¦ add!(assembly.K, gdofs, gdofs, Ke)
¦ add!(assembly.f, gdofs, fe)
¦ end
¦
¦ end
¦
¦ nothing # hide
¦ ```
¦ value = UndefVarError: B not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:256-282
¦ ```@example FEMBase
¦ function assemble_elements!{B<:Union{Seg2,Seg3}}(problem::Problem{Heat},
¦ assembly::Assembly,
¦ elements::Vector{Element{B}},
¦ time::Float64)
¦
¦ println("Assembling boundary elements of kind $B")
¦ bi = BasisInfo(B)
¦ ndofs = length(B)
¦ fe = zeros(ndofs)
¦
¦ for element in elements
¦ haskey(element, "heat flux") || continue
¦ fill!(fe, 0.0)
¦ for ip in get_integration_points(element)
¦ J, detJ, N, dN = element_info!(bi, element, ip, time)
¦ g = element("heat flux", ip, time)
¦ fe += ip.weight * N'*g * detJ
¦ end
¦ gdofs = get_gdofs(problem, element)
¦ add!(assembly.f, gdofs, fe)
¦ end
¦
¦ end
¦
¦ nothing # hide
¦ ```
¦ value = UndefVarError: B not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:286-303
¦ ```@example FEMBase
¦ el1 = Element(Quad4, [1, 2, 3, 4])
¦ el2 = Element(Tri3, [3, 2, 5])
¦ el3 = Element(Seg2, [3, 5])
¦ X = Dict(1 => [0.0, 0.0],
¦ 2 => [1.0, 0.0],
¦ 3 => [1.0, 1.0],
¦ 4 => [0.0, 1.0],
¦ 5 => [2.0, 1.0])
¦ elements = [el1, el2, el3]
¦ update!(elements, "geometry", X)
¦ update!(elements, "thermal conductivity", 6.0)
¦ update!(el3, "heat flux", 264.0)
¦ update!(el1, "heat source", 132.0)
¦ problem = Problem(Heat, "test problem", 1)
¦ add_elements!(problem, elements)
¦ assemble!(problem, time)
¦ ```
¦ value = UndefVarError: Heat not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:340-346
¦ ```@example FEMBase
¦ function get_unknown_field_name(::Problem{Heat})
¦ return "temperature"
¦ end
¦
¦ nothing # hide
¦ ```
¦ value = UndefVarError: Heat not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to parse exception in src\packages\FEMBase\problems.md
¦ exception = Base.Meta.ParseError("extra token \"DirichletBC\" after end of expression")
+ @ Documenter.Utilities C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Utilities\Utilities.jl:112
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:355-387
¦ ```@example FEMBase
¦ function assemble_elements!{E}(problem::Problem{DirichletBC},
¦ assembly::Assembly,
¦ elements::Vector{Element{E}},
¦ time::Float64)
¦
¦ name = get_parent_field_name(problem)
¦ dim = get_unknown_field_dimension(problem)
¦
¦ println("Assembling Dirichlet boundary condition")
¦ println("Field name = $name, dofs/node = $dim")
¦
¦ data = Dict{Int64,Float64}()
¦ for element in elements
¦ for i=1:dim
¦ haskey(element, "$name $dim") || continue
¦ gdofs = get_gdofs(problem, element)
¦ ldofs = gdofs[i:dim:end]
¦ xis = get_reference_element_coordinates(E)
¦ for (ldof, xi) in zip(ldofs, xis)
¦ data[ldof] = interpolate(element, "$name $dim", xi, time)
¦ end
¦ end
¦ end
¦
¦ for (dof, val) in data
¦ add!(assembly.C1, dof, dof, 1.0)
¦ add!(assembly.C2, dof, dof, 1.0)
¦ add!(assembly.g, dof, val)
¦ end
¦
¦ end
¦ ```
¦ value = UndefVarError: E not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@example` block in src\packages\FEMBase\problems.md:391-398
¦ ```@example FEMBase
¦ bel1 = Element(Seg2, [1, 4])
¦ update!(bel1, "geometry", X)
¦ update!(bel1, "temperature 1", 0.0)
¦ bc = Problem(DirichletBC, "fixed", 1, "temperature")
¦ add_elements!(bc, [bel1])
¦ assemble!(bc, time)
¦ ```
¦ value = UndefVarError: DirichletBC not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to run `@setup` block in src\packages\FEMBase\solvers.md
¦ ```@setup FEMBase
¦ using FEMBase
¦ using FEMBase: LinearSystem, AbstractLinearSystemSolver,
¦ AbstractAnalysis, Analysis, Element, Problem,
¦ Quad4, get_problems
¦ import FEMBase: assemble_elements!, run!, can_solve, solve!
¦
¦ type Heat <: FieldProblem
¦ end
¦
¦ function get_unknown_field_name(::Problem{Heat})
¦ return "temperature"
¦ end
¦
¦ function assemble_elements!{B}(problem::Problem{Heat}, assembly::Assembly,
¦ elements::Vector{Element{B}}, time::Float64)
¦
¦ println("Assembling volume elements of kind $B")
¦ bi = BasisInfo(B)
¦ ndofs = length(B)
¦ Ke = zeros(ndofs, ndofs)
¦ fe = zeros(ndofs)
¦
¦ for element in elements
¦ fill!(Ke, 0.0)
¦ fill!(fe, 0.0)
¦ for ip in get_integration_points(element)
¦ J, detJ, N, dN = element_info!(bi, element, ip, time)
¦ k = element("thermal conductivity", ip, time)
¦ Ke += ip.weight * k*dN'*dN * detJ
¦ if haskey(element, "heat source")
¦ f = element("heat source", ip, time)
¦ fe += ip.weight * N'*f * detJ
¦ end
¦ end
¦ gdofs = get_gdofs(problem, element)
¦ add!(assembly.K, gdofs, gdofs, Ke)
¦ add!(assembly.f, gdofs, fe)
¦ end
¦
¦ end
¦
¦ function assemble_elements!{B<:Union{Seg2,Seg3}}(problem::Problem{Heat},
¦ assembly::Assembly,
¦ elements::Vector{Element{B}},
¦ time::Float64)
¦
¦ println("Assembling boundary elements of kind $B")
¦ bi = BasisInfo(B)
¦ ndofs = length(B)
¦ fe = zeros(ndofs)
¦
¦ for element in elements
¦ haskey(element, "heat flux") || continue
¦ fill!(fe, 0.0)
¦ for ip in get_integration_points(element)
¦ J, detJ, N, dN = element_info!(bi, element, ip, time)
¦ g = element("heat flux", ip, time)
¦ fe += ip.weight * N'*g * detJ
¦ end
¦ gdofs = get_gdofs(problem, element)
¦ add!(assembly.f, gdofs, fe)
¦ end
¦
¦ end
¦
¦ type DirichletBC <: BoundaryProblem
¦ end
¦
¦ function assemble_elements!{E}(problem::Problem{DirichletBC},
¦ assembly::Assembly,
¦ elements::Vector{Element{E}},
¦ time::Float64)
¦
¦ name = get_parent_field_name(problem)
¦ dim = get_unknown_field_dimension(problem)
¦
¦ println("Assembling Dirichlet boundary condition")
¦ println("Field name = $name, dofs/node = $dim")
¦
¦ data = Dict{Int64,Float64}()
¦ for element in elements
¦ for i=1:dim
¦ haskey(element, "$name $dim") || continue
¦ gdofs = get_gdofs(problem, element)
¦ ldofs = gdofs[i:dim:end]
¦ xis = get_reference_element_coordinates(E)
¦ for (ldof, xi) in zip(ldofs, xis)
¦ data[ldof] = interpolate(element, "$name $dim", xi, time)
¦ end
¦ end
¦ end
¦
¦ for (dof, val) in data
¦ add!(assembly.C1, dof, dof, 1.0)
¦ add!(assembly.C2, dof, dof, 1.0)
¦ add!(assembly.g, dof, val)
¦ end
¦
¦ end
¦
¦ ```
¦ exception =
¦ LoadError: syntax: extra token "Heat" after end of expression
¦ in expression starting at string:7
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:655
+ Warning: failed to run `@example` block in src\packages\FEMBase\solvers.md:152-167
¦ ```@example FEMBase
¦ ls = LinearSystem(5)
¦ ls.K = sparse([ 4.0 -1.0 -2.0 -1.0 0.0
¦ -1.0 7.0 -4.0 -2.0 0.0
¦ -2.0 -4.0 10.0 -1.0 -3.0
¦ -1.0 -2.0 -1.0 4.0 0.0
¦ 0.0 0.0 -3.0 0.0 3.0])
¦ ls.C1 = sparse([ 1.0 0.0 0.0 0.0 0.0
¦ 0.0 0.0 0.0 0.0 0.0
¦ 0.0 0.0 0.0 0.0 0.0
¦ 0.0 0.0 0.0 1.0 0.0
¦ 0.0 0.0 0.0 0.0 0.0])
¦ ls.C2 = ls.C1
¦ ls.f = sparsevec([33.0, 33.0, 165.0, 33.0, 132.0])
¦ nothing # hide
¦ ```
¦ value = UndefVarError: sparse not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
+ Warning: failed to parse exception in src\packages\FEMBase\solvers.md
¦ exception = Base.Meta.ParseError("extra token \"LUSolver\" after end of expression")
+ @ Documenter.Utilities C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Utilities\Utilities.jl:112
+ Warning: failed to parse exception in src\packages\FEMBase\solvers.md
¦ exception = Base.Meta.ParseError("extra token \"FakeSolver\" after end of expression")
+ @ Documenter.Utilities C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Utilities\Utilities.jl:112
+ Warning: failed to parse exception in src\packages\FEMBase\solvers.md
¦ exception = Base.Meta.ParseError("extra token \"Static\" after end of expression")
+ @ Documenter.Utilities C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Utilities\Utilities.jl:112
+ Warning: failed to run `@example` block in src\packages\FEMBase\solvers.md:316-343
¦ ```@example FEMBase
¦ X = Dict(1 => [0.0, 0.0],
¦ 2 => [1.0, 0.0],
¦ 3 => [1.0, 1.0],
¦ 4 => [0.0, 1.0],
¦ 5 => [2.0, 1.0])
¦
¦ el1 = Element(Quad4, [1, 2, 3, 4])
¦ el2 = Element(Tri3, [3, 2, 5])
¦ el3 = Element(Seg2, [3, 5])
¦ elements = [el1, el2, el3]
¦ update!(elements, "geometry", X)
¦ update!(elements, "thermal conductivity", 6.0)
¦ update!(el3, "heat flux", 264.0)
¦ update!(el1, "heat source", 132.0)
¦ problem = Problem(Heat, "test problem", 1)
¦ add_elements!(problem, elements)
¦
¦ bel1 = Element(Seg2, [1, 4])
¦ update!(bel1, "geometry", X)
¦ update!(bel1, "temperature 1", 0.0)
¦ bc = Problem(DirichletBC, "fixed", 1, "temperature")
¦ add_elements!(bc, [bel1])
¦
¦ analysis = Analysis(Static, "static analysis of test problem")
¦ add_problems!(analysis, [problem, bc])
¦ run!(analysis)
¦ ```
¦ value = UndefVarError: Heat not defined
+ @ Documenter.Expanders C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\Expanders.jl:564
[ Info: CrossReferences: building cross-references.
+ Warning: no doc found for reference '[`DCTI`](@ref)' in src\packages\FEMBase\fields.md.
+ @ Documenter.CrossReferences C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\CrossReferences.jl:160
+ Warning: no doc found for reference '[`DVTI`](@ref)' in src\packages\FEMBase\fields.md.
+ @ Documenter.CrossReferences C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\CrossReferences.jl:160
+ Warning: no doc found for reference '[`DCTV`](@ref)' in src\packages\FEMBase\fields.md.
+ @ Documenter.CrossReferences C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\CrossReferences.jl:160
+ Warning: no doc found for reference '[`update!`](@ref)' in src\packages\FEMBase\fields.md.
+ @ Documenter.CrossReferences C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\CrossReferences.jl:160
+ Warning: no doc found for reference '[`DVTV`](@ref)' in src\packages\FEMBase\fields.md.
+ @ Documenter.CrossReferences C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\CrossReferences.jl:160
+ Warning: no doc found for reference '[`interpolate`](@ref)' in src\packages\FEMBase\fields.md.
+ @ Documenter.CrossReferences C:\Users\Sukhe\.julia\packages\Documenter\3fOeD\src\CrossReferences.jl:160
+ Warning: no doc found for reference '[`AbstractField`](@ref)'
|
Most of the output is because the documentation generation is failing. Did you already resolve this problem? Anyway, the problem seems to be quite trivial. You just need to have your script and mesh file in the same directory. This is working for me: using AsterReader
meshfile = download("https://github.com/JuliaFEM/AsterReader.jl/raw/master/test/test_read_aster_mesh/quad4.med")
mesh = aster_read_mesh(meshfile)
println(mesh) |
Now |
Hi, I am a beginner in Julia and I am learning JuliaFEM atm.
I added the JuliaFEM and LinearAlgebra Package.
but when come to:
mesh = aster_read_mesh(meshfile)
then comes message as follows:
MethodError: no method matching get_nodes(::AsterReader.MEDFile, ::Dict{Int64,Array{String,1}}, ::String)
Closest candidates are:
get_nodes(::AsterReader.MEDFile, !Matched::Dict{Int32,Array{String,1}}, ::String) at C:\Users\21631933.julia\packages\AsterReader\LfzMD\src\read_aster_mesh.jl:119
Stacktrace:
[1] aster_read_mesh_(::AsterReader.MEDFile, ::Nothing) at C:\Users\21631933.julia\packages\AsterReader\LfzMD\src\read_aster_mesh.jl:201
[2] aster_read_mesh(::String, ::Nothing) at C:\Users\21631933.julia\packages\AsterReader\LfzMD\src\read_aster_mesh.jl:177
[3] #aster_read_mesh#121(::Bool, ::typeof(aster_read_mesh), ::String, ::Nothing) at C:\Users\21631933.julia\packages\JuliaFEM\or1RT\src\preprocess_aster_reader.jl:59
[4] aster_read_mesh(::String, ::Nothing) at C:\Users\21631933.julia\packages\JuliaFEM\or1RT\src\preprocess_aster_reader.jl:59 (repeats 2 times)
[5] top-level scope at In[11]:1
Can anyone helps me with this issue?
THANKS.
The text was updated successfully, but these errors were encountered: