11 lines
196 B
Matlab
11 lines
196 B
Matlab
function setDensity(tp, rho)
|
|
% SETDENSITY - Set the density [kg/m^3].
|
|
%
|
|
% setDensity(phase, 0.01);
|
|
%
|
|
|
|
if rho <= 0.0
|
|
error('The density must be positive.');
|
|
end
|
|
|
|
phase_set(tp.tp_id, 2, rho);
|