added functions to set and get the electric potential of a phase
This commit is contained in:
parent
43e9b31519
commit
265b81948d
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue