|
[Sponsors] |
March 30, 2017, 11:31 |
calculating inside a box
|
#1 |
New Member
Bryan
Join Date: Sep 2014
Posts: 3
Rep Power: 12 |
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! |
|
May 8, 2017, 14:54 |
|
#2 |
New Member
Bryan
Join Date: Sep 2014
Posts: 3
Rep Power: 12 |
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! |
|
May 10, 2017, 07:46 |
|
#3 |
New Member
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9 |
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 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 |
|
|
|
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 |