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

hankeltransform.h 3.2KB

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