Git Product home page Git Product logo

3dmhd-corona's Introduction

3DMHD-Corona

3D MHD model of solar coronal loop structure that was developed for a master thesis defended in summer 2012 by George Miloshevich.

Upflow trapped in magnetic arcade

Introduction

This thesis explores thermalization of chromospheric upflows as they reach solar corona and are trapped in the magnetic field loops. The crucial mechanism behind this transfer of kinetic energy to heat is the ability of supersonic flows to steepen and generate shorter scales which can dissipate. The full treatment would require at least two-fluid effects which have the relevant small scales. However for simulation purposes we will limit ourselves to 3D MHD model of supersonic flows with adiabatic isothermal closure and no Hall term and leave these effects for future developments. Then the primary challenge is to accurately model such high Mach number flows which we achieve by using a combination of implicit MacCormack scheme and artificial viscosity. The project culminates in the illustration of coronal loop structure formation and heating via numerical simulation.

Mathematical model

$$ n $$ Evolution of density: $$ \frac{\partial n}{\partial t}+\partial_j\left(n v_j\right)=0 $$ Evolution of momentum: $$ \frac{\partial}{\partial t}\left(n v_i\right)+\partial_j\left(n v_i v_j+\left(p+\frac{B^2}{2}\right) \delta_{i j}-B_i B_j\right)=0 $$ Evolution of magnetic field: $$ \frac{\partial B_i}{\partial t}+\partial_j\left(v_j B_i-B_j v_i\right)=0 $$

Technical Details

The simulation is written in C embedded in MATLAB 2012 for flexibility. C library uses mex.h which is provided via MATLAB. For more information about how to use this approach see mex files. The point to retain is that the simulation can be launched directly from MATLAB as though it was supported by MATLAB and the output is written to disk and RAM.

Numerics

The scripts rely on MacCormack method for time integration and artificial viscosity for shock capturing. The adaptation is based on the famous book Numerical Recipes in C. The MacCormack method is a two-step predictor-corrector method that is second order accurate in both space and time. The artificial viscosity is a numerical technique that is used to capture shocks. The code runs on a single core.

3dmhd-corona's People

Contributors

georgemilosh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

yigitsasmaz

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.