Replies: 2 comments 3 replies
-
There has never been a straight forward way of extracting the dofs on nodes in Ferrite. The reason for this is because we distribute the dofs on cells, which means we never store the node-to-dof information. The reason we dont have utility functions for this (yet), is because the weak form is always expressed in terms of surface integrals (and not points). So typically the external forces are applied as neumann integrals. That being said, it is of course a common thing to want to apply forces to nodes, so we have talked about adding utility functions for this 🙂 . But in the meanwhile, maybe this example code can help you?
|
Beta Was this translation helpful? Give feedback.
-
Hello again. I think this should work on master
|
Beta Was this translation helpful? Give feedback.
-
This might be a simple issue, but is there a handy way to assign arbitrary values on the right-hand side vector that correspond to the degrees of freedom of a specific node and field? That is, I want a function like map_node_to_dof(nodeset["s"], :field) => DoFindices
Let us say that I want to set a concentrated load in a linear elasticity problem on one node in the mesh. In that case, I would not use the typical Neumann boundary condition assembly procedure (i.e. a scenario of distributed load) which iterates through the Neumann faces of the mesh and computes the surface integrals along them before assembling the surface integrals onto the load vector. Instead, I would need the DoF indices of the variable of interest at the given node(s) and modify directly the right-hand side vector.
Beta Was this translation helpful? Give feedback.
All reactions