Skip to content
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

Enhancements and cleanup related to star setup #495

Merged
merged 34 commits into from
Feb 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3a15cba
(#463) bug fixes with particle mass setting in asteroidwind
danieljprice Oct 23, 2023
badffbe
(asteroidwind) delete unused scaling_set variable
danieljprice Oct 23, 2023
b026c03
(star) set units from units module
themikelau Nov 19, 2023
26b843c
(star) add iopacity_type as setup option
themikelau Nov 19, 2023
f2e57de
(star) write gmw into input file when using ieos=12
themikelau Nov 19, 2023
b849491
(setfixedentropycore) clean up and make shooting more robust
themikelau Nov 19, 2023
659c9b0
(star) new core-softening module that prescribes temperature profile …
themikelau Nov 19, 2023
be35482
(star) use more robust mass coordinate calculation in softened core s…
themikelau Nov 20, 2023
f485f01
(star) add warnings about density inversion in softened core shooting…
themikelau Nov 20, 2023
57ee24e
(eos) fixed bug where using radiation with non-ideal EoS does not fai…
themikelau Nov 21, 2023
9df54a9
(read_star_profile) set hsoft=rcore/radkern instead of hardwiring rad…
themikelau Nov 21, 2023
d29b0ea
(read_star_profile) for mesa profile, calculate u and T using ieos=12…
themikelau Nov 21, 2023
93c6e67
(fixedlumcore) remove redundant MESA EoS initialisation to read opaci…
themikelau Nov 21, 2023
083d138
(set_softened_core) take eos_type from input instead of using ieos fr…
themikelau Nov 21, 2023
8a6d87e
(setfixedlumcore) take eos_type as input instead of using ieos from e…
themikelau Nov 21, 2023
27a4101
(star) when reading profile from MESA, move solving for u,T profiles …
themikelau Nov 21, 2023
95807fd
(star) add option to re-bin core region of MESA profile when solving …
themikelau Nov 21, 2023
f033c9d
(star) core softening subroutines take eos_type as input instead of u…
themikelau Nov 21, 2023
aa4c403
(fixedlumcore) enhancements to luminosity function
themikelau Nov 21, 2023
6dd1f57
(set_softened_core) bug fixes
themikelau Nov 21, 2023
b80946e
(setfixedentropycore) add initialisation of ierr
themikelau Nov 21, 2023
cbe8652
(set_softened_core) initialise ierr
themikelau Nov 22, 2023
f0bd64e
(readwrite_mesa) increase output precision of write_mesa to match MES…
themikelau Nov 28, 2023
0c907f9
(ptmass_heating) add option to use smoothing kernel to distribute hea…
themikelau Nov 28, 2023
21ee5a3
(ptmass) omp parallelise calculation of enclosed mass and add weight …
themikelau Nov 28, 2023
162bdb2
add query function to check if single ptmass has heating
themikelau Nov 28, 2023
bf242dc
(get_idealplusrad_rhofrompresT) minor tweak to expression
themikelau Nov 28, 2023
a57ae78
(fixed_lum_core) shoot for profile for arbitrary heating kernel
themikelau Nov 29, 2023
2042002
(star) remove unneeded eos initialisation before core softening
themikelau Nov 29, 2023
41c8c06
Merge branch 'master' of github.com:danieljprice/phantom into star
themikelau Jan 30, 2024
cc68da2
remove changes that had to do with fixed luminosity core, which was a…
themikelau Jan 30, 2024
591bcec
(fileutils) read data file where col labels could be separated by any…
themikelau Jan 30, 2024
c8a5308
comment out unused ptmass_heating subroutines to pass build test
themikelau Jan 30, 2024
c0a313b
(star) fix single precision warning
themikelau Jan 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
(read_star_profile) set hsoft=rcore/radkern instead of hardwiring rad…
…kern=2
themikelau committed Nov 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 9df54a92113e0d7e9c83d93444d87132c8ebab59
3 changes: 2 additions & 1 deletion src/setup/set_star_utils.f90
Original file line number Diff line number Diff line change
@@ -69,6 +69,7 @@ subroutine read_star_profile(iprofile,ieos,input_profile,gamma,polyk,ui_coef,&
use extern_densprofile, only:read_rhotab_wrapper
use eos_piecewise, only:get_dPdrho_piecewise
use eos, only:get_mean_molecular_weight,calc_temp_and_ene,init_eos
use kernel, only:radkern
use rho_profile, only:rho_uniform,rho_polytrope,rho_piecewise_polytrope,rho_evrard,func
use readwrite_mesa, only:read_mesa,write_mesa
use readwrite_kepler, only:read_kepler_file
@@ -128,7 +129,7 @@ subroutine read_star_profile(iprofile,ieos,input_profile,gamma,polyk,ui_coef,&
mu = 0.
if (ierr /= 0) call fatal('setup','error in reading stellar profile from'//trim(input_profile))
call set_softened_core(isoftcore,isofteningopt,rcore,mcore,Lstar,r,den,pres,mtab,Xfrac,Yfrac,ierr) ! sets mcore, rcore
hsoft = 0.5 * rcore
hsoft = rcore/radkern
! solve for temperature and energy profile
do i=1,size(r)
mu(i) = get_mean_molecular_weight(Xfrac(i),1.-Xfrac(i)-Yfrac(i)) ! only used in u, T calculation if ieos==2,12