minor changes
This commit is contained in:
parent
e2d8ec95f5
commit
70d277c86e
4 changed files with 8 additions and 9 deletions
|
|
@ -10,8 +10,6 @@
|
|||
% The catalytic combustion mechanism is from Deutschman et al., 26th
|
||||
% Symp. (Intl.) on Combustion,1996 pp. 1747-1754
|
||||
%
|
||||
% On a Mac G4, this example takes about 20 sec.
|
||||
%
|
||||
|
||||
help catcomb;
|
||||
%disp('press any key to start the simulation');
|
||||
|
|
@ -47,7 +45,7 @@ initial_grid = [0.0 0.02 0.04 0.06 0.08 0.1]; % m
|
|||
|
||||
|
||||
% numerical parameters
|
||||
tol_ss = [1.0e-5 1.0e-9]; % [rtol atol] for steady-state problem
|
||||
tol_ss = [1.0e-8 1.0e-14]; % [rtol atol] for steady-state problem
|
||||
tol_ts = [1.0e-4 1.0e-9]; % [rtol atol] for time stepping
|
||||
|
||||
loglevel = 1; % amount of diagnostic output
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ class Domain1D:
|
|||
d[b] = tol[b]
|
||||
for b in d.keys():
|
||||
n = self.componentIndex(b)
|
||||
print 'setting tol for ',b,' itime = ',itime
|
||||
_cantera.domain_setTolerances(self._hndl, n, d[b][0], d[b][1], itime)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace Cantera {
|
|||
m_jstart(0),
|
||||
m_left(0),
|
||||
m_right(0),
|
||||
m_refiner(0), m_id("-"), m_desc("-") {
|
||||
m_refiner(0), m_id("-"), m_desc("-"), m_rdt(0.0) {
|
||||
resize(nv, points);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ namespace Cantera {
|
|||
}
|
||||
#endif
|
||||
|
||||
try {
|
||||
//try {
|
||||
iok = jac.solve(sz, step, step);
|
||||
if (iok > 0) {
|
||||
iok--;
|
||||
|
|
@ -150,10 +150,10 @@ namespace Cantera {
|
|||
else if (iok < 0)
|
||||
throw CanteraError("MultiNewton::step",
|
||||
"iok = "+int2str(iok));
|
||||
}
|
||||
catch (CanteraError) {
|
||||
showErrors(cout);
|
||||
}
|
||||
//}
|
||||
//catch (CanteraError) {
|
||||
//showErrors(cout);
|
||||
//}
|
||||
|
||||
#ifdef DEBUG_STEP
|
||||
bool ok = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue