Coder Social home page Coder Social logo

rapster's People

Contributors

kkritos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rapster's Issues

star-star binaries created by triple-star interactions

the variable aStarStar_min seems not to have been defined here, so the condition of the if will not be satisfied all the time.

Rapster/rapster.py

Lines 868 to 889 in 6b85409

if kTripleStar>0 and aStarStar_min < aStarStar_har: # new hard binary stars form;
# also make sure the hardness sma is above the minimum allowed binary star separation
for i in range(0,kTripleStar):
# sample hardness ratio:
etaValue = hardness_sampler(np.random.rand(), mAvg, mAvg, mAvg, mAvg, 0.4, etamin=5)
# new sma:
smaNEW = G_Newt*mAvg/etaValue/veloDisp(mAvg,1,mAvg,Mcl,rh)**2
# make sure stars in binary are not very close together; if so, draw hardness ratio again:
while smaNEW < aStarStar_min:
# sample hardness ratio:
etaValue = hardness_sampler(np.random.rand(), mAvg, mAvg, mAvg, mAvg, 0.4, etamin=5)
# new sma:
smaNEW = G_Newt*mAvg/etaValue/veloDisp(mAvg,1,mAvg,Mcl,rh)**2
# append new sma:
aStarStar = np.append(aStarStar,smaNEW)

t_form of BBHs from ZLK merger (when triple systems exist) is always zero

i = i - 1

the update of running iteration index needs to be moved after

Rapster/rapster.py

Lines 2319 to 2322 in f21140d

mergers = np.append(mergers,[[4,aIn,np.sqrt(1-epsilonMIN),m0,m1,s0,s1,g0,g1,\
triples[i][15],t+tLocal+tauZLKmerger,triples[i][16],redd(t_lbb(zClForm)-t-tLocal-tauZLKmerger),\
0,0,np.min([m0,m1])/np.max([m0,m1]),chiEff,theta0,theta1,dPhi,\
mRem,sRem,gRem,vGW,jBH_0,jBH_1]],axis=0)

when use triples[i][15]

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.