Skip to content

Commit

Permalink
Subtract rather than add elastic force term in RHS assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
naliboff committed Nov 16, 2017
1 parent c076a8f commit 4068d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/simulator/assemblers/stokes.cc
Expand Up @@ -258,7 +258,7 @@ namespace aspect

if (force != NULL)
data.local_rhs(i) += (force->rhs_u[q] * scratch.phi_u[i]
+ double_contract(force->rhs_e[q],scratch.grad_phi_u[i])
- double_contract(force->rhs_e[q],Tensor<2,dim>(scratch.grads_phi_u[i]))
+ pressure_scaling * force->rhs_p[q] * scratch.phi_p[i])
* JxW;

Expand Down

0 comments on commit 4068d6a

Please sign in to comment.