Replies: 1 comment 1 reply
-
from pycalphad import Database, variables as v
db = Database('mmc1.TDB')
print(db.symbols['GHSERAL'].subs({v.T: 1000}))
To force it to be numerical, you can do print(db.symbols['GHSERAL'].subs({v.T: 1000}).evalf(real=True))
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to evaluate piecewise function, i.e.:
I got updated expression instead of number.
How can I force it to return real value?
Thank you,
Petr
Beta Was this translation helpful? Give feedback.
All reactions