Thread: [vmtk-users] mesh conversion to lifev
Brought to you by:
davidsteinman,
lucantiga
From: Lucia M. <lmi...@ma...> - 2013-05-02 00:25:41
|
Hi Luca, I'm trying to save a vtu mesh in lifev format: vmtkmeshreader -ifile mesh.vtu --pipe vmtkmeshwriter -f lifev -ofile mesh.lifev but I get an error when I try: Writing LifeV file. Error from pype: ambiguous call, multiple overloaded methods match the arguments This doesn't happen if I save it in a different format. Do you have any idea on what I'm doing wrong? In case it helps understanding the problem, the vtu mesh was saved from Paraview originally, but I also "re-saved" it using vmtk before attempting the conversion to lifev. Thanks! Lucia |
From: Simone M. <sim...@or...> - 2013-05-02 09:37:35
|
Dear Lucia, your pipe seems to be ok. I tried to use it to convert a simple mesh.vtu file into .lifev and it worked. In order to better understand the problem I suggest to try: vmtkmeshwriter -ifile mesh.vtu -f lifev -entityidsarray CellEntityIds -ofile mesh.lifev entityidsarray it is usually CellEntityIds but you can check it by using vmtkmeshreader -ifile mesh.vtu Kind Regards Simone -- Simone Manini, Eng Orobix Srl via L.A. Muratori 3, 24123 Bergamo, Italy orobix: www.orobix.com home: http://daron1337.github.com twitter: twitter.com/daron1337 mobile: +39.328.60.22.017 office: +39.035.0296480 +39.035.42131 "This message originates from Orobix Srl and its contents and attachments are privileged and confidential and are intended only for the individual(s) or entity(ies) named above. This message should not be forwarded, distributed or disclosed. Any unauthorized use, dissemination and duplication is strictly prohibited and may be unlawful. All personal messages express views solely of the sender, which are not to be attributed to Orobix Srl, and may not be copied or distributed without this disclaimer. If you are not the intended recipient or received this message in error, please delete this message and notify the sender by reply e-mail. Opinions, conclusions and other information in this message that do not relate to the official business of Orobix Srl shall be understood as neither given nor endorsed by it." On May 2, 2013, at 1:51 AM, Lucia Mirabella <lmi...@ma...> wrote: > Hi Luca, > > I'm trying to save a vtu mesh in lifev format: > > vmtkmeshreader -ifile mesh.vtu --pipe vmtkmeshwriter -f lifev -ofile mesh.lifev > > but I get an error when I try: > > Writing LifeV file. > Error from pype: ambiguous call, multiple overloaded methods match the arguments > > This doesn't happen if I save it in a different format. > > Do you have any idea on what I'm doing wrong? > > In case it helps understanding the problem, the vtu mesh was saved from Paraview originally, but I also "re-saved" it using vmtk before attempting the conversion to lifev. > > Thanks! > > Lucia > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > vmtk-users mailing list > vmt...@li... > https://lists.sourceforge.net/lists/listinfo/vmtk-users |
From: Lucia M. <lmi...@ma...> - 2013-05-02 13:42:18
|
Dear Simone, thanks for your reply! I tried your suggestion, but I get the same error. I paste here below the full output, in case it helps identifying the problem. Thanks! Lucia $ vmtkmeshwriter -ifile lego_mesh_tet.vtu -f lifev -entityidsarray CellEntityIds -ofile lego_mesh_tet.lifev Creating vmtkMeshWriter instance. Automatic piping vmtkmeshwriter Parsing options vmtkmeshwriter MeshInputFileName = lego_mesh_tet.vtu Format = lifev OutputFileName = lego_mesh_tet.lifev CellEntityIdsArrayName = CellEntityIds Explicit piping vmtkmeshwriter Input vmtkmeshwriter members: Id = 0 Disabled = 0 Mesh = None MeshInputFileName = lego_mesh_tet.vtu Format = lifev GuessFormat = 1 Compressed = 1 OutputFileName = lego_mesh_tet.lifev Mesh = None Mode = binary CellEntityIdsArrayName = CellEntityIds CellEntityIdsOffset = -1 WriteRegionMarkers = 0 Reading VTK XML mesh file. Executing vmtkmeshwriter ... Writing LifeV file. Error from pype: ambiguous call, multiple overloaded methods match the arguments ----- Original Message ----- From: "Simone Manini" <sim...@or...> To: "Lucia Mirabella" <lmi...@ma...> Cc: vmt...@li... Sent: Thursday, May 2, 2013 5:37:26 AM Subject: Re: [vmtk-users] mesh conversion to lifev Dear Lucia, your pipe seems to be ok. I tried to use it to convert a simple mesh.vtu file into .lifev and it worked. In order to better understand the problem I suggest to try: vmtkmeshwriter -ifile mesh.vtu -f lifev -entityidsarray CellEntityIds -ofile mesh.lifev entityidsarray it is usually CellEntityIds but you can check it by using vmtkmeshreader -ifile mesh.vtu Kind Regards Simone -- Simone Manini, Eng Orobix Srl via L.A. Muratori 3, 24123 Bergamo, Italy orobix: www.orobix.com home: http://daron1337.github.com twitter: twitter.com/daron1337 mobile: +39.328.60.22.017 office: +39.035.0296480 +39.035.42131 "This message originates from Orobix Srl and its contents and attachments are privileged and confidential and are intended only for the individual(s) or entity(ies) named above. This message should not be forwarded, distributed or disclosed. Any unauthorized use, dissemination and duplication is strictly prohibited and may be unlawful. All personal messages express views solely of the sender, which are not to be attributed to Orobix Srl, and may not be copied or distributed without this disclaimer. If you are not the intended recipient or received this message in error, please delete this message and notify the sender by reply e-mail. Opinions, conclusions and other information in this message that do not relate to the official business of Orobix Srl shall be understood as neither given nor endorsed by it." On May 2, 2013, at 1:51 AM, Lucia Mirabella < lmi...@ma... > wrote: Hi Luca, I'm trying to save a vtu mesh in lifev format: vmtkmeshreader -ifile mesh.vtu --pipe vmtkmeshwriter -f lifev -ofile mesh.lifev but I get an error when I try: Writing LifeV file. Error from pype: ambiguous call, multiple overloaded methods match the arguments This doesn't happen if I save it in a different format. Do you have any idea on what I'm doing wrong? In case it helps understanding the problem, the vtu mesh was saved from Paraview originally, but I also "re-saved" it using vmtk before attempting the conversion to lifev. Thanks! Lucia ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ vmtk-users mailing list vmt...@li... https://lists.sourceforge.net/lists/listinfo/vmtk-users |
From: Simone M. <sim...@or...> - 2013-05-02 15:08:58
|
Dear Lucia, it is an error which is generated in vtkPythonOverload.cxx file. I don't know why it happens, I never seen this before. Did you already try to use another file? Regards Simone -- Simone Manini, Eng Orobix Srl via L.A. Muratori 3, 24123 Bergamo, Italy orobix: www.orobix.com home: http://daron1337.github.com twitter: twitter.com/daron1337 mobile: +39.328.60.22.017 office: +39.035.0296480 +39.035.42131 "This message originates from Orobix Srl and its contents and attachments are privileged and confidential and are intended only for the individual(s) or entity(ies) named above. This message should not be forwarded, distributed or disclosed. Any unauthorized use, dissemination and duplication is strictly prohibited and may be unlawful. All personal messages express views solely of the sender, which are not to be attributed to Orobix Srl, and may not be copied or distributed without this disclaimer. If you are not the intended recipient or received this message in error, please delete this message and notify the sender by reply e-mail. Opinions, conclusions and other information in this message that do not relate to the official business of Orobix Srl shall be understood as neither given nor endorsed by it." On May 2, 2013, at 3:42 PM, Lucia Mirabella <lmi...@ma...> wrote: > vmtkmeshwriter -ifile lego_mesh_tet.vtu -f lifev -entityidsarray CellEntityIds -ofile lego_mesh_tet.lifev |
From: Luca A. <luc...@or...> - 2013-05-06 12:14:20
|
Hi Lucia, the error doesn't occur on my hand. Just in order to understand what's going on, do you get partial results written out to the file at all? What you could do is locate the vmtkmeshwriter.py file in [vmtk-install-location]/lib/vmtk/vmtk and scatter a few prints here and there in the WriteLifeVMeshFile method. The writer is all there, there's no C++ counterparts so it shouldn't be too messy to debug. Keep us posted Luca On May 2, 2013, at 5:08 PM, Simone Manini wrote: > Dear Lucia, > it is an error which is generated in vtkPythonOverload.cxx file. > I don't know why it happens, I never seen this before. > Did you already try to use another file? > Regards > Simone > > > -- > Simone Manini, Eng > Orobix Srl > via L.A. Muratori 3, 24123 Bergamo, Italy > > orobix: www.orobix.com > home: http://daron1337.github.com > twitter: twitter.com/daron1337 > mobile: +39.328.60.22.017 > office: +39.035.0296480 > +39.035.42131 > > "This message originates from Orobix Srl and its contents and attachments are privileged and confidential and are intended only for the individual(s) or entity(ies) named above. This message should not be forwarded, distributed or disclosed. Any unauthorized use, dissemination and duplication is strictly prohibited and may be unlawful. All personal messages express views solely of the sender, which are not to be attributed to Orobix Srl, and may not be copied or distributed without this disclaimer. If you are not the intended recipient or received this message in error, please delete this message and notify the sender by reply e-mail. Opinions, conclusions and other information in this message that do not relate to the official business of Orobix Srl shall be understood as neither given nor endorsed by it." > > On May 2, 2013, at 3:42 PM, Lucia Mirabella <lmi...@ma...> wrote: > >> vmtkmeshwriter -ifile lego_mesh_tet.vtu -f lifev -entityidsarray CellEntityIds -ofile lego_mesh_tet.lifev > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________ > vmtk-users mailing list > vmt...@li... > https://lists.sourceforge.net/lists/listinfo/vmtk-users |