[Paraview] from matlab to paraview
Hi all! I have created a vtk file in matlab and I would like to export it to paraview. I need a script/function which would load this vtk file from matlab to paraview. I would really appreciate if any of you could share some hints or some links where such a process is explained. Thank you! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Warp by vector not fully working
SOLVED! From: ParaView on behalf of Doina Gumeniuc (224252 MAHS) <224...@via.dk> Sent: December 6, 2017 10:10:26 AM To: paraview@paraview.org Subject: Re: [Paraview] Warp by vector not fully working Sorry! Silly me, I needed point instead of comma. Could you please let me know the way to introduce more displacement fields? Thank you! From: ParaView on behalf of Doina Gumeniuc (224252 MAHS) <224...@via.dk> Sent: December 6, 2017 9:48:35 AM To: paraview@paraview.org Subject: [Paraview] Warp by vector not fully working Hi all! I have a structure from points and lines. The POINT_DATA contains some displacement vectors. When I load it in Paraview and use Warp by Vector, it does not give me any displacement or change in color. Is my code wrong? Please see my file attached. Also, I would like to add under POINT_DATA more vector fields (example, VECTORS mode1 float, VECTORS mode2 float and so on..but it reads only the first field of vectors, how can I solve that?) Thank you all in advance! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Warp by vector not fully working
Sorry! Silly me, I needed point instead of comma. Could you please let me know the way to introduce more displacement fields? Thank you! From: ParaView on behalf of Doina Gumeniuc (224252 MAHS) <224...@via.dk> Sent: December 6, 2017 9:48:35 AM To: paraview@paraview.org Subject: [Paraview] Warp by vector not fully working Hi all! I have a structure from points and lines. The POINT_DATA contains some displacement vectors. When I load it in Paraview and use Warp by Vector, it does not give me any displacement or change in color. Is my code wrong? Please see my file attached. Also, I would like to add under POINT_DATA more vector fields (example, VECTORS mode1 float, VECTORS mode2 float and so on..but it reads only the first field of vectors, how can I solve that?) Thank you all in advance! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Warp by vector not fully working
Hi all! I have a structure from points and lines. The POINT_DATA contains some displacement vectors. When I load it in Paraview and use Warp by Vector, it does not give me any displacement or change in color. Is my code wrong? Please see my file attached. Also, I would like to add under POINT_DATA more vector fields (example, VECTORS mode1 float, VECTORS mode2 float and so on..but it reads only the first field of vectors, how can I solve that?) Thank you all in advance! Turbine.vtk Description: Turbine.vtk ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Degrees of freedom
Hi Samuel, Thank you so much! This is extremely helpful ^_^ From: Samuel Key Sent: November 21, 2017 10:38:15 PM To: Doina Gumeniuc (224252 MAHS); paraview@paraview.org Subject: Re: [Paraview] Degrees of freedom Doina-- In what follows, I will skip talking about a 3-nod quadratic line as a way to display a cured beam or a deformed beam. (I live in a world of large deformation simulations and I like to display that type of behavior.) The concept of FIELD (aka GLOBAL) simulation results, for example, results that come from or related to overall behavior like total Kinetic Energy (KE), are well supported by the Exodus-II format and are absent from the EnSight format and the VTK format for simulation results. I will confine my comments to what I have to offer to just POINT data and CELL data. It is convenient to divide simulation results into three categories for virtually all of the data formats that PV can read. (1) GEOMETRY data (2) POINT data (3) CELL data The following is the VTK-XML ASCII format. (See the attached file 'resultsvtk.f') (1) GEOMETRY. ParaView is quite happy with just GEOMETRY data.(It is a nice way to start when one is trying to write a datum set for ParaView. ParaView will display an object with only the geometry data.) (1a) Write the entire Point inventory from 1 to n where n = number of nodal points in terms of coordinate 3-tuples [(x1,y1,z1,), ...,(xn,yn,zn)] (1b) Write the entire Cell inventory of connectivity n-tuples (as array offsets!) (1c) Write the 'starting location' for the n-tuples in (1b) (1d) Write the VTK cell-type values for the n-tuples in (1b) ParaView now has everything it needs to display your geometry. (2) Write POINT data information. (2a) In the case of 'mode shapes,' write the mode's displacement 3-tuples (aka Vectors, name="Mode1") [(UxM1,UyM1,UzM1),...,(UxMn,UyMn,UzMn)] (2b) Repeat with name="Mode2", and so fourth (aka und so weiter) ParaView now has the enough information to animate the mode shapes. Instructions are here ( https://public.kitware.com/pipermail/paraview/2017-October/041077.html ) for producing animations of the mode shapes. Hope this helps. --Sam On 11/21/2017 7:15 AM, Doina Gumeniuc (224252 MAHS) wrote: Hi Samuel, Thank you for your reply. I have different frequencies, 50 in total. If I use FIELD POINT DATA and then for arrayname 1 and so on, I use the Freq1, Freq2... then for 6Dofs, I use vectors in x,y,z for translation and Phi-x,Phi-y, Phi-z for rotation would it make sense in paraview? I can hopefully then warp by vectors using the data for each frequency. Thank you! I hope I was clear. From: ParaView <mailto:paraview-boun...@paraview.org> on behalf of Samuel Key <mailto:samuel...@bresnan.net> Sent: November 18, 2017 7:00:51 PM To: paraview@paraview.org<mailto:paraview@paraview.org> Subject: Re: [Paraview] Degrees of freedom Doina-- At the risk of underestimating ParaView's functionalities, I can tell you what will work. For displaying geometry, PV only needs Point (aka nodal point) x,y,z-coordinates, a Cell (aka Finite Element, ...) type and for each Cell an n-tuple of Point "array locations", for example, EnSight-format::{1,2,4,3,7,8,} or VTK-format::{0,1,3,2,6,7}. The VTK format uses C-language 'array offsets' for Cell connectivity n-tuples. The EnSight format uses FORTRAN-language array locations for Finite Element connectivity n-tuples. It is just the way it is. Variables are either located at Points or in Cells (conceptually Cell centers). The arrays supplied for variables must span all of the Points or all of the Cells. (I do not know how to use or about the acceptability of "partially" specified variable datum sets.) For Points with 6-DOFs versus 3-DOFs, if you want to see the three rotational DOFs, use POINT DATA arrays and fill in the Phi-x, Phi-y, Phi-z values using zeros for at those Points without a rotation. If you want to visually display a 2-node, 6-DOF beam's geometry (a curved beam or a deformed beam) , one solution is too use a VTK Cell type 'VTK_QUADRATIC_EDGE = 21' for the beam. This will require you to add-on-the-fly to the simulation results a beam center-Point with x,y,z-coordinates and displacements for the beam's center Point using the beam's interpolation functions. (PV has a Warp Filter that will let you then scale up the deflections for visualization purposes.) Should you have access to source code for the simulations, I can supply FORTRAN language routines that write VTK ASCII-formatted simulation results. (My personal preference is the EnSight format.) --Sam On 11/18/2017 6:12 AM, Doina Gumeniuc (224252 MAHS) wrote: Hi all! I am still learning the use of paraview and I have got to such a question:
Re: [Paraview] Degrees of freedom
Hi Samuel, Thank you for your reply. I have different frequencies, 50 in total. If I use FIELD POINT DATA and then for arrayname 1 and so on, I use the Freq1, Freq2... then for 6Dofs, I use vectors in x,y,z for translation and Phi-x,Phi-y, Phi-z for rotation would it make sense in paraview? I can hopefully then wrap by vectors using the data for each frequency. Thank you! I hope I was clear. From: ParaView on behalf of Samuel Key Sent: November 18, 2017 7:00:51 PM To: paraview@paraview.org Subject: Re: [Paraview] Degrees of freedom Doina-- At the risk of underestimating ParaView's functionalities, I can tell you what will work. For displaying geometry, PV only needs Point (aka nodal point) x,y,z-coordinates, a Cell (aka Finite Element, ...) type and for each Cell an n-tuple of Point "array locations", for example, EnSight-format::{1,2,4,3,7,8,} or VTK-format::{0,1,3,2,6,7}. The VTK format uses C-language 'array offsets' for Cell connectivity n-tuples. The EnSight format uses FORTRAN-language array locations for Finite Element connectivity n-tuples. It is just the way it is. Variables are either located at Points or in Cells (conceptually Cell centers). The arrays supplied for variables must span all of the Points or all of the Cells. (I do not know how to use or about the acceptability of "partially" specified variable datum sets.) For Points with 6-DOFs versus 3-DOFs, if you want to see the three rotational DOFs, use POINT DATA arrays and fill in the Phi-x, Phi-y, Phi-z values using zeros for at those Points without a rotation. If you want to visually display a 2-node, 6-DOF beam's geometry (a curved beam or a deformed beam) , one solution is too use a VTK Cell type 'VTK_QUADRATIC_EDGE = 21' for the beam. This will require you to add-on-the-fly to the simulation results a beam center-Point with x,y,z-coordinates and displacements for the beam's center Point using the beam's interpolation functions. (PV has a Warp Filter that will let you then scale up the deflections for visualization purposes.) Should you have access to source code for the simulations, I can supply FORTRAN language routines that write VTK ASCII-formatted simulation results. (My personal preference is the EnSight format.) --Sam On 11/18/2017 6:12 AM, Doina Gumeniuc (224252 MAHS) wrote: Hi all! I am still learning the use of paraview and I have got to such a question: How to show in a vtk input file the degrees of freedom of elements? Some of the beams have 6 degrees of freedom, some of the other elements...less or nothing at all. IS there any possibility? Thank you a lot in advance! ___ Powered by www.kitware.com<http://www.kitware.com> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Degrees of freedom
Hi all! I am still learning the use of paraview and I have got to such a question: How to show in a vtk input file the degrees of freedom of elements? Some of the beams have 6 degrees of freedom, some of the other elements...less or nothing at all. IS there any possibility? Thank you a lot in advance! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] NaN values
Hi! Yes, I of course understand your point. There is a bit of a problem though: In reality, this file is much more bigger and deleting the NaNs by hand is not an option (also I am trying to make it all happen automatically). If I ask matlab to delete the zeros from my file, the shape of the matrix will change, so the only solution I found so far is to replace the zeros by NaNs in matlab, which gives me error in paraview, for the reason you, Moreland, explained. So my question would be again, is it possible to replace it with anything else? Thank you! From: Moreland, Kenneth Sent: November 14, 2017 12:24:03 AM To: Doina Gumeniuc (224252 MAHS); Mathieu Westphal; paraview@paraview.org Subject: Re: [Paraview] NaN values Doina, vtk files support Nan’s in general. (I just tried it. It worked fine.) However, you are trying to introduce NaN’s in a list of integer connections, which is just wrong on many levels. However, I do not see why you need NaN at all. The LINES connectivity list allows you to vary the length of the line chain. It looks like you can solve your problem by simply not writing out the NaN’s in the fill. In the example you sent us, I presume that you mean to have 4 line cells with 2, 3, 2, and 2 vertices, respectively. The following should be the correct representation of that: LINES 4 13 2 0 1 3 1 2 3 2 3 4 2 4 5 -Ken From: ParaView on behalf of "Doina Gumeniuc (224252 MAHS)" <224...@via.dk> Date: Monday, November 13, 2017 at 12:55 PM To: Mathieu Westphal , "paraview@paraview.org" Subject: [EXTERNAL] Re: [Paraview] NaN values Hi Mathieu, Sadly I can not import the whole file, but here is an example: LINES 4 13 2 0 1 NaN 3 1 2 3 2 3 4 NaN 2 4 5 NaN I make the vtk file in matlab by extracting the information from a .dat file. Originally, instead of NaN there are zeros, but I just need blanks without changing the shape of the matrix, which is why I use NaN, but it gives me error in paraview. I hope it explains what I mean. Thank you! From: Mathieu Westphal Sent: November 13, 2017 4:29:18 PM To: Doina Gumeniuc (224252 MAHS) Cc: paraview@paraview.org Subject: Re: [Paraview] NaN values Hi Can you share your dataset ? Thanks, Mathieu Westphal On Mon, Nov 13, 2017 at 4:10 PM, Doina Gumeniuc (224252 MAHS) <224...@via.dk<mailto:224...@via.dk>> wrote: Hi Mathieu, I am using a vtk poly data file, which when I load in paraview, it gives me error (paraview just stops working). I was thinking it is because of my NaN values. From: Mathieu Westphal mailto:mathieu.westp...@kitware.com>> Sent: November 13, 2017 2:53:19 PM To: Doina Gumeniuc (224252 MAHS) Cc: paraview@paraview.org<mailto:paraview@paraview.org> Subject: Re: [Paraview] NaN values Hi ParaView understand NaN correctly as blanks. If you are reading a .csv file, the correct string that is interpreted as NaN is "nan" without the quotes. Best, Mathieu Westphal On Mon, Nov 13, 2017 at 2:48 PM, Doina Gumeniuc (224252 MAHS) <224...@via.dk<mailto:224...@via.dk>> wrote: Hi all, I have a file with NaN values in almost every column and row. The integer numbers represent which points should be connected by lines, therefor I can not replace NaN with zeros because it will interpret it as Point with ID 0. Is there any way I can replace this NaNs with something which paraview reads as blanks? Thank you! ___ Powered by www.kitware.com<http://www.kitware.com> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] NaN values
Hi Mathieu, Sadly I can not import the whole file, but here is an example: LINES 4 13 2 0 1 NaN 3 1 2 3 2 3 4 NaN 2 4 5 NaN I make the vtk file in matlab by extracting the information from a .dat file. Originally, instead of NaN there are zeros, but I just need blanks without changing the shape of the matrix, which is why I use NaN, but it gives me error in paraview. I hope it explains what I mean. Thank you! From: Mathieu Westphal Sent: November 13, 2017 4:29:18 PM To: Doina Gumeniuc (224252 MAHS) Cc: paraview@paraview.org Subject: Re: [Paraview] NaN values Hi Can you share your dataset ? Thanks, Mathieu Westphal On Mon, Nov 13, 2017 at 4:10 PM, Doina Gumeniuc (224252 MAHS) <224...@via.dk<mailto:224...@via.dk>> wrote: Hi Mathieu, I am using a vtk poly data file, which when I load in paraview, it gives me error (paraview just stops working). I was thinking it is because of my NaN values. From: Mathieu Westphal mailto:mathieu.westp...@kitware.com>> Sent: November 13, 2017 2:53:19 PM To: Doina Gumeniuc (224252 MAHS) Cc: paraview@paraview.org<mailto:paraview@paraview.org> Subject: Re: [Paraview] NaN values Hi ParaView understand NaN correctly as blanks. If you are reading a .csv file, the correct string that is interpreted as NaN is "nan" without the quotes. Best, Mathieu Westphal On Mon, Nov 13, 2017 at 2:48 PM, Doina Gumeniuc (224252 MAHS) <224...@via.dk<mailto:224...@via.dk>> wrote: Hi all, I have a file with NaN values in almost every column and row. The integer numbers represent which points should be connected by lines, therefor I can not replace NaN with zeros because it will interpret it as Point with ID 0. Is there any way I can replace this NaNs with something which paraview reads as blanks? Thank you! ___ Powered by www.kitware.com<http://www.kitware.com> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] NaN values
Hi Mathieu, I am using a vtk poly data file, which when I load in paraview, it gives me error (paraview just stops working). I was thinking it is because of my NaN values. From: Mathieu Westphal Sent: November 13, 2017 2:53:19 PM To: Doina Gumeniuc (224252 MAHS) Cc: paraview@paraview.org Subject: Re: [Paraview] NaN values Hi ParaView understand NaN correctly as blanks. If you are reading a .csv file, the correct string that is interpreted as NaN is "nan" without the quotes. Best, Mathieu Westphal On Mon, Nov 13, 2017 at 2:48 PM, Doina Gumeniuc (224252 MAHS) <224...@via.dk<mailto:224...@via.dk>> wrote: Hi all, I have a file with NaN values in almost every column and row. The integer numbers represent which points should be connected by lines, therefor I can not replace NaN with zeros because it will interpret it as Point with ID 0. Is there any way I can replace this NaNs with something which paraview reads as blanks? Thank you! ___ Powered by www.kitware.com<http://www.kitware.com> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] NaN values
Hi all, I have a file with NaN values in almost every column and row. The integer numbers represent which points should be connected by lines, therefor I can not replace NaN with zeros because it will interpret it as Point with ID 0. Is there any way I can replace this NaNs with something which paraview reads as blanks? Thank you! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Tube around a center line
Hi all, I have got a tube with various diameters along its height. I have the coordinates of the points which form the center line and the scalar value of the diameters. IS there a way to generate the tube shape arounda centre line using diameter, in a vtk input file without having to show the point coordinates around the tube? Thank you! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Mode shapes
Hi dear users, My question would be about the best practice to animate mode shapes in paraview. I have an initial shape of points (x,y,z coordinates) subjected to different frequencies. There are 493 DoFs and 19 modes. What would be the best way to animate it in paraview and which input file should be used? Thank you! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Input files
Hi dear users, This might sound a bit stupid, but I am new in paraview and I have hard times understanding how this tool works: for instance, I do not understand how is paraview reading info such as radius in specific points, how can I generate surface and not just some floating points in space, how can I build based on cross sectional area and height. So far, the only info I could implement is x, y and z of points through csv file. Could anyone please support me with theoretical material and so on? Thank you! I would really appreciate an example of a 3D model file readable in paraview. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Connecting points
Hi dear users, I would really appreciate if you could guide me on how to connect points with beam elements, FEM style. Thank you! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview