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

Bugfix for dustfrac and dust-to-gas ratio in dustydisc setup #273

Merged
merged 11 commits into from
Mar 30, 2022
Prev Previous commit
Next Next commit
fixed typo in polyk2 for ieos=7
markahutch committed Mar 18, 2022
commit 721c0bf6a5e7e1d14cb76fa93c13d3d0ad36f851
1 change: 1 addition & 0 deletions src/main/eos.F90
Original file line number Diff line number Diff line change
@@ -217,6 +217,7 @@ subroutine equationofstate(eos_type,ponrhoi,spsoundi,rhoi,xi,yi,zi,eni,tempi,gam
case(7)
!
!-- z-dependent locally isothermal eos
!
r2 = xi**2 + yi**2
cs2mid = polyk * r2**(-qfacdisc)
cs2atm = polyk2 * r2**(-qfacdisc2)
2 changes: 1 addition & 1 deletion src/setup/setup_disc.f90
Original file line number Diff line number Diff line change
@@ -627,7 +627,7 @@ subroutine equation_of_state(gamma)
print "(/,a)",' setting ieos=7 for locally isothermal disc with stratification'
call temp_to_HR(temp_mid0,H_R(onlydisc),R_ref(onlydisc),mcentral,cs)
call temp_to_HR(temp_atm0,H_R_atm,R_ref(onlydisc),mcentral,cs)
polyk2 = (cs*(1./R_ref(onlydisc))**qfacdisc2)**2
polyk2 = (cs/R_ref(onlydisc)**(-qfacdisc2))**2
z0 = z0_ref/R_ref(onlydisc)**beta_z
else
ieos = 3