Coder Social home page Coder Social logo

Polytope for wedge about gridap.jl HOT 4 CLOSED

gridap avatar gridap commented on June 1, 2024
Polytope for wedge

from gridap.jl.

Comments (4)

fverdugo avatar fverdugo commented on June 1, 2024

Perhaps this is not very important right now, but it seems that Polytope is not giving the right information on nfaces for wedges.

wedge = Polytope(2,2,1)
@show wedge.nf_nfs
# wedge.nf_nfs = Array{Int64,1}[[1], [2], [3], [4], [5], [6], [1, 4, 7], [2, 5, 8], [3, 6, 9], [1, 2, 10], [2, 4, 11], [1, 3, 12], [2, 3, 13], [3, 4, 14], [3, 5, 15], [1, 2, 4, 5, 7, 8, 10, 11, 16], [1, 3, 4, 6, 7, 9, 12, 14, 17], [2, 3, 5, 6, 8, 9, 13, 15, 18], [1, 2, 3, 10, 12, 13, 19], [2, 3, 4, 11, 13, 14, 20], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]]

I would say that info about nface number 11 is wrong. Is this a bug or I am missing something @santiagobadia ?

It can also be clearly seen by writing the wedge into vtu:

writevtk(wedge,"wedge")

wedge_1

For quads, tris, hexs, tets, and pyramids works OK. E.g. for pyramids:

pyramid = Polytope(1,1,2)
writevtk(pyramid,"pyramid")

pyramid_1

from gridap.jl.

santiagobadia avatar santiagobadia commented on June 1, 2024

I will take a look at this.

from gridap.jl.

santiagobadia avatar santiagobadia commented on June 1, 2024

Fixed
prism

pyramid

hex

tet

from gridap.jl.

fverdugo avatar fverdugo commented on June 1, 2024

Perfect! Nice pictures! 😎

Closing issue

from gridap.jl.

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.