Comments (6)
What is the purpose of doing this? Area is inherently a cell based quantity.
from pyvista.
It is used as part of the NVidia Modulus mesh graph net example focusing on aerodynamics:
Modulus - Ahmed Body Example
The areas are calculated following mesh loading:
Ahmed data loading and area calculation
and are used post-inference to determine drag forces/coefficients based on inferred pressure and shear stress data.
I found this when running my own models and the resulting forces were off by approximately the same factor that the area numbers were misaligned.
from pyvista.
A couple of points here, is it possible to use integrate_data
filter to integrate the point data you are interested in over the area? This would be the way I would do this.
If you must use point data with area converted to point data, you will have to account for the number of points in each cell and the area of each cell that is connected to each point. This is doable, but not trivial. You cannot simply do a sum
of the point data. This will give you the wrong answer as you obtained.
from pyvista.
Just to make sure I understand, you're suggesting:
- Load mesh, don't save point area
- Train and run inference
- Add inferred pressure and shear stress data to original mesh as point data (multiplied by normals as needed for force directionality)
- Run integrate_data on the mesh
- Use integrated values for pressure and shear stress for forces
If that's correct I can test it out later today on a dataset I'm running now
from pyvista.
Sounds better to me
from pyvista.
Went well for the smaller data set, so I ran a much larger one. Results are within 2% between OpenFOAM and NVidia Modulus... I need to test with a lot more models but for now I'm going to take this as a win.
Thanks for the suggestion!
from pyvista.
Related Issues (20)
- Fix failing doc image tests HOT 3
- Need to fix warning of `tests/core/test_dataset_filters.py` HOT 2
- Error loading mesh while using Pyvista with vtk-egl HOT 4
- Point labels do not show properly in interactive documentation. HOT 3
- Opaque regions in RGBA images render partially transparent no matter what HOT 13
- UnstructuredGrid.clean modifies cell faces in-place HOT 2
- Fix `ImageData` transformations
- Connectivity filter crashes kernel, works on computers with older package/ python versions HOT 7
- Merging UnstructuredGrid with lines into another UnstructuredGrid HOT 9
- Error while using Pyvista with vtk-osmesa HOT 6
- Text from `add_text()` is not rendered in docs interactive scenes HOT 3
- number_labels in add_ruler not working as expected; similar for show_bounds HOT 4
- subdivide_tetra() results in faulty/negative cell volumes
- Labeled volumes for MultiBlock with voxelize_volume and voxelize HOT 2
- Allow reshaping of plotter
- Return type hint in plotting/plotter.py HOT 1
- `sample` filter crashes python without scalar data HOT 1
- Window freeze with show(interactive_update=True)
- Inconsistent loading of theme depending how modules are imported
- Roadmap to `strict` typing with Mypy HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvista.