Fast Refrigerant Property Calculations

Slides:



Advertisements
Similar presentations
Steady-state heat conduction on triangulated planar domain May, 2002
Advertisements

Living room acoustics You can use the heading from the model documentation for the title. © 2013 COMSOL. All rights reserved.
Arc-length computation and arc-length parameterization
Part 2 Chapter 6 Roots: Open Methods
Numerical Computation Lecture 4: Root Finding Methods - II United International College.
Part 2 Chapter 6 Roots: Open Methods
Polynomial Approximation PSCI 702 October 05, 2005.
Object Specific Compressed Sensing by minimizing a weighted L2-norm A. Mahalanobis.
Coursework Requirements Numerical Methods. 1.Front Cover indicating that the coursework is about the numerical Solution of Equations. Include your name,
Risk Management and Operations Solutions Derivative Pricing for Risk Calculations – Challenges and Approaches Research Workshop.
Today’s class Romberg integration Gauss quadrature Numerical Methods
Engineering Optimization – Concepts and Applications Engineering Optimization Concepts and Applications Fred van Keulen Matthijs Langelaar CLA H21.1
A Bezier Based Approach to Unstructured Moving Meshes ALADDIN and Sangria Gary Miller David Cardoze Todd Phillips Noel Walkington Mark Olah Miklos Bergou.
A Bezier Based Approach to Unstructured Moving Meshes ALADDIN and Sangria Gary Miller David Cardoze Todd Phillips Noel Walkington Mark Olah Miklos Bergou.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Chapter 4 Roots of Equations
Curve-Fitting Polynomial Interpolation
ME1521 Properties of Pure Substances Reading: Cengel & Boles, Chapter 2.
Method of manufactured solutions The first stage in code verification is to test for problems for which we have analytical solutions. However, often we.
Optimization of Linear Problems: Linear Programming (LP) © 2011 Daniel Kirschen and University of Washington 1.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Department of Mechanical Engineering ME 322 – Mechanical Engineering Thermodynamics Review For Exam 1.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Chapter 17 Boundary Value Problems. Standard Form of Two-Point Boundary Value Problem In total, there are n 1 +n 2 =N boundary conditions.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Finite Element Method.
Numerical Computation
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 31.
Efficient Integration of Large Stiff Systems of ODEs Using Exponential Integrators M. Tokman, M. Tokman, University of California, Merced 2 hrs 1.5 hrs.
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
Numerical Methods.
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
MECH4450 Introduction to Finite Element Methods Chapter 9 Advanced Topics II - Nonlinear Problems Error and Convergence.
A Non-iterative Hyperbolic, First-order Conservation Law Approach to Divergence-free Solutions to Maxwell’s Equations Richard J. Thompson 1 and Trevor.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
MA2213 Lecture 2 Interpolation.
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
MECH593 Introduction to Finite Element Methods
GLBIO ML workshop May 17, 2016 Ivan Kryukov and Jeff Wintersinger
Bounded Nonlinear Optimization to Fit a Model of Acoustic Foams
Parallel Computing and Parallel Computers
Introduction to the Finite Element Method
Interpolation.
Nodal Methods for Core Neutron Diffusion Calculations
Constructing Objects in Computer Graphics By Andries van Dam©
THE METHOD OF LINES ANALYSIS OF ASYMMETRIC OPTICAL WAVEGUIDES Ary Syahriar.
Fluent Overview Ahmadi/Nazridoust ME 437/537/637.
Convergence in Computational Science
Interpolation.
NESTA: A Fast and Accurate First-Order Method for Sparse Recovery
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Numerical Analysis Lecture 7.
CSE 245: Computer Aided Circuit Simulation and Verification
Chapter 27.
AIAA OBSERVATIONS ON CFD SIMULATION UNCERTAINITIES
Roots of equations Class IX.
Chapter 26.
Supported by the National Science Foundation.
POLYNOMIAL INTERPOLATION
AIAA OBSERVATIONS ON CFD SIMULATION UNCERTAINTIES
دانشگاه صنعتي اميركبير
INTERPOLASI.
Compact Higher-Order Interpolation at Overset mesh Boundaries
L23 Numerical Methods part 3
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Fast Refrigerant Property Calculations Using Interpolation-Based Methods Christopher Laughman Yiming Zhao Daniel Nikovski 19 July 2012 2012/07/19 CONFIDENTIAL

Overview Motivation Structure of method Implementation Results 2012/07/19 CONFIDENTIAL

On calculating refrigerant properties Refprop is commonly used: It’s very accurate! …but it’s not so fast. Typical simulation of a moving-boundary model of a vapor compression air-conditioning system: ~90 property evaluations / timestep. Long transient simulations with variable step ODE solvers can be very slow. 2012/07/19 CONFIDENTIAL

Property calculation wish list When will my simulation finish? Speed (at least 30x faster) Accuracy (< 1% error in comparison to Refprop) Consistency given 𝑇 ∗ , 𝑃 ∗ : |𝑇 𝑃 ∗ , ℎ 𝑇 ∗ , 𝑃 ∗ − 𝑇 ∗ |< 𝜖 Where epsilon is set by the machine tolerance, not by numerical error. 2012/07/19 CONFIDENTIAL

Choosing an interpolation variable Consistency is difficult to ensure when creating interpolation functions h(T, p) Thermodynamic potentials and fundamental equations of state, such as the Helmholtz energy 𝑎 𝑇,𝑣 , have distinct advantages: 𝑝= 𝜕𝑎 𝜕𝑣 𝑇 𝑠=− 𝜕𝑎 𝜕𝑇 𝜌 ℎ=𝑢+𝑝𝑣 2012/07/19 CONFIDENTIAL

General property calculation method A thermodynamic potential (e.g. Helmholtz energy 𝑎(𝑇,𝑣)) is used as a pivot variable: Relate the variables of interest to a value of 𝑎 A given value of 𝑎 uniquely determines (𝑇,𝑣) Use 𝑎(𝑇,𝑣) to calculate any other desired property 2012/07/19 CONFIDENTIAL

Fitting the Helmholtz energy Once we know the right values of A, then we just use the fundamental EOS from Lemmon, etc. to calculate the desired properties. Bicubic splines are advantageous for this interpolation problem because they can be easily differentiated to calculate other properties: Φ 𝑖,𝑗 𝑇,𝑣 = 𝑘=0 3 𝑙=0 3 𝛼 𝑘,𝑙 (𝑇− 𝑇 𝑖 ) 𝑘 (𝑣− 𝑣 𝑗 ) 𝑙 for 𝑇,𝑣 ∈ 𝑇 𝑖 , 𝑇 𝑖+1 × 𝑣 𝑖 , 𝑣 𝑖+1 . 2012/07/19 CONFIDENTIAL

Φ 𝑖,𝑗 𝑇,𝑣 = 𝑘=0 3 𝑙=0 3 𝛼 𝑘,𝑙 (𝑇− 𝑇 𝑖 ) 𝑘 (𝑣− 𝑣 𝑗 ) 𝑙 Example 1: 𝑻,𝒗 →𝒔 Can manipulate the previous equation Φ 𝑖,𝑗 𝑇,𝑣 = 𝑘=0 3 𝑙=0 3 𝛼 𝑘,𝑙 (𝑇− 𝑇 𝑖 ) 𝑘 (𝑣− 𝑣 𝑗 ) 𝑙 into a matrix equation Φ 𝑖,𝑗 𝑇,𝑣 = 1 𝑇 𝑇 2 𝑇 3 𝛼 00 ⋯ 𝛼 03 ⋮ ⋱ ⋮ 𝛼 30 ⋯ 𝛼 33 1 ⋮ 𝑣 3 Since s 𝑇,𝑣 = 𝜕𝑎(𝑇,𝑣) 𝜕𝑇 , 𝑠 𝑇,𝑣 = 1 2𝑇 3 𝑇 2 𝛼 10 ⋯ 𝛼 13 ⋮ ⋱ ⋮ 𝛼 30 ⋯ 𝛼 33 1 ⋮ 𝑣 3 2012/07/19 CONFIDENTIAL

it is clear that 𝑠 is a quadratic function in 𝑇. Example 2: 𝒔,𝒗 →𝑻 From 𝑠 𝑇,𝑣 = 1 2𝑇 3 𝑇 2 𝛼 10 ⋯ 𝛼 13 ⋮ ⋱ ⋮ 𝛼 30 ⋯ 𝛼 33 1 ⋮ 𝑣 3 it is clear that 𝑠 is a quadratic function in 𝑇. Solve for 𝑇 as a function of 𝑠 by finding the roots of that quadratic and choosing the feasible root. 2012/07/19 CONFIDENTIAL

𝑇 𝑘 − 𝑇 𝑘−1 + 𝑣 𝑘 − 𝑣 𝑘−1 + 𝑝 𝑘 −𝑝 + 𝑠 𝑘 −𝑠 < 𝜖 Example 3: 𝒔,𝒑 →(𝑻,𝒗) When only 𝑠,𝑝 are given, it is not possible to analytically calculate 𝑇,𝑣 . Instead, find the roots of 𝑓 𝑇,𝑣 = 𝑓 𝑝 𝑇,𝑣 −𝑝 𝑓 𝑠 𝑇,𝑣 −𝑠 =0; the search terminates when 𝑇 𝑘 − 𝑇 𝑘−1 + 𝑣 𝑘 − 𝑣 𝑘−1 + 𝑝 𝑘 −𝑝 + 𝑠 𝑘 −𝑠 < 𝜖 where 𝜖 is determined by the user. Newton’s method (or other equivalent methods) can be used to find the roots of this equation. 2012/07/19 CONFIDENTIAL

Results: Speed This method on the superheated region of R134a inside the region [280,400]K x [0.9,10]mol/L. Three meshes were used: Mesh 1 = 50 points x 100 points Mesh 2 = 100 points x 200 points Mesh 3 = 200 points x 400 points Average computation time (ms) Mesh 1 Mesh 2 Mesh 3 Type 1 (T,v) → s 7.56e-3 7.37e-4 7.5e-4 (T,v) → p 7.43e-3 7.43e-4 8.61e-4 Type 2 (s,v) → T 2.99e-2 3.09e-2 3.25e-2 (T,p) → v 2.95e-2 3.08e-2 3.48e-2 Type 3 (s,p) → (T,v) 0.364 0.546 1.24 Table 1 shows the computation speed of the new method, as well as the impact of base mesh size on the computation speed. Three different size meshes were used: Mesh 1 was 50 points by 100 points, Mesh 2 was 100 points by 200 points, and Mesh 3 was 200 points by 400 points. As expected, the first class of calculations, described in Section 3.2, are the most efficient since they only require the evaluation of very low order polynomials, and the grid cell allocation requires very little computation. The second class of calculations, described in Section 3.3, performs analytic root computation for quadratic functions, and are about 4-40 times slower than the first class. For this class of calculations, grid cell allocation requires a considerable amount of computation when the mesh size is large. The third class of calculations, described in Section 3.4, is the least computationally efficient due to the iterative nature of Newton’s method. 2012/07/19 CONFIDENTIAL

Results: Accuracy This method was compared to the function tprho in Refprop 9.0 (NIST). Refprop with standard tolerances and the interpolation-based method were compared to Refprop with reduced convergence tolerance 𝜌 𝑛 − 𝜌 𝑛−1 < 1e-12 rather than the standard tolerance of 1e-9. The interpolation-based method was tested for the 3 mesh sizes. Refprop was tested for 3 different convergence tolerances. The interpolation-based method was 53x faster than Refprop on average. Newton-based method Interpolation-based method Tolerance Time (ms) Relative error Mesh 1e-3 1.42 9.85e-4 Mesh 1 2.95e-2 2.98e-4 1e-5 1.70 9.98e-6 Mesh 2 3.08e-2 1.84e-5 1e-8 1.92 9.91e-9 Mesh 3 3.48e-2 6.28e-6 2012/07/19 CONFIDENTIAL

Results: Consistency 𝐸 𝑇 𝐸 𝑣 𝐸 𝑇𝑣 Three metrics were examined: 𝐸 𝑇 = 𝑇− 𝐹 𝑇 𝐹 𝑠 𝑇,𝑣 ,𝑣 𝐸 𝑣 = 𝑣− 𝐹 𝑣 𝑇, 𝐹 𝑝 𝑇,𝑣 𝐸 𝑇𝑣 = [𝑇,𝑣] 𝑇 − 𝐹 𝑇𝑣 𝐹 𝑠 𝑇,𝑣 , 𝐹 𝑝 (𝑇,𝑣) 𝐸 𝑇 𝐸 𝑣 𝐸 𝑇𝑣 2012/07/19 CONFIDENTIAL

Summary Property calculation methods which are based upon interpolated values of the thermodynamic potentials can achieve high accuracy and consistency while substantially reducing the computational time required as compared to conventional iterative methods. More work remains to be done to extend these methods to other regions of the phase space. 2012/07/19 CONFIDENTIAL

Thank you. Any questions? 2012/07/19 CONFIDENTIAL