Coder Social home page Coder Social logo

yoshiya-usui / sinusoidal2dana Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.06 MB

Program to calculate analytical MT response functions for a 2-D sinusoidal interface

License: MIT License

MATLAB 4.07% C++ 95.93%
magnetotellurics topography bathymetry analytical-solution

sinusoidal2dana's Introduction

Function

This program calculates analytical MT apparent resistivity, phasae, and vertical magnetic transfer functions for a 2-D sinusoidal interface. The algorithm is based on the following studies.

K. Schwalenberg, R. N. Edwards, The effect of seafloor topography on magnetotelluric fields: an analytical formulation confirmed with numerical results, Geophysical Journal International, Volume 159, Issue 2, November 2004, Pages 607โ€“621, https://doi.org/10.1111/j.1365-246X.2004.02280.x

Yoshiya Usui, Takafumi Kasaya, Yasuo Ogawa, Hisanori Iwamoto, Marine magnetotelluric inversion with an unstructured tetrahedral mesh, Geophysical Journal International, Volume 214, Issue 2, August 2018, Pages 952โ€“974, https://doi.org/10.1093/gji/ggy171

Originally, Schwalenberg and Edwards (2004) proposed the formulation, and later, Usui et al. (2018) modified the formulation for the TM-mode.

The results of the program were used to verify 3-D magnetotelluric inversion code FEMTIC (https://github.com/yoshiya-usui/femtic.git).

How to use

  1. Conductivities, amplitude, and wavelength are specified by sigma1, sigma2, delta, and lambda in "cal.m" and those in calcBetaGammaTE and calcBetaGammaTM of "sinusoidal2DAna.cpp".

  2. Calculate modified Bessel function by a MATLAB program "cal.m". Periods (sec) should be specified by the variable T in "cal.m".

  3. Calculate analytical response functions by a C++ program "sinusoidal2DAna.cpp". In executing the program, you need to specify the file created by "cal.m", the file name in which location of observation points are written, and the period(sec) by its arguments as follows.

    sinusoidal2DAna "File name of modified Bessel function" "File name of observation points" "Period(sec)"

File format

Input file about observation points (arbitrary name)

[Number of observation points]

[X-coordinate(m) of the 1st point]

[X-coordinate(m) of the 2nd point]

[X-coordinate(m) of the 3rd point]

...

Output file for the TE-mode (TE.txt)

[X-coordinate(m) of the 1st point] [Z-coordinate(m) of the 1st point] [apparent resistivity(Ohm-m) of the upper region] [phase(deg.) of the upper region] [apparent resistivity(Ohm-m) of the lower region] [phase(deg.) of the lower region] [Re(Tzx) of the upper region] [Im(Tzx) of the upper region] [Re(Tzy) of the lower region] [Im(Tzy) of the lower region]

[X-coordinate(m) of the 2nd point] [Z-coordinate(m) of the 2nd point] [apparent resistivity(Ohm-m) of the upper region] [phase(deg.) of the upper region] [apparent resistivity(Ohm-m) of the lower region] [phase(deg.) of the lower region] [Re(Tzx) of the upper region] [Im(Tzx) of the upper region] [Re(Tzy) of the lower region] [Im(Tzy) of the lower region]

[X-coordinate(m) of the 3rd point] [Z-coordinate(m) of the 3rd point] [apparent resistivity(Ohm-m) of the upper region] [phase(deg.) of the upper region] [apparent resistivity(Ohm-m) of the lower region] [phase(deg.) of the lower region] [Re(Tzx) of the upper region] [Im(Tzx) of the upper region] [Re(Tzy) of the lower region] [Im(Tzy) of the lower region]

...

Output file for the TM-mode (TM.txt)

[X-coordinate(m) of the 1st point] [Z-coordinate(m) of the 1st point] [apparent resistivity(Ohm-m) of the upper region] [phase(deg.) of the upper region] [apparent resistivity(Ohm-m) of the lower region] [phase(deg.) of the lower region]

[X-coordinate(m) of the 2nd point] [Z-coordinate(m) of the 2nd point] [apparent resistivity(Ohm-m) of the upper region] [phase(deg.) of the upper region] [apparent resistivity(Ohm-m) of the lower region] [phase(deg.) of the lower region]

[X-coordinate(m) of the 3rd point] [Z-coordinate(m) of the 3rd point] [apparent resistivity(Ohm-m) of the upper region] [phase(deg.) of the upper region] [apparent resistivity(Ohm-m) of the lower region] [phase(deg.) of the lower region]

...

sinusoidal2dana's People

Contributors

yoshiya-usui avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.