How And Where Does Mfem Distinguish CG Vs DG In Terms Of DOF

Skip to content Dismiss alert {{ message }} / mfem Public
  • Notifications You must be signed in to change notification settings
  • Fork 507
  • Star 1.8k
  • Code
  • Issues 98
  • Pull requests 167
  • Discussions
  • Actions
  • Projects 1
  • Security
  • Insights
Additional navigation options New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to bottom How and where does mfem distinguish CG vs DG in terms of DOF #1145 Closed geyan3566 opened this issue Nov 5, 2019 · 2 comments Closed How and where does mfem distinguish CG vs DG in terms of DOF #1145 geyan3566 opened this issue Nov 5, 2019 · 2 comments Assignees @tzanio Labels fem usage

Comments

@geyan3566 Copy link

geyan3566 commented Nov 5, 2019

Hi,

I'm constructing another discontinuous finite element collection other than L2_FECollection. I followed example 9, but I couldn't get where and how MFEM introduces the extra degrees of freedom on the element interfaces? Does it start at mesh construction or finite element space construction?

Thanks, Ge

All reactions @tzanio tzanio self-assigned this Nov 6, 2019 @tzanio tzanio added fem usage labels Nov 6, 2019 @tzanio Copy link Member

tzanio commented Nov 6, 2019

It is part of the finite element space, and specifically the finite element collection.

Specifically, FiniteElementSpace::Construct() calls FiniteElementCollection::DofForGeometry with the various geometric entities (Geometry::POINT, Geometry::SEGMENT, etc.) to figure out how many degrees of freedom are associated with each geometric entities.

For the L2_FECollection, no dofs associated with shared entities are returned.

All reactions @geyan3566 Copy link Author

geyan3566 commented Nov 6, 2019

It is part of the finite element space, and specifically the finite element collection.

Specifically, FiniteElementSpace::Construct() calls FiniteElementCollection::DofForGeometry with the various geometric entities (Geometry::POINT, Geometry::SEGMENT, etc.) to figure out how many degrees of freedom are associated with each geometric entities.

For the L2_FECollection, no dofs associated with shared entities are returned.

Thanks for your reply. It solved my problem.

All reactions @geyan3566 geyan3566 closed this as completed Nov 6, 2019 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Assignees

@tzanio tzanio

Labels fem usage Projects None yet Milestone No milestone Development

No branches or pull requests

2 participants @tzanio @geyan3566 You can’t perform that action at this time.

Từ khóa » Cg Vs Dg