next up previous contents
Next: cstar2 Up: Functions Previous: constInjectionRate

constInjectionLoss

This function provides a way to subtract off the quantity depleted from a finite source during a time step. It is used in conjunction with constInjectionRate. See constInjectionRate for an example.

Parameters: C r tex2html_wrap_inline2726

C is the field containing the remaining source quantity

r is a variable containing the rate of injection

tex2html_wrap_inline2726 should be the TIME_STEP variable

The actual rate depleted depends on rate, the quantity remaining, and the time step. If the quantity remaining is non-zero then the rate of injection is the minimum of the maximum constant rate of injection and the rate to inject the remaining source quantity over the time step.



Dan Yergeau
Wed Aug 20 14:01:54 PDT 1997