These changes make it unnecessary to copy header files around during the build process, which tends to confuse IDEs and debuggers. The headers which comprise Cantera's external C++ interface are now in the 'include' directory. All of the samples and demos are now in the 'samples' subdirectory.
13 lines
322 B
Matlab
13 lines
322 B
Matlab
function plotSolution(s, domain, component)
|
|
% PLOTSOLUTION - plot a specified solution component
|
|
%
|
|
% plotSolution(s, 'flow', 'T') plots component 'T' in domain 'flow'
|
|
%
|
|
n = domainIndex(s,domain);
|
|
d = s.domains(n);
|
|
z = gridPoints(d);
|
|
x = solution(s, domain, component);
|
|
plot(z, x);
|
|
xlabel('z (m)');
|
|
ylabel(component);
|
|
|