Lemma is an Electromagnetics API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hankeltransform.h 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* This file is part of Lemma, a geophysical modelling and inversion API */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /**
  6. @file
  7. @author Trevor Irons
  8. @date 01/28/2010
  9. @version $Id: hankeltransform.h 270 2015-08-24 15:45:41Z tirons $
  10. **/
  11. #ifndef __hankeltransform_h
  12. #define __hankeltransform_h
  13. #include "KernelEM1DSpec.h"
  14. #include "KernelEM1DManager.h"
  15. namespace Lemma {
  16. class KernelEM1DBase;
  17. // ===================================================================
  18. // Class: HankelTransform
  19. /// \brief Pure abstract class for hankel transforms
  20. /// \details
  21. // ===================================================================
  22. class HankelTransform : public LemmaObject {
  23. public:
  24. /// Prints out basic info about the class
  25. friend std::ostream &operator<<(std::ostream &stream,
  26. const HankelTransform &ob);
  27. // ==================== LIFECYCLE =======================
  28. //static HankelTransform* New();
  29. //void Delete();
  30. // ==================== OPERATORS =======================
  31. // ==================== OPERATIONS =======================
  32. /// @todo this is actually a deprecated function. Only Chave
  33. /// uses this.
  34. /// Performs numerical integration using Gaussian quadrature
  35. /// ikk: type of kernel depending on source and receiver couple
  36. /// imode: a switch for TE(0) and TM(1) mode
  37. /// itype: order of Bessel function
  38. /// rho is argument to integral
  39. /// wavef is the propogation constant of free space
  40. /// = omega * sqrt( EP*AMU ) amu = 4 pi e-7 ep = 8.85e-12
  41. virtual Complex Zgauss(const int &ikk, const EMMODE &imode,
  42. const int &itype, const Real &rho,
  43. const Real &wavef, std::shared_ptr<KernelEm1DBase> Kernel)=0;
  44. /// Computes related kernels, if applicable, otherwise this is
  45. /// just a dummy function.
  46. virtual void ComputeRelated(const Real& rho, KernelEm1DBase* Kernel);
  47. virtual void ComputeRelated(const Real& rho, std::vector< std::shared_ptr<KernelEM1DBase> > KernelVec);
  48. virtual void ComputeRelated(const Real& rho, std::shared_ptr<KernelEM1DManager> KernelManager);
  49. // ==================== ACCESS =======================
  50. // ==================== INQUIRY =======================
  51. // ==================== DATA MEMBERS =======================
  52. protected:
  53. // ==================== LIFECYCLE =======================
  54. /// Default protected constructor.
  55. HankelTransform (const std::string &name);
  56. /// Default protected constructor.
  57. ~HankelTransform ();
  58. private:
  59. }; // ----- end of class HankelTransform -----
  60. }
  61. #endif // __hankeltransform_h