field-nanoshell.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #! /bin/sh
  2. #
  3. # Copyright (C) 2009-2015 Ovidio Peña Rodríguez <ovidio@bytesfall.com>
  4. # Copyright (C) 2013-2015 Konstantin Ladutenko <kostyfisik@gmail.com>
  5. #
  6. # This file is part of scattnlay
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation, either version 3 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # The only additional remark is that we expect that all publications
  19. # describing work using this software, or all commercial products
  20. # using it, cite the following reference:
  21. # [1] O. Pena and U. Pal, "Scattering of electromagnetic radiation by
  22. # a multilayered sphere," Computer Physics Communications,
  23. # vol. 180, Nov. 2009, pp. 2348-2354.
  24. #
  25. # You should have received a copy of the GNU General Public License
  26. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27. # This test case calculates the electric field in the
  28. # XY plane, for a silver nanoshell embedded in water.
  29. # Refractive index values correspond to the wavelength
  30. # where maximum of the surface plasmon resonance (and,
  31. # hence, of electric field) is expected.
  32. PROGRAM='../../../fieldnlay'
  33. $PROGRAM -l 2 0.38989409 1.16177963 0.00000000 0.46787291 0.42850284 5.47718289 -p -1.55957635 1.55957635 501 -1.55957635 1.55957635 501 0.00000000 0.00000000 1