Hello.
Our research team works with a finite element library that reads .unv files and requires all volume IDs and surface IDs in section 2467 to be numbers. When exporting from Trelis to .unv file, we face the following issues.
- Section 2467 in .unv files is obsolete, so I guess that is why Trelis writes all information about IDs to section 2477. Solution is simple: rename section in .unv file after it is written. This needs to be checked. I could not do that since I have other issues, so the program does not run.
- One cannot assign numbers as names of volume/surface groups when using Trelis GUI. Although assigning a number name to volume using command line works fine, you get an error if you do that with surfaces: “Problem assigning the name ‘1’. The default name will be used.” After that, surfaces do not appear in section 2477 at all. I knew that assigning names like “S1”, “S2”, etc. to surfaces would not work in our case (library-specific issue), but decided to try. Assigning itself seems to work fine, but I get a warning when exporting that says “Group 7 contains entities that were not written out.This group will be skipped.” Surface IDs are not present in section 2477 again.
So my questions are:
- Is there any way to make Trelis assign number IDs to surfaces? It worked with volumes (they appear in .unv file).
- How do I overcome the issue with the warning mentioned above?
Code is as follows.
####################
##### GEOMETRY #####
####################
# Create membrane
brick x 0.25 y 0.15 z 0.0175
# Move membrane to more convenient location
move volume 1 location 0.125 0.075 0.00875 include_merged
# Create vertices for future arcs to use webcutting tool
create vertex 0.001 0 0.0175 color
create vertex 0.0005 0 0.0175 color
create vertex 0 0 0.017 color
create vertex 0 0 0.0165 color
create vertex 0 0 0.00875 color
create vertex 0.00875 0 0.0175 color
# Create arcs
create curve arc center vertex 4 11 10
create curve arc center vertex 4 12 9
create curve arc center vertex 4 13 14
# Create lines for additional cuts
create curve location 0.035 0 0 location 0.035 0 0.0175
create curve location 0.1 0 0 location 0.1 0 0.0175
# Use webcutting tool to decompose geometry
webcut body 1 sweep curve 13 zaxis angle 90 stop surface 4
webcut body 2 sweep curve 14 zaxis angle 90 stop surface 12
webcut body 3 sweep curve 15 zaxis angle 90 stop surface 21
webcut body 4 sweep curve 16 zaxis angle 90 stop surface 30
webcut body 5 sweep curve 17 along curve 1
# Imprint and merge everything
imprint body all
merge body all
####################
####### MESH #######
####################
# Define number of intervals for all volumes
volume all interval 10
# Mesh everything with Polyhedron scheme
volume all scheme Polyhedron
mesh volume all
####################
######## IDs ########
####################
group '0' equals Volume all
group '1' equals Surface 9
group '2' equals Surface 16
group '3' equals Surface 26 34 44 49
group '4' equals Surface 38 35 24 17 10 8 18 25 33 43 50
group '5' equals Surface 45 48 6
group '6' equals Surface 32 42 47
Note that surface names are numbers.
Thank you.