Code Monkey home page Code Monkey logo

pop2prime's Introduction

pop2prime

Post-processing of pop2prime simulation data to investigate BH growth.

The ds_dm_particles.h5 file is a dataset containing all the relevant fields of the chosen dark matter particles for
calculating the Bondi-Hoyle accretion rate. The field dict is:

"particle_id": dm_indices,
"position": dm_pos,
"mass": dm_pos_mass,
"density": dm_pos_den,
"temperature": dm_pos_temp,
"velocity_x": dm_pos_velx,
"velocity_y": dm_pos_vely,
"velocity z": dm_pos_velz,

The dataset is queried like:

import yt
dm_ds = yt.load("ds_dm_particles.h5")
dm_indices = dm_ds.data[("data", "particle_id")]

Once the particles ids have been gathered from a certain snapshot (e.g the final), the particles are traced back in
time. The mechanism for doing so is making a sphere centred on the halo and then querying the dm particles from that
instead of the entire dataset (this is time-intensive).

pop2prime's People

Contributors

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