Re: [Paraview] Using Probe Filter To Get The Average Value Around A Point

2018-02-05 Thread Moreland, Kenneth
Jeremias,

When you set a radius and number of points in the probe filter, then the filter 
will randomly sample the volume within the defined sphere the number of times 
requested. The resulting values are the field values at those randomly sampled 
locations.

An easy way to get an average of your samples is to run the result of the probe 
filter through the descriptive statistics filter. Look at the "Statistical 
Model" table and it will report the mean value for each field. (Note that if 
you are using ParaView 5.4 there is a bug, #17627, that shows the Statistical 
Model table wrong by default. You have to also change the Composite Data Set 
Index parameter in the Display part of the properties panel to select only the 
Derived Statistics block.)

A couple of caveats to this approach. First, because the sampling is random, 
don't expect the exact same answer every time you run it. Second, if one of the 
samples happens to lie outside of the mesh, that sample will be filled with 0's 
for all fields. That will throw off the average value.

That said, another approach you might want to take is to first filter the data 
in a way that blurs out the noise first. One way you can do that is to run the 
Point Volume Interpolator filter. Change the Kernel to something like Gaussian 
(the default Voronoi filter will not do the averaging that you want). Set the 
radius appropriately. You can then probe the resulting data set with a single 
value (radius 0) and immediate see the "averaged" result.

-Ken


On 2/5/18, 5:27 PM, "ParaView on behalf of Jeremias Gonzalez" 
 wrote:

Hi, I'm trying to find a way to get the average value around a point in 
a mesh that I know to be noisy due to its coarseness. Currently, I am 
unable to understand determine the exact nature of the radius and number 
of point parameters from the documentation ( 

https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.ProbeLocation.html
 
), but I am guessing from some third party posts that the radius enables 
one to find a point nearby to a desired point in a given region, and the 
number of points expands the amount captured. The problem I have past 
that, if those are correct understandings, is what to do with the probe 
once I have it. Looking at the resulting spreadsheet from using the 
probe location with a given radius and number of points each labelled 
from 0 to 99, for example, it seems that I may have to use another loop, 
after I introduce and use the probe, with code like

my_running_total=0

for y in range(0, 99):
my_running_total += 
mycalcprobepoint.GetPointData(y).GetArray('Result').GetValue(0)

my_running_total /= 100

that will take that batch of points collected by the probe and average 
all the values I want. Is this the correct interpretation, and a valid 
way to carry out this objective?
___
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://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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


[Paraview] Using Probe Filter To Get The Average Value Around A Point

2018-02-05 Thread Jeremias Gonzalez
Hi, I'm trying to find a way to get the average value around a point in 
a mesh that I know to be noisy due to its coarseness. Currently, I am 
unable to understand determine the exact nature of the radius and number 
of point parameters from the documentation ( 
https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.ProbeLocation.html 
), but I am guessing from some third party posts that the radius enables 
one to find a point nearby to a desired point in a given region, and the 
number of points expands the amount captured. The problem I have past 
that, if those are correct understandings, is what to do with the probe 
once I have it. Looking at the resulting spreadsheet from using the 
probe location with a given radius and number of points each labelled 
from 0 to 99, for example, it seems that I may have to use another loop, 
after I introduce and use the probe, with code like


my_running_total=0

for y in range(0, 99):
	my_running_total += 
mycalcprobepoint.GetPointData(y).GetArray('Result').GetValue(0)


my_running_total /= 100

that will take that batch of points collected by the probe and average 
all the values I want. Is this the correct interpretation, and a valid 
way to carry out this objective?

___
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://paraview.org/mailman/listinfo/paraview


[Paraview] Pasting multiple .csv inputs together

2018-02-05 Thread David Ortley
All,

Say I have a .csv file containing x, y and z output from a simulation, and
a second .csv file with the same number of rows that contains just a single
column containing something such as pressure.

Is there a Paraview equivalent of the unix 'paste' command that will do a
column bind?

Some way to turn something that might look like:

geom.csv:
x,y,z
-1,-1,0
0,0,1.2
...

press.csv:
pres
1.23
3.45
...

into:
x,y,z,pres
-1,-1,0,1.23
0,0,1.2,3.45
...


Or some way to amend a set of points from TableToPoints with a loaded
.csv?  Obviously the assumption is that the information in the additional
file is in the same order as the loaded geometry.

-David Ortley
___
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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] FEM solver interfaced with Paraview

2018-02-05 Thread Cory Quammen
[snip]

> Some of the following questions have probably ever been asked, but:
>
> What is the best format to create a result file readable by Paraview,
> especially for huge file? after some readings, VTK XML format seems to be
> the most interesting (parallelization capabilities) compared to the legacy
> VTK one, am I right or do ou have any other suggestion?

You are right, the VTK XML file formats are quite capable; I would
avoid the legacy formats.

> I’m still trying to figure out if xdmf and/or hdf5 format are relevant, and
> if they are relevant for my application: any feedback on it?
>
Personally, having worked with writing to both types of data sets, I
would choose VTK XML over XDMF.
>
> The workflow I’m imaginating sounds like:
>
>
> Intermediate calculations
> ^
> |
>
> Raw data (ascii file) from my solver --> intermediate file in xdmf or hdf5
> format --> Paraview input file (depending on the reader)

If you choose to ultimately write out to VTK XML files, I would skip
the intermediate file writing step.

HTH,
Cory

>
> Any feedback, advice and suggestion will be highly appreciated
>
> (I’m quite new with Paraview)
>
>
> Regards
>
>
> Paul
>
>
> ___
> 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://paraview.org/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] FEM solver interfaced with Paraview

2018-02-05 Thread Fabian Wein

 of the following questions have probably ever been asked, but:


 1. What is the best format to create a result file readable by Paraview, 
especially for huge file? after some readings, VTK XML format seems to be the 
most interesting (parallelization capabilities) compared to the legacy VTK one, 
am I right or do ou have any other suggestion?
 2. I’m still trying to figure out if xdmf and/or hdf5 format are relevant, and 
if they are relevant for my application: any feedback on it?

The workflow I’m imaginating sounds like:

    
  Intermediate calculations

Raw data (ascii file) from my solver --> intermediate file in xdmf or hdf5 format 
--> Paraview input file (depending on the reader)


To my understanding there is no xdmf OR hdf5: 
http://xdmf.org/index.php/Main_Page

We also have an own FEM Code. We export directly hdf5 files (w/o xdmf) which we 
read with an own paraview reader plugin.

Now we would probably try xdmf and see if we can circumvent having an own 
reader plugin.

hdf5 has libs for all languages (C/C++, Python, Matlab) and e.g. the handling 
in Python is quite convenient. Almost a one-liner.

The hdf5 C/C++ lib for writing the data is not the best software I know but it 
is ok.

I would not export to ascii first but directly use the hdf5 libs.

Fabian
___
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://paraview.org/mailman/listinfo/paraview


[Paraview] FEM solver interfaced with Paraview

2018-02-05 Thread paul . carrico
Dear all, 

A while ago, I've initiated an internal project to export results from
my Finite Element solver (mechanical and thermal FEA's) and to visualize
it into Paraview
(https://www.paraview.org/pipermail/paraview/2017-November/041481.html);
but I was quite overloaded and this topic has been postponed. 

Currently the format of my the solver is not a part of the list
(https://www.paraview.org/Wiki/ParaView/Users_Guide/List_of_readers),
and I'm thinking about the strategy to get the results, to perform
additional calculations, and finally to post-process it  into Paraview. 

_Nota_: I'm using 2D and 3D meshes, structures and unstructured ones,
with different element orders, and different type of results (nodal
values and/or cell ones). 

Some of the following questions have probably ever been asked, but: 

* What is the best format to create a result file readable by
Paraview, especially for huge file? after some readings, VTK XML format
seems to be the most interesting (parallelization capabilities) compared
to the legacy VTK one, am I right or do ou have any other suggestion?
* I'm still trying to figure out if xdmf and/or hdf5 format are
relevant, and if they are relevant for my application: any feedback on
it?

The workflow I'm imaginating sounds like: 


Intermediate calculations 


 ^ 


  | 

Raw data (ascii file) from my solver --> intermediate file in xdmf or
hdf5 format --> Paraview input file (depending on the reader) 

Any feedback, advice and suggestion will be highly appreciated 

(I'm quite new with Paraview) 

Regards 

Paul___
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://paraview.org/mailman/listinfo/paraview