Main Lemma Repository
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

hankeltransform.h 3.3KB

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. @version $Id: hankeltransform.h 270 2015-08-24 15:45:41Z tirons $
  10. **/
  11. #ifndef __hankeltransform_h
  12. #define __hankeltransform_h
  13. //#include "kernelem1dbase.h"
  14. #include "KernelEM1DSpec.h"
  15. #include "KernelEM1DManager.h"
  16. namespace Lemma {
  17. class KernelEM1DBase;
  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, std::shared_ptr<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< std::shared_ptr<KernelEM1DBase> > KernelVec);
  49. virtual void ComputeRelated(const Real& rho, std::shared_ptr<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