Skip to content

Commit

Permalink
p function has default for C0 (#272)
Browse files Browse the repository at this point in the history
gamma_humic_acid_to_coag has correct units on max value of 1
  • Loading branch information
monroews authored Jun 16, 2020
1 parent b3faa4b commit c24e7c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aguaclara/research/floc_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@ def frac_vol_floc_initial(ConcAluminum, ConcClay, coag, material):

####################### p functions #######################
@ut.list_handler()
def p(C, Cprime):
return -np.log10(C/Cprime)
def p(C, C0=1):
return -np.log10(C/C0)


@ut.list_handler()
def invp(pC, Cprime):
return Cprime * 10**-pC
def invp(pC, C0=1):
return C0 * 10**-pC


#################### Fractal functions ####################
Expand Down Expand Up @@ -429,7 +429,7 @@ def gamma_humic_acid_to_coag(ConcAl, ConcNatOrgMat, NatOrgMat, coag):
* (coag.Density / NatOrgMat.Density)
* (coag.Diameter / (4 * NatOrgMat.Diameter))
),
1)).to(u.dimensionless)
1*u.dimensionless)).to(u.dimensionless)


# @u.wraps(None, [u.m, u.kg/u.m**3, u.kg/u.m**3, u.kg/u.m**3, None,
Expand Down

0 comments on commit c24e7c7

Please sign in to comment.