Code Monkey home page Code Monkey logo

hybrid_3d_buf's Introduction

Hybrid space plasma simulator

It only simulates Pluto, but that may change in the future.

Compiling

First build and install OpenMPI. We're using version 1.4. You might be able to ge more recent versions to work, but I've had problems with 1.8.

To build the hybrid code just run make This will produce a binary called hybrid that can be executed using mpirun -n 24 Right now it works well with the Intel compiler, but we're working on improving portability.

Usage

The most commonly used settings are in inputs.dat, and dimensions.f. Yes you will have to recompile if you change the dimensions of the simulation.

Right now that's about all there is to it. It simulates Pluto, if you want something else you have to dig into the codebase and edit it. There's currently no convenient way to change most simulation parameters.

In fact it probably won't work at all unless you use 24 processes. (i.e. mpirun -n 24 hybrid)

If you get a segmentation fault shortly after startup try increasing the shell stack size. In bash or zsh try ulimit -s unlimited some systems have a hard limit on stack size. In that case try ulimit -s 65532

Organization

Program starts in maind.f, but the bulk of the code is in gutsp.f. Gutsp.f is the guts of the program for the kinetic simulation. Gutsf.f is the guts of the program for the fluid simulation. Comments in maind.f explain many of the variable names.

Contact

Project lead: [email protected]

hybrid_3d_buf's People

Contributors

npbarnes avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.