Can I define a DG (P1) space on triangle mesh with dofs defined on middle points of the edges? #2383
Answered
by
colinjcotter
lrtfm
asked this question in
Firedrake support
Replies: 2 comments 2 replies
-
You can get this with
```
FunctionSpace(mesh, BrokenElement(FiniteElement("CR", triangle, 1)))
```
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, I forgot FiniteElement, sorry!
On 12 Mar 2022, at 16:03, Yang Zongze ***@***.***> wrote:
@colinjcotter<https://github.com/colinjcotter> Thanks for your quick reply.
I tried it and found the right syntax should be
V = FunctionSpace(mesh, BrokenElement(FiniteElement('CR', triangle, 1)))
—
Reply to this email directly, view it on GitHub<#2383 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABOSV4UYLVHJEYE34UPSWTDU7S55XANCNFSM5QR7ZMXA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wence-
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now, I know how to define a DG space
The DOFs of
V
are defined on vertex.Can I define another space with the DOFs of
V
defined on the middle points of the edges?Beta Was this translation helpful? Give feedback.
All reactions