[Matlab] Fix small bugs. Add clear method to Transport, qdot and vdot to Wall.

This commit is contained in:
Bryan W. Weber 2014-07-18 14:35:05 +00:00
parent 0c1688a361
commit a8304e146e
8 changed files with 16 additions and 11 deletions

View file

@ -35,10 +35,6 @@ while length(property_argin) >= 2,
setTemperature(a, val);
case 'T'
setTemperature(a, val);
case 'MassFractions'
setMassFractions(a, val);
case 'Y'
setMassFractions(a, val);
case 'mdot'
setMdot(a, val);
case 'MassFlux'

View file

@ -1,4 +1,4 @@
function setSteadyTolerances(d, component, rtol, atol)
function setTransientTolerances(d, component, rtol, atol)
% SETSTEADYTOLERANCES -
%

View file

@ -1,14 +1,14 @@
function c = concentrations(s)
% CONCENTRATIONS - Surface concentrations
%
c = surfmethods(thermo_hndl(s), 101);
c = surfmethods(thermo_hndl(s), 103);
if nargout == 0
figure
set(gcf, 'Name', 'Concentrations')
bar(c);
colormap(summer);
nm = speciesNames(s);
set(gca,'XTickLabel', nm);
set(gca, 'XTickLabel', nm);
xlabel('Species Name');
ylabel('Concentration [kmol/m2]');
title('Surface Species Concentrations');

View file

@ -0,0 +1,3 @@
function clear(tr)
trans_get(tr.id, 0)

View file

@ -0,0 +1,3 @@
function q = qdot(w, t)
q = wallmethods(22, wall_hndl(w), t);

View file

@ -0,0 +1,3 @@
function v = vdot(w, t)
v = wallmethods(21, wall_hndl(w), t);

View file

@ -1,3 +1,3 @@
function n = addChild(root, id)
function n = addChild(root, id, val)
%
n = ctmethods(10, 10, root.id, id);
n = ctmethods(10, 11, root.id, id, val);

View file

@ -1,3 +1,3 @@
function n = nChildren(root, id)
function n = nChildren(root)
%
n = ctmethods(10, 10, root.id, id);
n = ctmethods(10, 10, root.id);