Coder Social home page Coder Social logo

Comments (4)

fverdugo avatar fverdugo commented on June 12, 2024
  • Think about more general monomial generation for high order FEM

This work needs to be done in the other repo TensorPolynomialBases.jl. I can do this. For scalar-valued polynomials it is quite clear what anisotropic order is. But for vector, and tensor valued ones? What do we need, 1. or 2. ?

  1. Different order in each direction, but idem for all components. E.g., in 2D, $u_1(x_1,x_2)$ and $u_2(x_1,x_2)$ have the same order in each direction.

  2. A more general case, where the order in each direction also depends on the component. E.g., in 2D, $u_1(x_1,x_2)$ and $u_2(x_1,x_2)$ can have different orders in each direction.

Implementing 1. is straight forward. Implementing 2. requires some more work but can also be done.

from gridap.jl.

santiagobadia avatar santiagobadia commented on June 12, 2024

The funcionality 2 is needed to implement Nedelec or RT elements. E.g., Qk,k+1xQk+1,k. It can only be used for n-cubes. For Tets even more complicated, check Olm's article.

from gridap.jl.

fverdugo avatar fverdugo commented on June 12, 2024

For n-cubes, I can implement the monomials needed for Nedelec or RT for arbitrary dimensions.

However, for n-simplices, do we want to implement the general formula in Olm's paper? or we need to implement only the formula for 2D and the formula for 3D?

from gridap.jl.

fverdugo avatar fverdugo commented on June 12, 2024

For n-cubes, I can implement the monomials needed for Nedelec or RT for arbitrary dimensions.

Done!

@santiagobadia I have implemented the monomial basis needed for Nedelec for n-cubes for arbitrary dims. It can be build with the constructor GradMonomialBasis (I have called like this since it corresponds to the gradient of the monomials of an isotropic Q-space, but we can find another name...)

using Gridap
p = Point{2,Int}[(2,3),(5,7)]
T = VectorValue{2,Float64}
b = GradMonomialBasis(T,3) # Q_{2,3} \times Q_{3,2}
evaluate(b,p)
evaluate((b),p)

You will need to instantiate your environment

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.