To cite this code, if you use it in your work, please use the following DOI:
A repository containing an implementation of Hunts analytical solution (using the exponential implementation of Ni et. al.) that can be used to generate anaytical solutions for Hunt and Shercliff flow cases in channel flow. For Further information please see the References.
The function "sum()" returns the sum over the Fourier series. An example application is included in the main function of the cpp file.
- Hunt, J. (1965). Magnetohydrodynamic flow in rectangular ducts. Journal of Fluid Mechanics, 21(4), 577-590. doi:10.1017/S0022112065000344
- Ni, M.J., Munipalli, R., Huang, P., Morley, N.B. and Abdou, M.A., 2007. A current density conservative scheme for incompressible MHD flows at a low magnetic Reynolds number. Part II: On an arbitrary collocated mesh. Journal of Computational Physics, 227(1), pp.205-228.
- Tassone, A. http://dx.doi.org/10.13140/RG.2.2.12839.55201