From 265b81948d9df67fa99344f4254a6c233db2576c Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Mon, 1 May 2006 23:03:05 +0000 Subject: [PATCH] added functions to set and get the electric potential of a phase --- Cantera/matlab/cantera/private/thermomethods.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cantera/matlab/cantera/private/thermomethods.cpp b/Cantera/matlab/cantera/private/thermomethods.cpp index e6a593022..14284cec7 100644 --- a/Cantera/matlab/cantera/private/thermomethods.cpp +++ b/Cantera/matlab/cantera/private/thermomethods.cpp @@ -28,6 +28,8 @@ static void thermoset( int nlhs, mxArray *plhs[], ierr = delThermo(th); break; case 1: ierr = th_setPressure(th,*ptr); break; + case 2: + ierr = th_setElectricPotential(th, *ptr); break; default: mexErrMsgTxt("unknown attribute."); } @@ -139,6 +141,8 @@ static void thermoget( int nlhs, mxArray *plhs[], tsat = getDouble(prhs[3]); vv = th_satPressure(n, tsat); break; #endif + case 25: + vv = th_electricPotential(n); break; default: ok = false; }