dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22724
Re: [Question #153448]: Importing mesh and entities
Question #153448 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/153448
Status: Answered => Open
B. Emek Abali is still having a problem:
Thanks Johan, You followed better than I could prescribe. I can
understand the situation better and You started to to revise a bit in
the meshconvert :)
Now,
python
from dolfin.mesh.meshconvert import *
convert('Input.inp', XmlHandler('Output.xml'), 'abaqus')
gets in meshconvert.py
1045
handler.start_meshfunction("material", 3, num_entities)
starts
854
def start_meshfunction(self, name, dim, size):
DataHandler.start_meshfunction(self, name, dim, size)
fname = os.path.splitext(self.__ofile.name)[0]
self.__ofile_meshfunc = file("%s_%s.xml" % (fname, name), "wb")
write_header_meshfunction(self.__ofile_meshfunc, dim, size)
makes only one intermediate data (for more than one material names), but I cannot read them
mesh = Mesh('Output_material.xml')
even the output
mesh = Mesh('Output.xml')
mf = mesh.data().mesh_function('material')
returns zero
:I
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
Follow ups
References