CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] calculating inside a box

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2017, 11:31
Default calculating inside a box
  #1
New Member
 
Bryan
Join Date: Sep 2014
Posts: 3
Rep Power: 12
nichbry3 is on a distinguished road
Hello, I'm fairly new to ParaView still but I have one problem I'd like help solving.

I have volcanic eruption data (simulated) with x, y, z points and a concentration of ash at each of those points, per time step. This is in 2- and 3-D

I want to calculate the sum of that concentration within a box both above and below the vent of the volcano. So two boxes.

I need help/instruction to create these 2 boxes and which filter to apply that would calculate the sum of the particles in each box. It's likely a simple solution, I just can't quite find what I need from the menu's.

Also, I'm decent with Python so if you think the solution can be completed using Python, let me know!
I also have the guide if you know of a page number that I should go to.

Thank you for any help!
nichbry3 is offline   Reply With Quote

Old   May 8, 2017, 14:54
Default
  #2
New Member
 
Bryan
Join Date: Sep 2014
Posts: 3
Rep Power: 12
nichbry3 is on a distinguished road
So does anyone have any idea about this? Even if it's simple, I'll take it! Maybe a tool or filter that can calculate/sum values within certain areas of a 3D grid?

Do you need more info to understand what I'm trying to get at?

Thanks!
nichbry3 is offline   Reply With Quote

Old   May 10, 2017, 07:46
Default
  #3
New Member
 
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9
beral is on a distinguished road
One option you could try is data selection: http://www.paraview.org/Wiki/Data_Selection

Another one is clipping. You want to have a box and the clipping filter allows to select a box. The python code to do it is:

Code:
clip1 = Clip(Input=your_data_in_pipeline)
clip1.ClipType = 'Box'
clip1.ClipType.Bounds = [xmin, xmax, ymin, ymax, zmin, zmax]
clip1.InsideOut = 1
InsideOut = 1 => the points in the box will be left and the points outside the box will be cut out.

Same procedure for the second box:
Code:
clip2 = Clip(Input=your_data_in_pipeline)
clip2.ClipType = 'Box'
clip2.ClipType.Bounds = [xmin, xmax, ymin, ymax, zmin, zmax]
clip2.InsideOut = 1
On the clips you can apply the Calculator to calculate the sum of the particles.
beral is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions on dynamicTopoFvMesh danvica OpenFOAM Running, Solving & CFD 80 April 16, 2019 17:58
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 06:25
[snappyHexMesh] snappyHexMesh will not delete bounding box AlexanderMath OpenFOAM Meshing & Mesh Conversion 2 November 8, 2016 03:11
[mesh manipulation] Refining mesh in a box inside a box sergimart7 OpenFOAM Meshing & Mesh Conversion 1 August 15, 2015 04:03
meshing F1 front wing Steve FLUENT 0 April 17, 2003 13:37


All times are GMT -4. The time now is 18:55.