Skip to content
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.

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

Add support for adding constraints to nodes when using MixedDofHandler #294

Closed
wants to merge 5 commits into from

Conversation

kimauth
Copy link
Member

@kimauth kimauth commented Aug 17, 2020

This introduces an additional _add! function that allows to add Dirichlet BCs to nodesets for the MixedDofHandler. I turned out to need this, so maybe somebody else also appreciates it. :)

A few comments:

  • I bypass _check_cellset_dirichlet: Having to filter a nodeset by which nodes belong to the cellset of the FieldHandler beforehand doesn't seem reasonable to me, considering that the new _add! just skips all nodes that either don't belong to the FieldHandler or don't have dofs in the constrained field.

  • Probably it would be possible to use the same _add! for the regular DofHandler and the MixedDofHandler, by just handing it a cellset of 1:getncells(ch.dh.grid) by default (but I was afraid to break something...).

  • I think checking for a default_interpolation(getcelltype(ch.dh.grid)) doesn't make much sense for a mixed grid. Though I don't really understand whats the problem about adding node constraints to sub/superparametric approximations, so if I could get an explanation about that, I am happy to come up with a check that makes more sense for mixed grids.

@kimauth
Copy link
Member Author

kimauth commented Apr 1, 2021

Replaced by #346

@kimauth kimauth closed this Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant