Open Francyrad opened 9 months ago
the limitation of the setup you are using is that you have to set the true anomaly (f, in degrees) to specify the position of the star prior to the encounter. The value you have chosen probably puts the star close to -infinity. Would suggest you have a look at the distance between the two stars from your initial setup and adjust the value of f accordingly
The star is not closed to infinity, they are at a distance of 30 solar radius...
The problem is also present when I try to relax the star running the code. The repository that I'm using is some months old, tomorrow I will try the newest and let you know. In case, can you please try to run the code in your laptop? That situation is very weird :(
Thank you for the availability
Here i'm again... I installed the new version of the code and the problem is still present: the simulation is impossibly slow using both polytropes and MESA. I have no idea why, i'm sure that months ago my simulation was super fast..
I attach here the setup and the sim setup, am i doing something wrong?
As you can see here, one of the star is not close to infinity:
I have no idea where the problem is, maybe in the setup? I just followed the guide exporting:
SYSTEM = gfortran
export OMP_SCHEDULE="dynamic"
export OMP_STACKSIZE=512M
ulimit -s unlimited
@danieljprice can you please try to run this setup? I have no idea where the problem is:
# input file for binary setup routines
# units
mass_unit = solarm ! mass unit (e.g. solarm,jupiterm,1e6*solarm)
dist_unit = au ! distance unit (e.g. au,pc,kpc,0.1pc)
# options for star 1
iprofile1 = 2 ! 0=Sink,1=Unif,2=Poly,3=Dens,4=KEPL,5=MESA,6=Pie
Mstar1 = 1.000 ! mass of star 1 [Msun]
Rstar1 = 1.000 ! radius of star1 [Rsun]
np1 = 100000 ! number of particles
# options for star 2
iprofile2 = 2 ! 0=Sink,1=Unif,2=Poly,3=Dens,4=KEPL,5=MESA,6=Pie
Mstar2 = 0.55 ! mass of star 2 [Msun]
Rstar2 = 0.55 ! radius of star2 [Rsun]
# orbit settings
a = -0.720 ! semi-major axis (e.g. 1 au) or period (e.g. 10*days)
ecc = 1.030 ! eccentricity
inc = 0. ! inclination (deg)
O = 90. ! position angle of ascending node (deg)
w = 180. ! argument of periapsis (deg)
f = -100. ! initial true anomaly (180=apoastron)
corotate = F ! set stars in corotation
# relaxation options
relax = T ! relax stars into equilibrium
tol_ekin = 1.000E-07 ! tolerance on ekin/epot to stop relaxation
maxits = 1000 ! maximum number of relaxation iterations
Thank you for help and availability
Francesco
Dear users
I wanted to try the new feature to try hyperbolic star collisions like in Starsmasher. However, there are issues: the simulations are impossibly slow, and I hope for my errors.
I attach both the setup and the sim parameters:
the sym parameters:
The simulation works at full power on Apple Silicon (M1Pro), and it's impossibly slow:
Am I doing something wrong? I remember once (older version before the hyperbolic implementation) that i ran a binary example with eccentricity = 1 and the simulation was done in a matter of minutes with around 200k particles... Now it can't even run fast 2 identical stars with an eccentricity of 0.
Best
Francesco