Skip to content

Commit

Permalink
Make two parameters optional
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebBell committed May 23, 2021
1 parent e16bc2a commit dcacc20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chemicals/viscosity.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def Viswanath_Natarajan_3(T, A, B, C):
'''
return 10.0**(A + B/(C - T))

def mu_Yaws(T, A, B, C, D):
def mu_Yaws(T, A, B, C=0.0, D=0.0):
r'''Calculate the viscosity of a liquid using the 4-term Yaws polynomial
form. Requires input coefficients. If the
coefficients do not yield viscosity in Pa*s, but rather cP, remove
Expand Down Expand Up @@ -797,7 +797,7 @@ def mu_Yaws(T, A, B, C, D):
'''
return 10.0**(A + B/T + T*(C + D*T))

def dmu_Yaws_dT(T, A, B, C, D):
def dmu_Yaws_dT(T, A, B, C=0.0, D=0.0):
r'''Calculate the temperature derivative of the viscosity of a liquid using
the 4-term Yaws polynomial form. Requires input coefficients.
Expand Down

0 comments on commit dcacc20

Please sign in to comment.