1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- /* This file is part of Lemma, a geophysical modelling and inversion API */
-
- /* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
- /**
- @file
- @author Trevor Irons
- @date 01/28/2010
- **/
-
- #ifndef __hankeltransform_h
- #define __hankeltransform_h
-
- #include "KernelEM1DSpec.h"
- #include "KernelEM1DManager.h"
-
- namespace Lemma {
-
- class KernelEM1DBase;
-
- // ===================================================================
- // Class: HankelTransform
- /// \brief Abstract class for hankel transforms
- /// \details
- // ===================================================================
- class HankelTransform : public LemmaObject {
-
- public:
-
- /// Prints out basic info about the class
- friend std::ostream &operator<<(std::ostream &stream,
- const HankelTransform &ob);
-
- // ==================== LIFECYCLE =======================
-
- // ==================== OPERATORS =======================
-
- // ==================== OPERATIONS =======================
-
- /// @todo this is actually a deprecated function. Only Chave
- /// uses this.
- /// Performs numerical integration using Gaussian quadrature
- /// ikk: type of kernel depending on source and receiver couple
- /// imode: a switch for TE(0) and TM(1) mode
- /// itype: order of Bessel function
- /// rho is argument to integral
- /// wavef is the propogation constant of free space
- /// = omega * sqrt( EP*AMU ) amu = 4 pi e-7 ep = 8.85e-12
- virtual Complex Zgauss(const int &ikk, const EMMODE &imode,
- const int &itype, const Real &rho,
- const Real &wavef, std::shared_ptr<KernelEM1DBase> Kernel)=0;
-
- /// Computes related kernels, if applicable, otherwise this is
- /// just a dummy function.
- virtual void ComputeRelated(const Real& rho, std::shared_ptr<KernelEM1DBase> Kernel);
-
- virtual void ComputeRelated(const Real& rho, std::vector< std::shared_ptr<KernelEM1DBase> > KernelVec);
-
- virtual void ComputeRelated(const Real& rho, std::shared_ptr<KernelEM1DManager> KernelManager);
-
- // ==================== ACCESS =======================
-
- // ==================== INQUIRY =======================
- /** Returns the name of the underlying class, similiar to Python's type */
- virtual inline std::string GetName() const {
- return CName;
- }
-
- // ==================== DATA MEMBERS =======================
-
- protected:
-
- // ==================== LIFECYCLE =======================
-
- /// Default protected constructor.
- HankelTransform ( );
-
- /// Default protected constructor.
- ~HankelTransform ( );
-
- private:
-
- /** ASCII string representation of the class name */
- static constexpr auto CName = "HankelTransform";
-
- }; // ----- end of class HankelTransform -----
-
- }
-
- #endif // __hankeltransform_h
|