11 lines
314 B
Matlab
11 lines
314 B
Matlab
function setElectricPotential(tp,phi)
|
|
% SETELECTRICPOTENTIAL Set the electric potential.
|
|
% setElectricPotential(tp,phi)
|
|
% :param tp:
|
|
% Instance of class :mat:func:`ThermoPhase` (or another
|
|
% class derived from ThermoPhase)
|
|
% :param phi:
|
|
% Electric potential. Units: V
|
|
%
|
|
|
|
thermo_set(tp.tp_id, 2, phi);
|