From 565c3608f2f4213ae51f608779d2304be4f50112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Barr=C3=ADa?= Date: Wed, 15 Oct 2025 15:19:44 -0300 Subject: [PATCH] read_phantom.f90: Added Mdot for the case of fixed stellar parameters --- .gitignore | 2 ++ src/read_phantom.f90 | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 069e15c61..ccab9a949 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,5 @@ my_utils/ #parameter files *.para +*.dat +utils/* \ No newline at end of file diff --git a/src/read_phantom.f90 b/src/read_phantom.f90 index 5d573abcc..f9619ba2e 100644 --- a/src/read_phantom.f90 +++ b/src/read_phantom.f90 @@ -1121,6 +1121,9 @@ subroutine phantom_2_mcfost(np,nptmass,ntypes,ndusttypes,ldust_moments,n_files,d etoile(i_etoile)%vz = vxyz_ptmass(3,i_etoile) * uvelocity etoile(i_etoile)%M = xyzmh_ptmass(4,i_etoile) * usolarmass + + ! TODO: Add conditions for forced Mdot + etoile(i_etoile)%Mdot = xyzmh_ptmass(16,i_etoile) * usolarmass / utime_scaled * year_to_s ! Accretion rate is in Msun/year enddo else