Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

L2 higher order basis

More
4 years 10 months ago #1644 by alex_sch
I would like to extract coefficients of monomials in higher order basis.

The syntax that I am using to generate higher basis is as follows:

Flags hflags;
hflags.SetFlag ("dim", 1);
hflags.SetFlag ("order", max_order); // max order is highest degree of basis.
fspace.fes_w = make_shared<L2HighOrderFESpace> (ma, hflags);
const ScalarFiniteElement<D> & fel_w = dynamic_cast<const ScalarFiniteElement<D>&> (space.fes_w->GetFE(i, lh));

Currently I have the value of basis functions at the quadrature points. But I wanted to express my basis functions in terms of monomials (x^my^n) . Generally most of the basis functions are obtained though some transformation on tensor product of legendre polynomials or Jacobi polynomials.

Is it possible to extract this information directly from netgen rather than projecting it on monomial basis and then using the coefficients.

Regards
Time to create page: 0.110 seconds