-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Issue converting INP to VTK file format #719
Comments
It works in the latest revision of meshio; just upgrade. |
Thanks work your quick reply. It worked but VTK file has only surface information. Can you suggest me to which format I can convert this INP file such that I can view volume elements along with element sets in Paraview ? |
Sorry Sir, for my lack of information. Just a last question, I had created element sets in INP file, but now in VTK how can I view those group of elements again ? |
Aha. Well, VTK doesn't support element sets as abaqus does. I suppose one could map those to integer cell functions. (It's really the reverse of what #716 is about.) I'll take a look. |
Alright, |
Respected Sir,
I am still struggling to figure out, how to display element sets using VTK
file in paraview.
Regards
…On Thu, 20 Feb 2020 at 17:15, Nico Schlömer ***@***.***> wrote:
Alright, -s should help you out now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#719?email_source=notifications&email_token=AL5K3EPTFZTWGBCGZIS5V3TRD2UAPA5CNFSM4KYN7OG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMO6E5Q#issuecomment-589161078>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5K3EO3STGT72BHS65CS7LRD2UAPANCNFSM4KYN7OGQ>
.
|
We call each other by our first names here. I'm Nico.
It should all work now. What have you tried? |
I imported VTK file to paraview. Then created group dataset and tried if
vtkBlockColor displays element set. After my failure, I tried to do Color
Map. But still I am unable to figure out the way to display set of elements
with different colours as it is in Abaqus.
Regards
…On Thu 20 Feb, 2020, 11:18 PM Nico Schlömer, ***@***.***> wrote:
Respected Sir,
We call each other by our first names here. I'm Nico.
I am still struggling to figure out, how to display element sets using VTK
file in paraview.
It should all work now. What have you tried?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#719?email_source=notifications&email_token=AL5K3ENICTUMW6HM4KENFBDRD36TNA5CNFSM4KYN7OG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMQTSJY#issuecomment-589379879>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5K3EIYFKBU2YNUYD7SOM3RD36TNANCNFSM4KYN7OGQ>
.
|
Looks like a conversion issue. The scale goes completely through the roof in the VTK one. |
Works fine here? |
Your command is missing the option |
Note that you probably need to install the GitHub version of
|
Hello, I'm on a project where I need to do what you did in your example. So, I took a cylinder that I cut into two mesh zones (zone1 = material1 and zone2 = material2). I output an .inp file After that, I converted it to .vtk file with meshio by adding the -s command However, when I open my .vtk file with paraview, nothing is displayed. So, I tried to take yours, it opens and I can visualize the meshes (I can't see the colors of the different materials). That why, I don't understand why on my side I can't see my files on paraview or see the colors. How do you do it and which versions do you use? Is there, something to modify in this .inp file to see the two distinct materials as well as the geometry and the mesh on paraview? My file .inp is attached. |
I have attached the INP file for your reference. I had to compress it to zip as I was not allowed to upload INP file in this issue form.
The INP file consists of nodes and only volume elements along with element sets and solid sections. I am aiming to convert it to a file format such that I can view element sets in Paraview.
I am trying to convert this INP file to VTK format, but it throws me 'IndexError'. Following is the error details:
$ meshio-convert mesh_TET.inp mesh_TET.vtk
Number of points: 94
Number of cells:
tetra: 221
Traceback (most recent call last):
File "/home/prince/.virtualenvs/python101/bin/meshio-convert", line 8, in
sys.exit(convert())
File "/home/prince/.virtualenvs/python101/lib/python3.5/site-packages/meshio/_cli.py", line 50, in convert
write(args.outfile, mesh, file_format=args.output_format)
File "/home/prince/.virtualenvs/python101/lib/python3.5/site-packages/meshio/_helpers.py", line 125, in write
if value.shape[1] != num_nodes_per_cell[key]:
IndexError: tuple index out of range
mesh_file.zip
The text was updated successfully, but these errors were encountered: