Coder Social home page Coder Social logo

tianwen220 / libemmi_mgfd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yangpl/libemmi_mgfd

0.0 0.0 0.0 184.95 MB

3D CSEM modelling and inversion using multigrid frequency-domain solver

Shell 0.01% Python 0.03% C 0.43% Fortran 0.01% Gnuplot 0.01% Makefile 0.01% Roff 99.53%

libemmi_mgfd's Introduction

3D CSEM modelling and inversion using multigrid frequency-domain solver

Author: Pengliang Yang, [email protected] Department of Mathematics, Harbin Institute of Technology, China

Note: This modelling code requires installation of MPI (either mpich or openmpi), as it has a parallel computing idea in mind since its design, to make it work for inversion simultaneously with multiple sources.

#----------------------------------------------------

Instructions to run:

  1. go into /src to compile the code using makefile: make

Then the compiled executable will be placed at /bin

  1. test the code in the modelling template /run_modelling bash run.sh

All relevant parameters should be specified in run.sh, while the binary input resistivity should be prepared in advance.

Here I created a small Fortran code to generate acquisition files sources.txt, receivers.txt and a source-receiver connection table src_rec_table.txt.

The input resistivity was created by another Fortran code as binaries. You should prepare your own!

  1. Test and compare with emg3d. I assume you have looked at the emg3d website and have installed it properly. (Otherwise, please consult Dieter for the help) Then, you can try:

python3 emg3d_test.py Here, the input resistivity is in ASCII format, which will be created by my Fortran code. This aims to maintain consistency between the model you input for my code and emg3d.

  1. reproduce the 3D CSEM inversion experiment in /run_inversion. First you need to create observed data using the true resistivity model frho. Modify run.sh to set "mode=0 frho11=frho frho22=frho frho33=frho" and run "bash run.sh".

Then you can run inversion from a crude initial model frho_init. Modify run.sh to set "mode=1 frho11=frho_init frho22=frho_init frho33=frho_init" and run "bash run.sh".

libemmi_mgfd's People

Contributors

yangpl 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.