[Matlab] Fix small bugs. Add clear method to Transport, qdot and vdot to Wall.
This commit is contained in:
parent
0c1688a361
commit
a8304e146e
8 changed files with 16 additions and 11 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
function setSteadyTolerances(d, component, rtol, atol)
|
||||
function setTransientTolerances(d, component, rtol, atol)
|
||||
% SETSTEADYTOLERANCES -
|
||||
%
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
3
interfaces/matlab/toolbox/@Transport/clear.m
Normal file
3
interfaces/matlab/toolbox/@Transport/clear.m
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function clear(tr)
|
||||
|
||||
trans_get(tr.id, 0)
|
||||
3
interfaces/matlab/toolbox/@Wall/qdot.m
Normal file
3
interfaces/matlab/toolbox/@Wall/qdot.m
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function q = qdot(w, t)
|
||||
|
||||
q = wallmethods(22, wall_hndl(w), t);
|
||||
3
interfaces/matlab/toolbox/@Wall/vdot.m
Normal file
3
interfaces/matlab/toolbox/@Wall/vdot.m
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function v = vdot(w, t)
|
||||
|
||||
v = wallmethods(21, wall_hndl(w), t);
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue