Skip to content

Applying the nodal fixation #947

Answered by kinnala
ywan459 asked this question in Q&A
Discussion options

You must be logged in to vote

The method basis.get_dofs requires a set of facets instead of a set of nodes because it is designed to work with general finite elements that have all nodal, facet and edge DOFs.

Here you can use something like

basis.nodal_dofs[2, group_top].flatten()

to get the DOF indices of z-directional nodal displacement and

basis.nodal_dofs[:, group_top].flatten()

to get all DOF indices matching group_top.

I think *.med might not support facet sets but if you decide to use some more general format like *.msh then Mesh3D.load can read also the names of the facet sets.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kinnala
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #946 on October 30, 2022 07:32.