Skip to content

Commit 71732ed

Browse files
committed
Update documentation on Integral operator to give additional details on different coordinate systems (pybamm-team#4595)
1 parent 3421fac commit 71732ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/pybamm/expression_tree/unary_operators.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,13 @@ class Integral(SpatialOperator):
611611
A node in the expression tree representing an integral operator.
612612
613613
.. math::
614-
I = \\int_{a}^{b}\\!f(u)\\,du,
614+
I = \\int_{u_{min}}^{u_{max}}\\!f(u)\\,dq,
615615
616-
where :math:`a` and :math:`b` are the left-hand and right-hand boundaries of
617-
the domain respectively, and :math:`u\\in\\text{domain}`.
616+
where :math:`u\\in\\text{domain}` is a spatial variable, :math:`u_{min}` and :math:`u_{max}` are the values of
617+
:math:`u` at the left-hand and right-hand boundaries of the domain respectively, and :math:`dq` is given by, \n
618+
:math:`dq=du` for cartesian coordinates, \n
619+
:math:`dq=2\pi udu` for cylindrical coordinates, \n
620+
:math:`dq=4\pi u^2 du` for spherical coordinates.
618621
619622
Parameters
620623
----------

0 commit comments

Comments
 (0)