Skip to content

Commit

Permalink
Comments added about including mu in weighted volume and dilatation c…
Browse files Browse the repository at this point in the history
…alculations
  • Loading branch information
pabloseleson committed Aug 17, 2023
1 parent cdeca2b commit ab4ab6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CabanaPD_Force.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ class Force<ExecutionSpace, ForceModel<LPS, Fracture>>
// Get the reference positions and displacements.
double xi, r, s;
getDistance( x, u, i, j, xi, r, s );
// mu is included to account for bond breaking.
double m_j = mu( i, n ) * model.influence_function( xi ) * xi *
xi * vol( j );
m( i ) += m_j;
Expand Down Expand Up @@ -628,6 +629,7 @@ class Force<ExecutionSpace, ForceModel<LPS, Fracture>>
// Get the bond distance, displacement, and stretch.
double xi, r, s;
getDistance( x, u, i, j, xi, r, s );
// mu is included to account for bond breaking.
double theta_i = mu( i, n ) * model.influence_function( xi ) *
s * xi * xi * vol( j );
// Check if all bonds are broken (m=0) to avoid dividing by
Expand Down

0 comments on commit ab4ab6a

Please sign in to comment.