Coder Social home page Coder Social logo

orbitpp's Introduction


Basic introduction to orbitpp


This code is developed to process ORBIT-RF output, which is object oriented based on FORTRAN 2003+. PERSONAL USE ONLY !!!


Design of code


The code has two classes in gerneral: Data classes & Data processing classes.

Data class:

  1. geometry : collection of equilibrium variables and related functions
  2. trajectory : collection of test particle history and related functions
  3. momenta : collection of statistical data and related functions
  4. distribution : collection of particle distribution and related functions
  5. aux_distribution : derived class of distribution to collect particle across spiecies

Data processing class:

  1. statistics : collection of functions to make statistics on distribution object based on linear schedule
  2. aux_statistics : derived class of statistics, linear schedule replaced by exponential weight assignment


Usage of code


Taking geometry class as an example:

  1. first declare a pointer: class(geometry), pointer :: gg
  2. then allocation: allocate(geometry :: gg)
  3. then constructor: call gg % init(nsp, nst)
  4. then load data: call gg % ld_data(fid)
  5. then wrt output optionally, write out what you need: call gg % wrt('psip')
  6. finally deallocation, very important and never forget it: deallocate(gg) Note: classes have different ways to initialize and subroutines to write output, you need to know these by consulting the type definition in source code.


graphical ouput


The default tool is Gnuplot.

basic plotting commands:

  • 1d : plot 'filename' u 1:2 w l plot 'filename' u 1:2 w p plot 'filename' u 1:2 w lp plot 'filename' u 1:2 w boxes
  • 2d map : splot 'filename' u 1:2:3 w pm3d plot 'filename' u 1:2:3 w image

For detailed usage: http://www.gnuplot.info/

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.