py_nmie.h 2.8 KB

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