# Coordintes transformation for pyramides

**URL:** <https://pyfr.discourse.group/t/coordintes-transformation-for-pyramides/41>\
**Category:** General\
**Created:** [22 July 2014 13:05 UTC](https://pyfr.discourse.group/t/coordintes-transformation-for-pyramides/41 "2014-07-22T13:05:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Garcia-Uceda](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Antonio\_Garcia-Uceda](https://pyfr.discourse.group/u/Antonio_Garcia-Uceda)\
**Post date:** [22 July 2014 13:05 UTC](https://pyfr.discourse.group/t/coordintes-transformation-for-pyramides/41/1 "2014-07-22T13:05:17Z")

</div>

Dear all,

My name is Antonio Garcia-Uceda, and I’m working on implementing a FR algorithm for hybrid meshes.

I’m currently extending my FR method to pyramides, but I’m having troubles to come up with an expression of shape functions to transform from, let’s say a reference pyramide of vertexes (-1,-1,-1), (-1,1,-1), (1,1,-1), (1,-1,-1), (-1,-1,1), to a real pyramide of arbitrary vertexes.

I’d like to provide me with some info if you have already fully devised the FR method for pyramides.

Many thanks in advance,

Best regards,  
Antonio

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [22 July 2014 20:59 UTC](https://pyfr.discourse.group/t/coordintes-transformation-for-pyramides/41/2 "2014-07-22T20:59:56Z")

</div>

In PyFR we never construct these expressions explicitly. Everything we  
need can be obtained by constructing suitable nodal bases and then  
evaluating them at the right places; see shapes.py in PyFR.

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![Antonio\_Garcia-Uceda](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Antonio\_Garcia-Uceda](https://pyfr.discourse.group/u/Antonio_Garcia-Uceda)\
**Post date:** [23 July 2014 08:22 UTC](https://pyfr.discourse.group/t/coordintes-transformation-for-pyramides/41/3 "2014-07-23T08:22:09Z")

</div>

Hi Freddie,

I actually meant the transformation from the reference to the real element, in order to compute Jacobian matrix at the solution points.

Are you telling me that you also compute this transformation through the transformation from modal to nodal basis?

Best regards,  
Antonio

---

<div class="post-metadata">

**Author:** ![p.vincent](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/p.vincent/32/225_2.png) [@p.vincent](https://pyfr.discourse.group/u/p.vincent)\
**Post date:** [23 July 2014 10:37 UTC](https://pyfr.discourse.group/t/coordintes-transformation-for-pyramides/41/4 "2014-07-23T10:37:54Z")

</div>

Hi Antonio,

Thanks for your interest in PyFR.

All nodal basis functions used in PyFR are defined ‘implicitly’ via the definition of i.) a nodal point set and ii.) a modal orthonormal basis for the element in question (coefficients for the expansion of each nodal basis function, in terms of the modal orthonormal basis functions, can then be obtained).

This is therefore the approach used to obtain nodal shape functions.

Hence to define nodal shape functions for a pyramid you would beed to specify i.) a nodal point set and ii.) a modal orthonormal basis for the pyramid. I have not looked into this myself in detail yet.

Cheers

Peter
