Re: [Paraview] point to surface

2018-09-25 Thread Moreland, Kenneth via ParaView
Hadrien,

I’m not sure what you mean by the “area” of points. As I’m sure you know, 
particles are 0D elements and themselves have no area to speak of. As you said, 
you can use the glyph operation to create a surface around each point, but the 
surface area in that case is simply the surface area of the sphere size you 
chose times the number of points.

You’ve asked if you can project the points onto an existing mesh surface. I 
don’t know of an easy way to do that, but let’s put that problem aside for a 
moment. Assuming you could, what good would that do? Points on a surface are 
still just points. The surface area of your mesh (nasal cavity) will be the 
same surface area regardless of how many points are in it and where they are.

Can you more precisely describe what it is you are trying to measure?

-Ken

(By the way, the ParaView team has been transitioning from using this mailing 
list to using a tool called discourse to ask questions and archive results. In 
the future, I suggest posting questions to https://discourse.paraview.org/ 
rather on this list.)

From: ParaView [mailto:paraview-boun...@public.kitware.com] On Behalf Of 
hadrien calmet
Sent: Tuesday, September 25, 2018 8:04 AM
To: paraview@public.kitware.com
Subject: [EXTERNAL] [Paraview] point to surface


Hi every one
I have a list of point (coordinate x,y,z), using table to point I can visualize 
it on PV.
But I would like to know the total area of those points.
So I tried glyph (sphere, all the points) than integrate variable and I 
obtained the area.
But the area is depending of the radius that I put on glyph parameter.

those points are the deposition of particles in a complex geometry(human nasal 
cavity)
They are calculated when they intersect the surface mesh of the nasal cavity.

my question:
There is a way to "project" those points on the mesh surface (then filtering 
and integrate variable to calculate the total area) ?

thank you





Hadrien Calmet

Dpt. Computer Applications in Science and Engineering

Barcelona Supercomputing Center (BSC-CNS)

Edificio Nexus II - Planta 3

C/ JORDI GIRONA, 29

08034 Barcelona, Spain

Tel: +34 93 413 79 40

Fax: +34 93 413 7721

www: www.bsc.es


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [Paraview-developers] time to kill the mailing lists?

2018-09-06 Thread Moreland, Kenneth via ParaView
When you close the mailing lists, would it be possible to set it up so that 
anyone who attempts to email to those addresses gets an email back with a clear 
message about the mailing lists being closed down and instructions on posting 
to discourse?

-Ken

-Original Message-
From: Paraview-developers 
[mailto:paraview-developers-boun...@public.kitware.com] On Behalf Of Utkarsh 
Ayachit
Sent: Wednesday, September 5, 2018 10:55 AM
To: benson.mu...@ut.ee
Cc: ParaView Developers ; ParaView 

Subject: [EXTERNAL] Re: [Paraview-developers] [Paraview] time to kill the 
mailing lists?

Thanks, Benson. I've cleaned up the webpage. Let me know if that's still 
confusing: https://www.paraview.org/community-support/
On Wed, Sep 5, 2018 at 12:14 PM Benson Muite  wrote:
>
> The current paraview website has a link to mailing lists:
>
> https://www.paraview.org/
>
> buried within that is a message that the lists have been deprecated 
> and a link to the discourse forum:
>
> https://discourse.paraview.org/
>
> It may be helpful to make the forum a little more prominent on the 
> Paraview website
>
>
> On 09/05/2018 06:57 PM, Utkarsh Ayachit wrote:
> > Folks,
> >
> > We have moved to Discourse (quite successfully). Given the latest 
> > round of phishing emails, with spam email masquerading as being sent 
> > by legitimate users, may be it's time to close the paraview mailing 
> > list? I expect we can shut down the mailing list with a default 
> > reply message instructing any sender to use discourse.paraview.org instead.
> >
> > Thoughts? Objections?
> >
> > Utkarsh
> > ___
> > Powered by www.kitware.com
> >
> > ParaView discussion is moving! Please visit https://discourse.paraview.org/ 
> > for future posts.
> >
> > 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:
> > https://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

ParaView development discussion is moving! Please visit 
https://discourse.paraview.org/ for future posts.

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=Paraview-developers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview-developers
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] warp by vector field(displacement) with pressure field problem

2018-06-14 Thread Moreland, Kenneth via ParaView
Umit,

I took a look at your data, and the warp by vector filter is behaving exactly 
how I would expect.

The displacement field in your data is 0 everywhere except at the top edge. 
Thus, when you apply the warp the top edge will move and everything else will 
stay fixed where it is. In the middle of the top edge the warp vectors are 
pushing down into the rest of the mesh. This is causing some self-intersection 
with the mesh, which is why you are seeing the pressure profile sticking out 
the top.

You can use the Threshold filter to remove all cells that are not moving. 
However, that is only going to leave the top layer of cells, which I’m not sure 
what you want.

-Ken

From: ParaView [mailto:paraview-boun...@public.kitware.com] On Behalf Of Umut 
TABAK
Sent: Wednesday, June 13, 2018 11:38 PM
To: ParaView 
Subject: [EXTERNAL] [Paraview] warp by vector field(displacement) with pressure 
field problem

Dear all,

On a 2d model, I am trying to plot some mode shape for a coupled 
fluid-structure problem where a beam is coupled to a cavity domain. I have two 
variables for this problem: scalar pressure variable for the cavity and the 
displacement vectors for the beam at the top edges of the domain.

I am writing the attached vtk input file with my post processing codes.

And the result is somewhat as expected except that another pressure profile 
with an undeformed structural part is also visible with what I actually want to 
get. Please see the attached screenshot with the settings and visible fields.

Do I have a misunderstanding to accomplish this task. At the end, I would like 
to show the pressure profile which is a scalar field in the file along with the 
displacement field on the beam at the top edge.

I was thinking if there is deformed+undeformed visibility selection somehwere 
or not, maybe the issue is completely something else.

Any comments are appreciated.

BR,
Umut

P.S. For a decent view for the deformed vector field, you can set the scale 
factor of the warpbyvector field to 0.1 to 0.15

___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] x,y,z,time

2018-05-08 Thread Moreland, Kenneth via ParaView
A,

ParaView won’t recognize a column in a table as time. If you instead write out 
your data as a series of csv files, ParaView will treat each file as a time 
step and animate through them. So, if you re-write your data in multiple csv 
files, things get much easier in ParaView.

If you don’t want to re-write your data, I think you can still do what you want 
to do by using ParaView’s animation. The basic idea is to add a filter that 
pulls out the data for one time step, and then animate the parameter.

This will probably be clearer with an example. For this example, let’s assume 
your csv file has 20 time steps with time values 0, 1, 2,…, 19. The steps you 
could follow to animate time are as follows:


  1.  Load the csv file, convert them to table to points, and visualize them 
just as you are so far.
  2.  Add the threshold filter. Set the Minimum parameter to just under the 
first time value (say -0.5 in the example time steps I gave) and set the 
Maximum parameter to just over the first time value (say 0.5 in this example). 
This will extract the points of the first time step.
  3.  Open the Animation View (View -> Animation View).
  4.  Add a track for the Threshold filter for Threshold Range (0) (this 
corresponds to the Minimum value). Double click the track to open up the 
Animation Keyframes dialog. Set the first value to just under the first time 
value (-0.5 in this example), to just under the largest value (18.5 in this 
example).
  5.  Add a track for the Threshold filter for Threshold Range (1) (this 
corresponds to the Maximum value). Double click the track to open up the 
Animation Keyframes dialog. Set the first value to just under the first time 
value (0.5 in this example), to just under the largest value (19.5 in this 
example).
  6.  In the Animation View, set the number of frames (No. Frames) to the 
number of time steps in your data (20 in this example).
  7.  Hit play.

-Ken

From: ParaView  on behalf of A 

Date: Monday, May 7, 2018 at 8:40 PM
To: ParaView 
Subject: [EXTERNAL] [Paraview] x,y,z,time

This seems rudimentary, but I didnt find a relevant answer in my googles.

I csv file of x,y,z,time. I import them and then visualize them with 
tabletopoints. I just want to have an 3d scatter plot animation of them 
appearing.

how do I get paraview to recognize my "time" colunm as time in the table?

thanks!
a
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] generic NetCDFreader support for CellData

2018-05-02 Thread Moreland, Kenneth via ParaView
The NetCDF Generic/CF reader has an option named “Output Type” that you can use 
to force the output to a vtkImageData. Then Cory’s original programmable filter 
will work, and you won’t have to deal with the coordinates.

-Ken

From: ParaView  on behalf of Cory Quammen 

Date: Wednesday, May 2, 2018 at 11:19 AM
To: "j.vanengel...@uu.nl" 
Cc: "paraview@public.kitware.com" 
Subject: [EXTERNAL] Re: [Paraview] generic NetCDFreader support for CellData

On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) 
> wrote:
Thank you Cory,

I sense this solution might work. However, the type of my data is “Rectilinear 
Grid”, not sure if that increases the complexity (dx = 1000, dy = 1000, dz = 1).

Ah. From the documentation: "To define a 
vtkRectilinearGrid,
 you must specify the dimensions of the data and provide three arrays of values 
specifying the coordinates along the x-y-z axes". It should be a similar 
script, but you'd have to add an additional X, Y, and Z position at the end of 
those coordinate arrays. So your script would look more like:

dims = inputs[0].GetDimensions()

ext = inputs[0].GetExtent()

output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1)

output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1)

inputPd = inputs[0].GetPointData()

outputCd = output.GetCellData()

outputCd.SetScalars(inputPd.GetScalars())



# Set coordinates

xCoords = inputs[0].GetXCoordinates().NewInstance()

xCoords.DeepCopy(inputs[0].GetXCoordinates())

xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset 
larger than previous max x

output.SetXCoordinates(xCoords)



yCoords = inputs[0].GetYCoordinates().NewInstance()

yCoords.DeepCopy(inputs[0].GetYCoordinates())

yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate

output.SetYCoordinates(yCoords)



zCoords = inputs[0].GetZCoordinates().NewInstance()

zCoords.DeepCopy(inputs[0].GetZCoordinates())

zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate

output.SetZCoordinates(zCoords)


Some extent information also needs to be supplied, but I'm not entirely clear 
on how to do that correctly.


A better solution would be to add an option to the reader to take care of this 
for you if that is reasonable for your data.

Best,
Cory


Regardless, the script you provided does not give me output and it also does 
not throw an error, so I’m left a bit in the dark here.

From: Cory Quammen 
[mailto:cory.quam...@kitware.com]
Sent: Wednesday, May 02, 2018 5:01 PM
To: Engelen, J. van (Joeri)
Cc: paraview@public.kitware.com
Subject: Re: [Paraview] generic NetCDFreader support for CellData

Joeri,

You can try the "Point Data to Cell Data" filter, but that averages the point 
data and places the results in the cell data. You may wind up with some 
incorrect values using that approach.

Better would be to use a "Progammable Filter" to resize the cartesian grid read 
by the NetCDF reader and treat the point data as cell data. That is a bit 
involved, but not terrible. Set the Script to


dims = inputs[0].GetDimensions()

ext = inputs[0].GetExtent()

output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1)

output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1)

inputPd = inputs[0].GetPointData()

outputCd = output.GetCellData()

outputCd.SetScalars(inputPd.GetScalars())


This assumes that the NetCDF reader is producing a vtkImageData (you can check 
under the Information panel) which would report the Type: of the data set as 
"Image (Uniform Rectilinear Grid).

HTH,
Cory

On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) 
> wrote:
Hi,

I was wondering whether it is possible to read NetCDF files as CellData.

I have categorial data on Cartesian coordinates that I want to visualize. To be 
more specific, the data represents lithologies of the subsurface. So 1 = sand, 
3 = clay, 5 = rock.
The problem is that my file is automatically interpreted as PointData. To 
render this PointData, Paraview than consequently interpolates to achieve cell 
values.
With most variables that is not such a problem, but here it is. If I have sand 
(1) overlying rock (5), Paraview shows me clay (3).

Also, the information available to me was ambiguous,
-this source says it is probably not possible:
https://public.kitware.com/pipermail/paraview/2017-September/040984.html
-this states it is possible return Cell Data information:
https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html

I tried converting my data from NetCDF to a .vtr file in Python, but this 
resulted in more problems than solutions. (Just gave me very glitched