Skip to content

Changes in SETUP= masstransfer #644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Apr 26, 2025
Merged

Conversation

analulujg
Copy link
Contributor

Type of PR:
modification to existing code

Description:
Changes in steup_masstransfer.f90:

  • Add flag 'sink_off' to replace sink particles with fixed gravitational potentials
  • Add flag 'use_mesa_file' to change between mass transfer rate constant or get mass transfer rate from mesa file (variable mdot)

Changes in injection_masstrasfer.f90:

  • New subroutine 'read_masstransferrate' in module readwrite_mesa
  • New way of injecting particles due to variable mdot.
  • When using gravitational potentials, we have added delete subroutine inside radius to simulate accretion.

Testing:
~/phantom/scripts/writemake.sh masstransfer > Makefile
make; make setup
./phantomsetup mt.setup
./phantom mt.in
Use file for variable mdot: test_data.txt

Did you run the bots? no

Did you update relevant documentation in the docs directory? no

themikelau and others added 27 commits July 2, 2024 09:25
… a linear interpolation to find the required mass trasnfer rate at every time step
…eparation changes everytime step to match the density needed when we increase the mass transfer rate
@themikelau themikelau merged commit 2fb2a5b into danieljprice:master Apr 26, 2025
192 checks passed
@themikelau themikelau deleted the masstransfer branch April 26, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants