Applying nodal forcing function #16227
-
Hi All, I have a forcing function that I know at the nodes but not at the quadrature points. I've tried to apply this function by using a NodalKernal but it appears that the value I've set gets added for as many elements are associated with any given node. Are there any examples of adding values directly to the residual at a given node without this duplication? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
@lindsayad Can you help with this? |
Beta Was this translation helpful? Give feedback.
-
this would definitely be unexpected behavior. Your residual from your void
NodalKernel::computeResidual()
{
if (_var.isNodalDefined())
{
const dof_id_type & dof_idx = _var.nodalDofIndex();
_qp = 0;
Real res = computeQpResidual();
res *= _var.scalingFactor();
_assembly.cacheResidual(dof_idx, res, _vector_tags); No association with element connectivity there. If you can show us a minimal working example with this buggy behavior, then we would definitely fix it. |
Beta Was this translation helpful? Give feedback.
-
Going to consider #16269 to be the answer here |
Beta Was this translation helpful? Give feedback.
Going to consider #16269 to be the answer here