# Problems and operators A problem is stated with `pm.Problem`, and the operators `pm.laplacian`, `pm.grad`, `pm.div` and `pm.normal_derivative` write its equations and conditions in the coordinates of its domain. ## The problem ```{eval-rst} .. autoclass:: pdemagic.Problem :members: to_dict, to_json ``` ## Operators Without coordinates the operators stay unevaluated, and the problem gives them their meaning in the coordinates of its domain: Cartesian, polar, spherical or cylindrical. | Operator | Where it stands | |---|---| | `pm.laplacian(u)` | In an equation, on every domain. On a round domain it is the only way to write the derivatives in space. | | `pm.grad(u)` | Inside `pm.div`, times a coefficient. | | `pm.div(a * pm.grad(u))` | In an equation: a medium, a coefficient that varies inside the derivatives. | | `pm.normal_derivative(u)` | In a boundary condition: the slope along the normal that points out of the domain, on a piece of a region and on a face of a box or of a round domain. | ```{eval-rst} .. autofunction:: pdemagic.laplacian .. autofunction:: pdemagic.grad .. autofunction:: pdemagic.div .. autofunction:: pdemagic.normal_derivative ``` See also: [Problems, unknowns and equations](../topics/problems.md), [Boundary conditions](../topics/boundary-conditions.md), and [What is solved where](equations.md) for the equations that a problem may hold on each domain.