# PDE equation in spherical coordinates

by vibe3
Tags: coordinates, equation, spherical
 P: 23 I am looking for ideas on how to solve this equation: $$\nabla \cdot \left( \vec{A} + F \hat{b} \right) = 0$$ where $\vec{A}$ and $\hat{b}$ are known vectors of $(r,\theta,\phi)$ and $F$ is the unknown scalar function to be determined. Also, $\nabla \cdot \hat{b} = 0$. So the equation can also be expressed as $$(\nabla F) \cdot \hat{b} + \nabla \cdot \vec{A} = 0$$ I am trying to solve this numerically, and so I have b and A on a 3D grid. But I would like to avoid using a 3D finite differencing scheme, if there is a way to simplify this to an algebraic equation. I'm thinking it may be possible to expand these vectors in some sort of basis (like vector spherical harmonics?) along with some radial basis functions and then solve for the coefficients of $F$ in terms of the coefficients of $\vec{A}$ or something like that. Does anyone have experience with this type of equation and would know an appropriate basis to use?