-
Notifications
You must be signed in to change notification settings - Fork 66
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
xdmf export: bounds error with Dirichnet nodal displacement boundary #202
Comments
You can actually get around with this one by updating geometry to the nodal elements, Updating geometry should work for all nodes: X = Dict(1 => [1.0, 2.0])
p = Element(Poi1, [1])
update!(p, "geometry", X)
p("geometry", 0.0)
# output
([1.0, 2.0],) |
Thanks for your explanation. This works.
|
We have a function About strings and symbols, I'm not that sure which ones are better to use. Symbols work well as long as there is no whitespaces in names and colon syntax works, like in set names, |
I would argue that the performance penalty is hard to measure in general, since people may come up with unconventional, dictionary-heavy problems. Besides that, naming variables identically to dict keys may be nicer coding style (of course, its a matter of taste): |
This is a very good point. We then could also use macros to unpack fields from the element: @unpack youngs_modulus displacement poissons_ratio Another thing to consider is that strings implement string manipulation routines which we don't actually use anywhere. So the use of symbols instead of strings would be more appropriate. |
Hi,
A simple 3d linear elastic problem with prescribed nodal displacements cannot be exported. See attached case. I am using Julia 0.6.3 with JuliaFEM version is 0.4.0.
bug.tar.gz
EDIT: This issue might be due to the following inconsistency: update!(element, "geometry", mesh.nodes) does not work for element==Poi1, so it contains no coordinate.
Cheers,
Andi
The text was updated successfully, but these errors were encountered: