Documente Academic
Documente Profesional
Documente Cultură
An Integrated Educational
Thermodynamics Software Program
Connelly Barnes
What is ThermoSolver?
Programmed by Connelly Barnes.
Software program used to teach Chemical
Engineering (ChE) thermodynamics.
Available for free from Web (Google it).
Allows students to "explore"
thermodynamics make nontrivial
calculations, and compare different
thermodynamic models.
Motivation
Thermodynamic equations can become
complicated, must be solved by lookup
tables or computer algorithms.
Tables are available for a limited set of
pure species.
Motivation (continued)
Computer solutions: spreadsheets,
scripts, Computer Algebra System
worksheets can be used, but it's hard to
let the student use different number of
species, thermodynamic models, etc.
We would like students to not have the
burden of programming every solution,
especially for routine calculations.
Objectives
Standalone educational software program.
Easy to use interface reduce all
"barriers" to using the software.
Research and develop algorithms needed
to solve equations.
Integrate with chapter problems in
Engineering and Chemical
Thermodynamics by Milo Koretsky.
Use at Universities
At OSU, ThermoSolver used in ChE thermo
course, graduate reactors course, plant
design.
In plant design, ThermoSolver not specifically
named, but 10/39 students used it.
Don't track usage by other Universities, but
Web search reveals it has been used at Univ.
Notre Dame, Indiana and Univ. of Colorado
at Boulder.
Features
Features (continued)
Tour of Program:
Tour of Program:
Tour of Program:
Tour of Program:
Tour of Program:
Example: Chloroform-heptane.
Tour of Program:
Tour of Program:
Tour of Program:
Tour of Program:
Tour of Program:
Tour of Program:
Tour of Program:
Tour of Program:
Numerical Algorithms
Newton root finder with backtracking.
Downhill simplex method for minimization.
Iterative substitution.
F1
xn
Fn
xn
(
D
F
)
F( x i )
Newton step
xi
Iterate x i 1 x i
Newton Backtracking
Use full Newton step if norm ||F||2 is less
than its value at xi, otherwise try /2, /4,
/8, ... until ||F||2 is less than its value at xi.
This is guaranteed to happen, as is a
descent direction for ||F||2.
Simplex Method
J.A. Nelder and R. Mead, "A simplex
method for function minimization,"
Computer Journal 7 (1965) 308-313.
Simple, derivative free method for finding
minimum of function of form F: Rn -> R.
Does not use derivatives, so constrained
minimization possible by setting F to
infinity.
Algorithms
Equation of state solver: Newton method.
Excess Gibbs energy model fitting: Simplex.
Bubble point / dew point: Custom iterative
methods based on those of Smith, Van Ness,
and Abbott.
Multiple chemical reaction equilibria: Newton
and simplex. Typically converges, however
Dr. Koretsky found a problem where this
method does not converge.
Conclusion
Objectives met?
User interface is straightforward to use.
Numerical methods converge with one
known exception.
A practical tool integrated with problems in
a textbook.
Acknowledgements
Milo Koretsky, Mentor.
Rubin Landau, Computational Physics.