![]() Hence, when you add an array to it, you are in fact changing the copy and not the original data. Note, however, that Fetch is making a copy of the data. the grid resolution a couple of times over and get data over a good range of. ![]() If I have to keep calculating v0 by hand, no big deal, but it would sure be a handy feature to have. The servermanager.Fetch function brings the VTK data hidden below the ParaView layer out to where you can read it and manipulate it with paraview.vtk. In the information tab for a clip filter, the box bounds (and thus, the volume) are listed, but not in the data arrays section - they are in a separate section below that. Processing data entails transforming input data by applying defined operations to generate a new output. Sources > Sphere or read a file from disk. To generate data, the module may use a mathematical model e.g. However, I am wondering if I can somehow get the volume of my clip filter into my script. A pipeline module in ParaView does one of two things: it either generates data or processes input data. I can sort of see where the script gets the variable info about the particles (count and pd). filter/fieldconversion/CellAverage.h /clang64/include/paraview/vtkvtkm/vtk-m. As you can see, to calculate the volume fraction, I sum the volume of the particles themselves (ignoring particle overlap, but that difference should be trivial), and then divide by v0, which is the volume of my clip filter. Parallel Data Analysis and Visualization Application based on VTK. Now, being the amateur code writer that I am, I was wondering if I could automate one important step of the process. V0=5.78e-6 #change to volume of your measuremt region ![]() A while back, Christian (user richti83) provided me with a neat little script to put in a python programmable filter so that I can calculate the volume fraction of particles inside a box-shaped clip filter (slightly edited for my personal use):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |