Skip to content

Commit

Permalink
Moved netSigma out of the sink strength (#100).
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Blondel committed Mar 10, 2023
1 parent aba660e commit b679d44
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions xolotl/core/include/xolotl/core/network/impl/FeCrReaction.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,12 @@ FeCrSinkReaction::computeRate(IndexType gridIndex, double time)

double strength = this->asDerived()->getSinkStrength() * dc;

auto clReg = cl.getRegion();
Composition comp = clReg.getOrigin();
if (comp.isOnAxis(Species::Free)) {
strength *= this->_clusterData->extraData.netSigma(this->_reactant);
}

return strength;
}

Expand Down Expand Up @@ -440,8 +446,7 @@ FeCrSinkReaction::getSinkStrength()
Z = rCoal;

Z *= 2.0 * ::xolotl::core::fecrDisloAlignment *
((1.0 - portion) * this->getSinkBias() + portion) *
this->_clusterData->extraData.netSigma(this->_reactant);
((1.0 - portion) * this->getSinkBias() + portion);
}

return density * Z;
Expand Down

0 comments on commit b679d44

Please sign in to comment.