Skip to content

Pointwise condition to kill "rigid body motion" #813

Answered by KnutAM
jfbarthelemy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
You can create the nodeset from the coordinate:
addnodeset!(grid, "my_node", x -> x ≈ Vec((-1,-1)))
Then you can add the DBC to this nodeset:
add!(ch, Dirichlet(:u, getnodeset(grid, "my_node"), Returns(zero(Vec{2}))))
as if it was a faceset.

I'm not aware of a straight forward way to impose affine constraints on the cell nodes based on an arbitrary point. But the point eval handler internals might help with at least identifying the cell efficiently.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
10 replies
@jfbarthelemy
Comment options

@koehlerson
Comment options

@termi-official
Comment options

@jfbarthelemy
Comment options

@KnutAM
Comment options

Answer selected by jfbarthelemy
Comment options

You must be logged in to vote
2 replies
@KnutAM
Comment options

@termi-official
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants