py_nmie.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //**********************************************************************************//
  2. // Copyright (C) 2009-2015 Ovidio Pena <ovidio@bytesfall.com> //
  3. // Copyright (C) 2013-2015 Konstantin Ladutenko <kostyfisik@gmail.com> //
  4. // //
  5. // This file is part of scattnlay //
  6. // //
  7. // This program is free software: you can redistribute it and/or modify //
  8. // it under the terms of the GNU General Public License as published by //
  9. // the Free Software Foundation, either version 3 of the License, or //
  10. // (at your option) any later version. //
  11. // //
  12. // This program is distributed in the hope that it will be useful, //
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of //
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
  15. // GNU General Public License for more details. //
  16. // //
  17. // The only additional remark is that we expect that all publications //
  18. // describing work using this software, or all commercial products //
  19. // using it, cite the following reference: //
  20. // [1] O. Pena and U. Pal, "Scattering of electromagnetic radiation by //
  21. // a multilayered sphere," Computer Physics Communications, //
  22. // vol. 180, Nov. 2009, pp. 2348-2354. //
  23. // //
  24. // You should have received a copy of the GNU General Public License //
  25. // along with this program. If not, see <http://www.gnu.org/licenses/>. //
  26. //**********************************************************************************//
  27. #include <complex>
  28. #include <vector>
  29. int ScattCoeffs(const unsigned int L, const int pl, std::vector<double>& x, std::vector<std::complex<double> >& m,
  30. const int nmax, double anr[], double ani[], double bnr[], double bni[]);
  31. int nMie(const int L, const int pl, std::vector<double>& x, std::vector<std::complex<double> >& m,
  32. const int nTheta, std::vector<double>& Theta, const int nmax,
  33. double *Qext, double *Qsca, double *Qabs, double *Qbk, double *Qpr, double *g, double *Albedo,
  34. double S1r[], double S1i[], double S2r[], double S2i[]);
  35. int nField(const int L, const int pl, std::vector<double>& x, std::vector<std::complex<double> >& m, const int nmax,
  36. const int nCoords, std::vector<double>& Xp, std::vector<double>& Yp, std::vector<double>& Zp,
  37. double Erx[], double Ery[], double Erz[], double Eix[], double Eiy[], double Eiz[],
  38. double Hrx[], double Hry[], double Hrz[], double Hix[], double Hiy[], double Hiz[]);