Main Lemma Repository
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

HankelTransform.h 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. **/
  10. #ifndef __hankeltransform_h
  11. #define __hankeltransform_h
  12. #include "KernelEM1DSpec.h"
  13. #include "KernelEM1DManager.h"
  14. namespace Lemma {
  15. class KernelEM1DBase;
  16. // ===================================================================
  17. // Class: HankelTransform
  18. /// \brief Abstract class for hankel transforms
  19. /// \details
  20. // ===================================================================
  21. class HankelTransform : public LemmaObject {
  22. public:
  23. /// Prints out basic info about the class
  24. friend std::ostream &operator<<(std::ostream &stream,
  25. const HankelTransform &ob);
  26. // ==================== LIFECYCLE =======================
  27. // ==================== OPERATORS =======================
  28. // ==================== OPERATIONS =======================
  29. /// @todo this is actually a deprecated function. Only Chave
  30. /// uses this.
  31. /// Performs numerical integration using Gaussian quadrature
  32. /// ikk: type of kernel depending on source and receiver couple
  33. /// imode: a switch for TE(0) and TM(1) mode
  34. /// itype: order of Bessel function
  35. /// rho is argument to integral
  36. /// wavef is the propogation constant of free space
  37. /// = omega * sqrt( EP*AMU ) amu = 4 pi e-7 ep = 8.85e-12
  38. virtual Complex Zgauss(const int &ikk, const EMMODE &imode,
  39. const int &itype, const Real &rho,
  40. const Real &wavef, std::shared_ptr<KernelEm1DBase> Kernel)=0;
  41. /// Computes related kernels, if applicable, otherwise this is
  42. /// just a dummy function.
  43. virtual void ComputeRelated(const Real& rho, std::shared_ptr<KernelEM1DBase> Kernel);
  44. virtual void ComputeRelated(const Real& rho, std::vector< std::shared_ptr<KernelEM1DBase> > KernelVec);
  45. virtual void ComputeRelated(const Real& rho, std::shared_ptr<KernelEM1DManager> KernelManager);
  46. // ==================== ACCESS =======================
  47. // ==================== INQUIRY =======================
  48. /** Returns the name of the underlying class, similiar to Python's type */
  49. virtual inline std::string GetName() const {
  50. return CName;
  51. }
  52. // ==================== DATA MEMBERS =======================
  53. protected:
  54. // ==================== LIFECYCLE =======================
  55. /// Default protected constructor.
  56. HankelTransform ( );
  57. /// Default protected constructor.
  58. ~HankelTransform ( );
  59. private:
  60. /** ASCII string representation of the class name */
  61. static constexpr auto CName = "HankelTransform";
  62. }; // ----- end of class HankelTransform -----
  63. }
  64. #endif // __hankeltransform_h