cell perimeter over area (area over volume in 3D) function

Asked by Alireza

Is there an efficient way to obtain perimeter-over-area (in 2D) and area-over-volume (in 3D) functions for each cell?

In my DG formulation, I have an interior penalty term (Cip) that depends on maximum of Area-over-Volume (AoV) between the two elements that share a common edge (or face in 3D). So, I am looking for an AoV function that can be employed in the Cip definition below. My elements are simplex (triangle and tetrahedral).

# assume P is my polynomial order

def Max(a,b): return ( a+b + abs(a-b) ) / Constant(2.0)

dim = mesh.geometry().dim()

def Cip(dim, P, AoV):

    coef = (P+1)*(P+dim) / (2.0*dim)

    return coef * Max( AoV('+'), AoV('-') )

Regards,

Alireza

Question information

Language:
English Edit question
Status:
Expired
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alireza (alireza-mazaheri) said :
#1

I just realized launchpad is no longer being used. Sorry. I post my question on fenics.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.