set_softened_core
Module
Description
This module solves for a softened density and pressure profile below a softening radius, rcore, of a stellar profile
- References:
- Owner:
Mike Lau
- Runtime parameters:
None
- Dependencies:
eos, eos_mesa, io, physcon, setcubiccore, setfixedentropycore, table_utils
Quick access
- Routines:
Subroutines and functions
- subroutine setsoftenedcore/set_softened_core(eos_type, isoftcore, isofteningopt, regrid_core, rcore, mcore, r, den, pres, m, x, y, ierr)
- Parameters:
eos_type [integer,in]
isoftcore [integer,in]
isofteningopt [integer,in]
regrid_core [logical,in]
rcore [real,inout]
mcore [real,inout]
r (*) [real,inout,allocatable]
den (*) [real,inout,allocatable]
pres (*) [real,inout,allocatable]
m (*) [real,inout,allocatable]
x (*) [real,inout,allocatable]
y (*) [real,inout,allocatable]
ierr [integer]
- Use :
eos
(x_in()
,z_in()
,init_eos()
,gmw()
,get_mean_molecular_weight()
),eos_mesa
(init_eos_mesa()
),io
(fatal()
),table_utils
(interpolator()
,yinterp()
,flip_array()
),setcubiccore
(set_cubic_core()
,find_mcore_given_rcore()
,find_rcore_given_mcore()
,check_rcore_and_mcore()
),setfixedentropycore
(set_fixeds_softened_core()
),physcon
(solarr()
,solarm()
)- Call to:
- subroutine setsoftenedcore/calc_regrid_core(ncore, rcore_cm, icore, r1, den1, pres1, m1, x1, y1, r2, den2, pres2, m2, x2, y2)
- Parameters:
ncore [integer,in]
rcore_cm [real,in]
icore [integer,inout]
r1 (*) [real,in]
den1 (*) [real,in]
pres1 (*) [real,in]
m1 (*) [real,in]
x1 (*) [real,in]
y1 (*) [real,in]
r2 (*) [real,out,allocatable]
den2 (*) [real,out,allocatable]
pres2 (*) [real,out,allocatable]
m2 (*) [real,out,allocatable]
x2 (*) [real,out,allocatable]
y2 (*) [real,out,allocatable]
- Called from: