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.

P1ISOP2-P1

More
2 years 10 months ago - 2 years 10 months ago #3840 by uzerbinati
Replied by uzerbinati on topic P1ISOP2-P1
Works like a charm !
Thank you very much,
Last edit: 2 years 10 months ago by uzerbinati.
More
2 years 9 months ago #3841 by uzerbinati
Replied by uzerbinati on topic P1ISOP2-P1
Dear Christopher,
I'm working on the C++ side, and I was wondering is there a way to get the coordinates of the vertex of the element inside the function CalcShape and CalcDShape.
Kind regards,
Umberto
More
2 years 9 months ago #3843 by joachim
Replied by joachim on topic P1ISOP2-P1
Hi Umberto,

if you have a MappedIntegrationPoint, you can get the ElementTransformation from it, and from the ElementTransformation you can get the Mesh and the ElementId.

A short example is attached.

It uses the brand-new feature of including C++ code in Python scripts.

Joachim
More
2 years 9 months ago #3844 by joachim
Replied by joachim on topic P1ISOP2-P1
Hi Umberto,

we can now do it by refining the mesh, and keeping the pressure in the range of the prolongation operator.

I added the method to the Stokes-tutorial, available in the latest nightly docu:

docu.ngsolve.org/nightly/i-tutorials/uni....html#(P1-iso-P2)-P1

Joachim
More
2 years 9 months ago - 2 years 9 months ago #3845 by uzerbinati
Replied by uzerbinati on topic P1ISOP2-P1
Dear Joachim,

thank you very much for the example on the prolongation operator and for the example on the class MappedIntegrationPoint !!

Kind regards,
Umberto
Last edit: 2 years 9 months ago by uzerbinati.
More
2 years 9 months ago #3866 by uzerbinati
Replied by uzerbinati on topic P1ISOP2-P1
Dear Joachim,
is there a way to implement the prolongation operator also for the custom elements that I've implemented using mylittlengsolve ?
Kind regards,
Umberto
Time to create page: 0.182 seconds