P1ISOP2-P1

More
1 year 1 month ago - 1 year 1 month ago #3840 by uzerbinati
Replied by uzerbinati on topic P1ISOP2-P1
Works like a charm !
Thank you very much,
Last edit: 1 year 1 month ago by uzerbinati.

Please Log in or Create an account to join the conversation.

More
1 year 1 month 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

Please Log in or Create an account to join the conversation.

More
1 year 1 month 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

Please Log in or Create an account to join the conversation.

More
1 year 1 month 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

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago - 1 year 1 month 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: 1 year 1 month ago by uzerbinati.

Please Log in or Create an account to join the conversation.

More
1 year 1 month 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

Please Log in or Create an account to join the conversation.

Time to create page: 0.142 seconds