GithubHelp home page GithubHelp logo

Comments (7)

pswpswpsw avatar pswpswpsw commented on June 19, 2024 1

@pswpswpsw, could we add your blog post to the Long Examples section of the website?

Also, is there a status on the proposed feature requests? Should we outline some features that should/could be added to vtki?

No problem! Indeed, I will have some more fancy figures later within 2 months on that post! I will keep you updated!

from pyvista-support.

akaszynski avatar akaszynski commented on June 19, 2024

I’m not familiar with what a large stencil is, but I’d probably go with using a kdtree as you’ll be able to quickly query the tree once you’ve set it up. pykdtree is one of the best out there, and it carries no dependancies.

If you do need me to setup an adjency function, please comment with your intended pseudo-code.

from pyvista-support.

akaszynski avatar akaszynski commented on June 19, 2024

Still need help on this?

from pyvista-support.

supersubscript avatar supersubscript commented on June 19, 2024

I agree that it would be nice to have a few different adjacency/neighbourhood functions. These examples come to mind for neighbouring elements on a mesh:

And then this for a point cloud:

Would certainly be features that'd be useful to have.

from pyvista-support.

pswpswpsw avatar pswpswpsw commented on June 19, 2024

Still need help on this?

it is not urgent for me but I think other people might be interested.
Btw I wrote a blog on postprocessing OpenFOAM data using VTK and then use your package for various purpose in Python:

So the pseudo-code I have in my mind would be


let's say we tried to find 2-level of Neighour for each cell

  • for loop over all the cells, say i-th cell for instance:

    • find the neighbour of i-th cell (I think VTK itself might have already done it for you), denote as set J_i

      • for loop over each cell in set J_i, for each cell, find the neighour of that cell, denote as J_{J_i}.
    • for each cell Let's do a union operation of all the set J_{J_i}.

Then This union set for i-cell is the 2-level neighour set. Note that we know all of the spatial information so we can do really fancy things like computing any partial derivatives on any directions, so getting curvature is trivially easy.

from pyvista-support.

akaszynski avatar akaszynski commented on June 19, 2024

This is different than a meshless kdtree as it requires knowledge of the mesh connectivity. I’d be happy to add in cell based neighbor querying.

BTW, I liked the blog. If you wish, you can also visualize within python without heading over to paraview with:

grid.Plot(scalars=p2_cell)

See help(grid.Plot) for more details on how you can change the color map and other plotting variables.

from pyvista-support.

banesullivan avatar banesullivan commented on June 19, 2024

@pswpswpsw, could we add your blog post to the Long Examples section of the website?

Also, is there a status on the proposed feature requests? Should we outline some features that should/could be added to vtki?

from pyvista-support.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.