Skip to content

Commit

Permalink
Use solution and reaction term for particle stress
Browse files Browse the repository at this point in the history
  • Loading branch information
anne-glerum committed Feb 3, 2022
1 parent cd3930f commit 0efcbec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/particle/property/elastic_stress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace aspect
this->get_material_model().evaluate (material_inputs,material_outputs);

for (unsigned int i = 0; i < SymmetricTensor<2,dim>::n_independent_components ; ++i)
particle->get_properties()[data_position + i] += material_outputs.reaction_terms[0][i];
particle->get_properties()[data_position + i] = material_inputs.composition[0][i] + material_outputs.reaction_terms[0][i];
}


Expand Down

0 comments on commit 0efcbec

Please sign in to comment.