Skip to content
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

FreeCad med file exports Seg3 and Tri6 elements #211

Open
TeroFrondelius opened this issue Aug 15, 2018 · 1 comment
Open

FreeCad med file exports Seg3 and Tri6 elements #211

TeroFrondelius opened this issue Aug 15, 2018 · 1 comment

Comments

@TeroFrondelius
Copy link
Member

I am building full Open source example and I used FreeCAD for geometry and because there is meshing I thought why not. The problem is that your option are Calculix inp or Code Aster binary med. This med file have Seg3 and Tri6 elements included, which are not needed in the analysis.

Also the error message could be clearer.

MethodError: no method matching assemble!(::FEMBase.Assembly, ::FEMBase.Problem{JuliaFEM.Elasticity}, ::Array{FEMBase.Element{FEMBasis.Seg3},1}, ::Float64, ::Type{Val{:continuum}})
Closest candidates are:
  assemble!(::FEMBase.Assembly, ::FEMBase.Problem{JuliaFEM.Elasticity}, ::Array{FEMBase.Element{El<:Union{FEMBasis.Hex20, FEMBasis.Hex27, FEMBasis.Hex8, FEMBasis.Pyr5, FEMBasis.Tet10, FEMBasis.Tet4, FEMBasis.Wedge15, FEMBasis.Wedge6}},1}, ::Any, ::Type{Val{:continuum}}) where El<:Union{FEMBasis.Hex20, FEMBasis.Hex27, FEMBasis.Hex8, FEMBasis.Pyr5, FEMBasis.Tet10, FEMBasis.Tet4, FEMBasis.Wedge15, FEMBasis.Wedge6} at C:\Users\tfr004\.julia\v0.6\JuliaFEM\src\problems_elasticity.jl:106
  assemble!(::FEMBase.Assembly, ::FEMBase.Problem{JuliaFEM.Elasticity}, ::Array{FEMBase.Element{El<:Union{FEMBase.Poi1, FEMBasis.Quad4, FEMBasis.Quad8, FEMBasis.Quad9, FEMBasis.Tri3, FEMBasis.Tri6}},1}, ::Any, ::Type{Val{:continuum}}) where El<:Union{FEMBase.Poi1, FEMBasis.Quad4, FEMBasis.Quad8, FEMBasis.Quad9, FEMBasis.Tri3, FEMBasis.Tri6} at C:\Users\tfr004\.julia\v0.6\JuliaFEM\src\problems_elasticity.jl:350
  assemble!(::FEMBase.Assembly, ::FEMBase.Problem{JuliaFEM.Elasticity}, ::Union{Array{FEMBase.Element,1}, Array{FEMBase.Element{T},1}}, ::Any, ::Type{Val{:plane_stress}}) where T at C:\Users\tfr004\.julia\v0.6\JuliaFEM\src\problems_elasticity_2d.jl:10
  ...
@ahojukka5
Copy link
Member

This is because 3d elasticity does not know what to do with Seg3 elements. Maybe we should give warning in this kind of situations instead of throwing an error. At least give a more clear error message.

ahojukka5 added a commit that referenced this issue Oct 13, 2019
…oblem fails

Sometimes user may have the wrong kind of elements in element set when
assembling 3d continuum problem. This could happen for example in
situations, where mesher is giving also segment elements. They may have
some use in certain situations, but currently we don't support them.
When assembly is failing for this reasons, we give a meaningful error
message:

[ Info: It looks that you are trying to assemble elements of type Seg3
to 3d continuum problem. However, they are not supported yet. To filter
out elements from a element set, try `filter(element->!isa(element,
Element{Seg3}), elements)`
ERROR: LoadError: Tried to assemble unsupported elements of type Seg3 to
3d continuum problem.

This commit closes issue #211.
ahojukka5 added a commit that referenced this issue Oct 13, 2019
…oblem fails

Sometimes user may have the wrong kind of elements in element set when
assembling 3d continuum problem. This could happen for example in
situations, where mesher is giving also segment elements. They may have
some use in certain situations, but currently we don't support them.
When assembly is failing for this reasons, we give a meaningful error
message:

[ Info: It looks that you are trying to assemble elements of type Seg3
to 3d continuum problem. However, they are not supported yet. To filter
out elements from a element set, try `filter(element->!isa(element,
Element{Seg3}), elements)`
ERROR: LoadError: Tried to assemble unsupported elements of type Seg3 to
3d continuum problem.

This commit closes issue #211.
ahojukka5 added a commit that referenced this issue Oct 27, 2019
…oblem fails

Sometimes user may have the wrong kind of elements in element set when
assembling 3d continuum problem. This could happen for example in
situations, where mesher is giving also segment elements. They may have
some use in certain situations, but currently we don't support them.
When assembly is failing for this reasons, we give a meaningful error
message:

[ Info: It looks that you are trying to assemble elements of type Seg3
to 3d continuum problem. However, they are not supported yet. To filter
out elements from a element set, try `filter(element->!isa(element,
Element{Seg3}), elements)`
ERROR: LoadError: Tried to assemble unsupported elements of type Seg3 to
3d continuum problem.

This commit closes issue #211.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants