Skip to content

Commit 71db3af

Browse files
wandadarsspeth
authored andcommitted
[1D] updates to docstrings
1 parent da62edc commit 71db3af

File tree

2 files changed

+28
-13
lines changed

2 files changed

+28
-13
lines changed

include/cantera/oneD/IonFlow.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class IonFlow : public StFlow
8787
* (@f$ \varepsilon_0 @f$).
8888
* The zero electric field is first evaluated and if the solution state is 2,
8989
* then the alternative form the electric field equation is evaluated.
90+
*
91+
* For argument explanation, see evalContinuity() base class.
9092
*/
9193
void evalElectricField(double* x, double* rsd, int* diag,
9294
double rdt, size_t jmin, size_t jmax) override;
@@ -98,6 +100,8 @@ class IonFlow : public StFlow
98100
* A Neumann boundary for the charged species at the
99101
* left boundary is added, and the default boundary condition from the overloaded
100102
* method is left the same for the right boundary.
103+
*
104+
* For argument explanation, see evalContinuity() base class.
101105
*/
102106
void evalSpecies(double* x, double* rsd, int* diag,
103107
double rdt, size_t jmin, size_t jmax) override;

include/cantera/oneD/StFlow.h

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ class StFlow : public Domain1D
297297
* @param[out] rsdGlobal Global residual vector
298298
* @param[out] diagGlobal Global boolean mask indicating whether each solution
299299
* component has a time derivative (1) or not (0).
300-
* @param[in] rdt Reciprocal of the timestep (`rdt=0` implies steady-
301-
* state.)
300+
* @param[in] rdt Reciprocal of the timestep (`rdt=0` implies steady-state.)
302301
*/
303302
void eval(size_t jGlobal, double* xGlobal, double* rsdGlobal,
304303
integer* diagGlobal, double rdt) override;
@@ -353,8 +352,8 @@ class StFlow : public Domain1D
353352
*
354353
* Axisymmetric flame:
355354
* The continuity equation propagates information from right-to-left.
356-
* The @f$ \rho u @f$ at point 0 is dependent on @f$ \rho u @f$ at point 1 but not
357-
* on @f$ \dot{m} @f$ from the inlet.
355+
* The @f$ \rho u @f$ at point 0 is dependent on @f$ \rho u @f$ at point 1,
356+
* but not on @f$ \dot{m} @f$ from the inlet.
358357
*
359358
* Freely-propagating flame:
360359
* The continuity equation propagates information away from a fixed temperature
@@ -363,16 +362,18 @@ class StFlow : public Domain1D
363362
* Unstrained flame:
364363
* A specified mass flux; the main example being burner-stabilized flames.
365364
*
366-
* The default boundary condition for the continuity equation is zero velocity
367-
* (@f$ u @f$) at the left and right boundary.
365+
* The default boundary condition for the continuity equation is
366+
* (@f$ u = 0 @f$) at the left and right boundary.
368367
*
369-
* @param [in] x State vector, includes variables like temperature, density, etc.
370-
* @param [out] rsd Residual vector that stores the continuity equation residuals.
371-
* @param [out] diag Diagonal matrix that controls whether an entry has a
372-
* time-derivative (used by the solver).
373-
* @param [in] rdt Reciprocal of the timestep.
374-
* @param [in] jmin The index for the starting point in the grid.
375-
* @param [in] jmax The index for the ending point in the grid.
368+
* @param[in] x Local domain state vector, includes variables like temperature,
369+
* density, etc.
370+
* @param[out] rsd Local domain residual vector that stores the continuity
371+
* equation residuals.
372+
* @param[out] diag Local domain diagonal matrix that controls whether an entry
373+
* has a time-derivative (used by the solver).
374+
* @param[in] rdt Reciprocal of the timestep.
375+
* @param[in] jmin The index for the starting point in the local domain grid.
376+
* @param[in] jmax The index for the ending point in the local domain grid.
376377
*/
377378
virtual void evalContinuity(double* x, double* rsd, int* diag,
378379
double rdt, size_t jmin, size_t jmax);
@@ -390,6 +391,8 @@ class StFlow : public Domain1D
390391
* terms for time and spatial variations of radial velocity (@f$ V @f$). The
391392
* default boundary condition is zero radial velocity (@f$ V @f$) at the left
392393
* and right boundary.
394+
*
395+
* For argument explanation, see evalContinuity().
393396
*/
394397
virtual void evalMomentum(double* x, double* rsd, int* diag,
395398
double rdt, size_t jmin, size_t jmax);
@@ -407,6 +410,8 @@ class StFlow : public Domain1D
407410
* axisymmetric flows. The lambda equation propagates information from
408411
* left-to-right. The default boundary condition is @f$ \Lambda = 0 @f$
409412
* at the left and zero flux at the right boundary.
413+
*
414+
* For argument explanation, see evalContinuity().
410415
*/
411416
virtual void evalLambda(double* x, double* rsd, int* diag,
412417
double rdt, size_t jmin, size_t jmax);
@@ -426,6 +431,8 @@ class StFlow : public Domain1D
426431
* chemical reactions and diffusion. Default is zero temperature (@f$ T @f$)
427432
* at the left and right boundaries. These boundary values are updated by the
428433
* specific boundary object connected to the domain.
434+
*
435+
* For argument explanation, see evalContinuity().
429436
*/
430437
virtual void evalEnergy(double* x, double* rsd, int* diag,
431438
double rdt, size_t jmin, size_t jmax);
@@ -441,6 +448,8 @@ class StFlow : public Domain1D
441448
* The species equations include terms for temporal and spatial variations
442449
* of species mass fractions (@f$ Y_k @f$). The default boundary condition is zero
443450
* flux for species at the left and right boundary.
451+
*
452+
* For argument explanation, see evalContinuity().
444453
*/
445454
virtual void evalSpecies(double* x, double* rsd, int* diag,
446455
double rdt, size_t jmin, size_t jmax);
@@ -451,6 +460,8 @@ class StFlow : public Domain1D
451460
* The electric field equation is implemented in the IonFlow class. The default
452461
* boundary condition is zero electric field (@f$ E @f$) at the boundary,
453462
* and @f$ E @f$ is zero within the domain.
463+
*
464+
* For argument explanation, see evalContinuity().
454465
*/
455466
virtual void evalElectricField(double* x, double* rsd, int* diag,
456467
double rdt, size_t jmin, size_t jmax);

0 commit comments

Comments
 (0)