- Thank you received: 0
P1ISOP2-P1
- uzerbinati
- Topic Author
- Offline
- New Member
Less
More
3 years 5 months ago - 3 years 5 months ago #3840
by uzerbinati
Replied by uzerbinati on topic P1ISOP2-P1
Works like a charm !
Thank you very much,
Thank you very much,
Last edit: 3 years 5 months ago by uzerbinati.
- uzerbinati
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
3 years 4 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
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
3 years 4 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
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
Attachments:
3 years 4 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
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
- uzerbinati
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
3 years 4 months ago - 3 years 4 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
thank you very much for the example on the prolongation operator and for the example on the class MappedIntegrationPoint !!
Kind regards,
Umberto
Last edit: 3 years 4 months ago by uzerbinati.
- uzerbinati
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
3 years 4 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
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.114 seconds