Skip to content
Snippets Groups Projects
Commit db3ad447 authored by andy's avatar andy
Browse files

ENH: Bounded mass fraction in COxidationHurtMitchell

parent c0fa6d72
No related merge requests found
......@@ -155,7 +155,7 @@ Foam::scalar Foam::COxidationHurtMitchell<CloudType>::calculate
}
// Char percentage
const scalar charPrc = Ychar/Ydaf*100.0;
const scalar charPrc = max(0, min(Ychar/(Ydaf + ROOTVSMALL)*100.0, 100));
// Particle surface area
const scalar Ap = constant::mathematical::pi*sqr(d);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment