Re: [Paraview] Connecting points
Hi, Please keep the discussions on the mailing list so that everyone that wants to see what was discussed can. https://www.paraview.org/Wiki/ParaView/Data_formats#CSV_.28Comma_Separated_Variable.29_files has information on reading in a csv file into ParaView. From this though you will still need to convert this information into points and then add cells as needed. The ParaView User's Guide is available at https://www.paraview.org/paraview-guide/ and should be able to give you more guidance on what you want to do. Cheers, Andy On Mon, Sep 18, 2017 at 6:53 AM, Doina Gumeniuc (224252 MAHS) <224...@via.dk > wrote: > Hi Andy, > > I am very new with paraview and it is confusing. I have a csv file where I > show x,y and z of the points. Now, between those points, in real life, I > have timoshenko beams. How can I arrange this info (length, siftness, cross > sectional area, etc) in csv so paraview can read it? I would really > appreciate some directions. Thank you! > -- > *From:* Andy Bauer > *Sent:* September 14, 2017 4:13:02 PM > *To:* Doina Gumeniuc (224252 MAHS) > *Cc:* paraview@paraview.org > *Subject:* Re: [Paraview] Connecting points > > Hi, > > ParaView has line cells which is what you probably want to use. The line > cells themselves have no concept of cross section but you can add that as > field data. > > Beyond this, how are you getting your points into ParaView? Wherever that > is being done you'll probably want to add in the line cells at that point > in your workflow. Another option is using the Python Programmable Filter to > make those cells -- see https://www.paraview.org/Wiki/Python_Programmable_ > Filter. > > Cheers, > Andy > > On Thu, Sep 14, 2017 at 6:02 AM, Doina Gumeniuc (224252 MAHS) < > 224...@via.dk> wrote: > >> 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 >> >> > ___ 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] Connecting points
Hi, ParaView has line cells which is what you probably want to use. The line cells themselves have no concept of cross section but you can add that as field data. Beyond this, how are you getting your points into ParaView? Wherever that is being done you'll probably want to add in the line cells at that point in your workflow. Another option is using the Python Programmable Filter to make those cells -- see https://www.paraview.org/Wiki/Python_Programmable_Filter. Cheers, Andy On Thu, Sep 14, 2017 at 6:02 AM, Doina Gumeniuc (224252 MAHS) <224...@via.dk > wrote: > 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 > > ___ 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
Re: [Paraview] Connecting points with line
Hi Patrik, You need to specify what columns in your table from your csv file correspond to the point coordinates for your points. If you look at the information tab you should be able to see how many points have been created by the Table to Points filter. Regards, Andy On Tue, Mar 18, 2014 at 3:01 PM, Patrik Blahuta wrote: > After I put this text into script I ll get: > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\General\vtkTableToPolyData.cxx, > line 111 > > vtkTableToPolyData (0A9D63B0): Failed to locate the columns to use > for the point coordinates > > > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, > line 754 > > vtkPVCompositeDataPipeline (0AA22D50): Algorithm > vtkTableToPolyData(0A9D63B0) returned failure for request: > vtkInformation (09DE4EC0) > > Debug: Off > > Modified Time: 132193 > > Reference Count: 1 > > Registered Events: (none) > > Request: REQUEST_DATA > > FORWARD_DIRECTION: 0 > > FROM_OUTPUT_PORT: 0 > > ALGORITHM_AFTER_FORWARD: 1 > > > > > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\General\vtkTableToPolyData.cxx, > line 111 > > vtkTableToPolyData (0A9D79B0): Failed to locate the columns to use > for the point coordinates > > > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, > line 754 > > vtkPVCompositeDataPipeline (0AA21850): Algorithm > vtkTableToPolyData(0A9D79B0) returned failure for request: > vtkInformation (0A181420) > > Debug: Off > > Modified Time: 137691 > > Reference Count: 1 > > Registered Events: (none) > > Request: REQUEST_DATA > > FORWARD_DIRECTION: 0 > > FROM_OUTPUT_PORT: 0 > > ALGORITHM_AFTER_FORWARD: 1 > > > > > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\Core\vtkDelaunay2D.cxx, > line 816 > > vtkDelaunay2D (09D3A940): ERROR: Edge [239 5] is non-manifold!!! > > > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, > line 754 > > vtkPVCompositeDataPipeline (0AA246B0): Algorithm > vtkDelaunay2D(09D3A940) returned failure for request: > vtkInformation (0AB1CC20) > > Debug: Off > > Modified Time: 163117 > > Reference Count: 1 > > Registered Events: (none) > > Request: REQUEST_DATA > > FORWARD_DIRECTION: 0 > > FROM_OUTPUT_PORT: 0 > > ALGORITHM_AFTER_FORWARD: 1 > > > > > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\Core\vtkDelaunay2D.cxx, > line 816 > > vtkDelaunay2D (103D21F0): ERROR: Edge [239 5] is non-manifold!!! > > > > ERROR: In > C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, > line 754 > > vtkPVCompositeDataPipeline (11DD1500): Algorithm > vtkDelaunay2D(103D21F0) returned failure for request: > vtkInformation (11F7EDC0) > > Debug: Off > > Modified Time: 697676 > > Reference Count: 1 > > Registered Events: (none) > > Request: REQUEST_DATA > > FORWARD_DIRECTION: 0 > > FROM_OUTPUT_PORT: 0 > > ALGORITHM_AFTER_FORWARD: 1 > > > > > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > Traceback (most recent call last): > > File "", line 21, in > > File "", line 9, in RequestData > > TypeError: InsertNextCell() takes exactly 2 arguments (3 given) > > *S pozdravom / Kind regards,* > > > > *Patrik Blahuta* > > > 2014-03-18 19:21 GMT+01:00 Andy Bauer : > >> If you use the Programmable Filter you can connect the points with the >> following script: >> pdi = self
Re: [Paraview] Connecting points with line
After I put this text into script I ll get: ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\General\vtkTableToPolyData.cxx, line 111 vtkTableToPolyData (0A9D63B0): Failed to locate the columns to use for the point coordinates ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 754 vtkPVCompositeDataPipeline (0AA22D50): Algorithm vtkTableToPolyData(0A9D63B0) returned failure for request: vtkInformation (09DE4EC0) Debug: Off Modified Time: 132193 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FORWARD_DIRECTION: 0 FROM_OUTPUT_PORT: 0 ALGORITHM_AFTER_FORWARD: 1 ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\General\vtkTableToPolyData.cxx, line 111 vtkTableToPolyData (0A9D79B0): Failed to locate the columns to use for the point coordinates ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 754 vtkPVCompositeDataPipeline (0AA21850): Algorithm vtkTableToPolyData(0A9D79B0) returned failure for request: vtkInformation (0A181420) Debug: Off Modified Time: 137691 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FORWARD_DIRECTION: 0 FROM_OUTPUT_PORT: 0 ALGORITHM_AFTER_FORWARD: 1 ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\Core\vtkDelaunay2D.cxx, line 816 vtkDelaunay2D (09D3A940): ERROR: Edge [239 5] is non-manifold!!! ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 754 vtkPVCompositeDataPipeline (0AA246B0): Algorithm vtkDelaunay2D(09D3A940) returned failure for request: vtkInformation (0AB1CC20) Debug: Off Modified Time: 163117 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FORWARD_DIRECTION: 0 FROM_OUTPUT_PORT: 0 ALGORITHM_AFTER_FORWARD: 1 Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Filters\Core\vtkDelaunay2D.cxx, line 816 vtkDelaunay2D (103D21F0): ERROR: Edge [239 5] is non-manifold!!! ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 754 vtkPVCompositeDataPipeline (11DD1500): Algorithm vtkDelaunay2D(103D21F0) returned failure for request: vtkInformation (11F7EDC0) Debug: Off Modified Time: 697676 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FORWARD_DIRECTION: 0 FROM_OUTPUT_PORT: 0 ALGORITHM_AFTER_FORWARD: 1 Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) Traceback (most recent call last): File "", line 21, in File "", line 9, in RequestData TypeError: InsertNextCell() takes exactly 2 arguments (3 given) *S pozdravom / Kind regards,* *Patrik Blahuta* 2014-03-18 19:21 GMT+01:00 Andy Bauer : > If you use the Programmable Filter you can connect the points with the > following script: > pdi = self.GetPolyDataInput() > pdo = self.GetPolyDataOutput() > numPoints = pdi.GetNumberOfPoints() > pdo.Allocate() > for i in range(0, numPoints-1): > points = [i, i+1] > # VTK_LINE is 3 > pdo.InsertNextCell(3, 2, points) > > > > On Tue, Mar 18, 2014 at 2:10 PM, Patrik Blahuta > wrote: > >> Hello, >> >> I am new using the paraview software. I would like to ask if you can help me >> with connecting points with line. I opened my .csv file and made table to >> points. That just shown me points in 3D view. Can you give me please tutor >> how to connect them? >> >> >> Thanks >> >> >> *Kind regards,* >> >> >> >> *Patrik* >> >> ___ >
Re: [Paraview] Connecting points with line
Hi Patrik, Please keep the discussion on the mailing list so that everyone can participate. As for connecting points via a line cell, I don't think there's any filter to do that since it would have to make an assumption about which points should be connected by a line cell. To use my recommendation, after the Table To Points filter, select the Programmable Filter, enter that text into the Script entry widget and hit apply. What it does is connect the first point to the second point, the second point to the third point, ..., and finally the second to last point to the last point. If you have some different way you want to connect the points you can change the script yourself. Note though that this filter may not work as desired in parallel. Andy On Tue, Mar 18, 2014 at 2:22 PM, Patrik Blahuta wrote: > Is there any posibility to do it through filters because im little noob in > this program :( > > > *S pozdravom / Kind regards,* > > > > *Patrik Blahuta* > > > 2014-03-18 19:21 GMT+01:00 Andy Bauer : > > If you use the Programmable Filter you can connect the points with the >> following script: >> pdi = self.GetPolyDataInput() >> pdo = self.GetPolyDataOutput() >> numPoints = pdi.GetNumberOfPoints() >> pdo.Allocate() >> for i in range(0, numPoints-1): >> points = [i, i+1] >> # VTK_LINE is 3 >> pdo.InsertNextCell(3, 2, points) >> >> >> >> On Tue, Mar 18, 2014 at 2:10 PM, Patrik Blahuta > > wrote: >> >>> Hello, >>> >>> I am new using the paraview software. I would like to ask if you can help >>> me with connecting points with line. I opened my .csv file and made table >>> to points. That just shown me points in 3D view. Can you give me please >>> tutor how to connect them? >>> >>> >>> Thanks >>> >>> >>> *Kind regards,* >>> >>> >>> >>> *Patrik* >>> >>> ___ >>> 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 >>> >>> Follow this link to subscribe/unsubscribe: >>> http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Connecting points with line
If you use the Programmable Filter you can connect the points with the following script: pdi = self.GetPolyDataInput() pdo = self.GetPolyDataOutput() numPoints = pdi.GetNumberOfPoints() pdo.Allocate() for i in range(0, numPoints-1): points = [i, i+1] # VTK_LINE is 3 pdo.InsertNextCell(3, 2, points) On Tue, Mar 18, 2014 at 2:10 PM, Patrik Blahuta wrote: > Hello, > > I am new using the paraview software. I would like to ask if you can help me > with connecting points with line. I opened my .csv file and made table to > points. That just shown me points in 3D view. Can you give me please tutor > how to connect them? > > > Thanks > > > *Kind regards,* > > > > *Patrik* > > ___ > 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 > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Connecting points with line
Hello, I am new using the paraview software. I would like to ask if you can help me with connecting points with line. I opened my .csv file and made table to points. That just shown me points in 3D view. Can you give me please tutor how to connect them? Thanks *Kind regards,* *Patrik* ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview