getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Coordinates of gauss points


From: Yves Renard
Subject: Re: [Getfem-users] Coordinates of gauss points
Date: Wed, 11 Feb 2015 09:16:53 +0100 (CET)

Dear Eleonora,

It is of course possible. It depends in which context you need them.

In the high level generic assembly, the current position (i.e. the coordinates 
of the current Gauss point) is simply denoted by X.

In te internal of getfem, when elementary computations occurs, there is a 
special object named "fem_interpolation_context"
. If ctx is such an object, ctx.xref() is the coordinate of the Gauss point on 
the reference element and ctx.xreal() on the real one.

If you need the Gauss points on each element, you can loop over the elements 
and the Gauss points inside an element and using a fem_interpolation_context 
object have the coordinate of each Gauss point on the real element.

Don't forget also that there is a specific structure named "im_data" which is 
specially dedicated to store some data on each Gauss points and which can be 
used in generic assembly.

Yves.



----- Original Message -----
From: "Eleonora Piersanti" <address@hidden>
To: address@hidden
Sent: Tuesday, February 10, 2015 7:49:00 PM
Subject: [Getfem-users] Coordinates of gauss points

Hi to everyone, 
is it possible to obtain the coordinates of the Gauss points? 
Thanks, 
Eleonora 

_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]