Dance to Demise – How Massive Stars May Form Dense Circumstellar Shells Before Explosion Sutirtha Sengupta, Das Sujit, Arkaprabha Sarangi Abstract We investigate the evolution of red supergiant (RSG) progenitors of core-collapse (CC) supernovae (SNe) with initial masses between 12 − 20 12-20 M ⊙ focusing on effects of enhanced mass loss due to pulsation-driven instabilities in their envelopes and subsequent dynamical ejections during advanced stages of nuclear burning. Using time-dependent mass loss rates from detailed MESA stellar evolution models, including prescriptions for both pulsation-driven superwinds and shock-induced ejections, we construct the circumstellar medium (CSM) before the SN explosion. We calculate resulting CSM density profiles and column densities considering the radiation-driven acceleration of the stellar wind. Our models produce episodes of enhanced mass loss ( ∼ 10 − 4 − 10 − 2 \sim 10^{-4}-10^{-2} M ⊙ yr − 1 \rm{yr}^{-1} ) in the last centuries-decades before explosion forming dense CSM ( ≳ 10 − 15 ​ g ​ cm − 3 \gtrsim 10^{-15}~\rm{g~cm}^{-3} at distances ≲ 10 15 ​ cm \lesssim 10^{15}~\rm{cm} ) – consistent with multi-wavelength observations of Type II SNe such as SN 2023ixf, SN 2020ywx, SN 2017hcc, SN 2005ip and SN 1998S. The formation of such dense CS shells, as predicted by our single star RSG models, provides a natural explanation for observed flash-ionization signatures, X-ray and radio emission, and has important implications for dust formation around Type II SNe. show]arkaprabha.sarangi@iiap.res.in I Background Massive stars with initial masses between 8-30 M ⊙ ( A. Heger et al. 2003 ; G. Meynet & A. Maeder 2003 ) are expected to end their lives in core-collapse (CC) supernovae (SNe), and are considered to be significant dust producers in galaxies ( B. E. K. Sugerman et al. 2006 ) . However, the evolution of massive stars in their late phases is poorly understood - in particular, mass loss and its impact on the final fate of these stars remains ill-constrained ( N. Smith 2014 ; G. Meynet et al. 2015 ) . A number of factors have been invoked to explain mass loss from massive stars like line-driven winds, stellar rotation, radial pulsations, episodic ejections/eruptions and binarity ( S. E. Woosley et al. 2002 ; N. Langer 2012 ) . All these factors result in the observed diversity of CCSNe, which are broadly classified as Type I (b/c) – which do not show any hydrogen lines in their spectra – and Type II (P/L/n/b) which do so, but with varying strengths and time evolution of light curves ( A. V. Filippenko 1997 ; L. Martinez et al. 2022 ; I. Salmaso et al. 2025 ) . Observationally, direct identifications of SN progenitors ( S. J. Smartt 2009 ) provide critical information regarding the final stage of its evolution before explosion, and there exist many pre-SN images of Type II progenitors ( S. J. Smartt 2015 ; S. D. Van Dyk 2017 ) The wealth of observations of SNe from large-scale transient surveys like the Zwicky Transient Facility ( E. C. Bellm et al. 2019 , ZTF;) , the Asteroid Terrestrial-impact Last Alert System ( J. L. Tonry et al. 2018 , ATLAS;) and the upcoming Legacy Survey of Space and Time ( K. M. Hambleton et al. 2023 , LSST;) , provides golden opportunities to improve our current understanding of the final stages leading to the explosive end of the lives of massive stars ( C. L. Ransome & V. A. Villar 2024 ; N. L. Strotjohann et al. 2024 ) . However, several factors complicate the task of deriving reliable mass loss rates ( \dot{M} ) for cool, possibly dust-enshrouded, red supergiant (RSG) progenitors ( J. T. van Loon et al. 2005 ) of Type II SNe ( L. Decin 2021 ) . At the same time, there is a growing consensus that a high fraction of Type II SNe are preceded by phases of heavy mass loss ( K.-R. Hinds et al. 2025 ) whose signatures can be seen from the post-explosion shock interaction with the circumstellar medium (CSM) created by the wind of the SN progenitor ( P. Chandra 2018 ; L. Dessart 2024 ; V. V. Dwarkadas 2025 ) . The circumstellar densities inferred from flash-ionization spectroscopy, X-ray and radio observations of SNe like SN 1998S ( N. Chugai et al. 2002 ) , SN 2010jl ( C. Fransson et al. 2014 ) , and SN 2023ixf ( K. A. Chugai et al. 2023 ) point toward mass loss rates of \sim 10^{-3}-10^{-1} M ⊙ \rm{yr}^{-1} within \sim 10^{15}-10^{16} cm of the progenitor —- values that far exceed those from standard steady winds. The presence of narrow P Cygni absorption features, light curve plateaus with CSM interaction signatures, and late-time IR emission all corroborate the scenario of enhanced pre-SN mass loss. All these observations of post-explosion features are clearly at odds with latest mass loss prescriptions inferred from large samples of observed RSGs ( E. R. Beasor et al. 2023 ; P. Massey et al. 2023 ; M. Yang et al. 2023 ; K. Antoniadis et al. 2024 ; L. Decin et al. 2024 ) as well as empirical mass loss rates derived from much smaller samples of stars ( C. de Jager et al. 1988 ; H. Nieuwenhuijzen & C. de Jager 1990 ) that are still used in state-of-the-art stellar evolution codes to model the RSG phase of massive stars ( N. Mauron & E. Josselin 2011 ; P. Massey et al. 2021 ) . From a theoretical point of view, there have only been handful of attempts to derive mass loss prescriptions for RSGs from first principles. S.-C. Yoon & M. Cantiello 2010 proposed a pulsation-driven wind mass loss prescription for high mass RSGs with high luminosity-to-mass ratios, which they hypothesized could, in principle, achieve the high rates ( \dot{M}\sim 10^{-2} M ⊙ \rm{yr}^{-1} ) required to explain observed properties of CSM around Type IIn SNe. Thereafter, Moriya, Takashi J. & Langer, Norbert 2015 followed similar principles to propose a pulsation-driven wind for very massive metal-free stars. M. Clayton 2018 further extended the pulsation-driven mass loss into the shock-dominated regime and proposed analytical mass loss rates for use in stellar evolutionary calculations. N. D. Kee et al. 2021 proposed an alternate mechanism to drive mass loss through the pressure due to characteristic turbulent velocities inferred for RSGs. Most recently, J. S. Vink & G. N. Sabhahit 2023 proposed a new mass loss prescription for RSGs as a function of the Eddington factor based on the data from M. Yang et al. 2023 . However, none of these existing prescriptions by itself can fully explain all the observational constraints such as the RSG luminosity functions ( P. Massey et al. 2023 ) . Even binary interactions are estimated to overpredict luminous RSGs arising from mass accretion or mergers ( E. Zapartas et al. 2025 ) . Hence, most evolutionary codes continue to employ empirical mass loss rates ( E. R. Beasor et al. 2021 ) which lack physical grounding and fail to reconcile with observed properties of Type II SNe. II Rationale of this study The motivation behind this work is to address (a) whether a single star may incur heavy mass loss in the final stages before it explodes, that can be correlated with the presence of a dense CSM near the star, and (b) how the progenitor mass impacts the mass loss rates, CSM densities, and wind velocities. In this regard, our study accounts for progenitors of Type II supernovae, and we compare the CSM profiles of well-observed interacting SNe such as SN 2023ixf ( J. E. Jencson et al. 2023 ; W. V. Jacobson-Galán et al. 2023 ; E. A. Zimmerman et al. 2024 ; N. Smith et al. 2023 ; K. A. Bostroem et al. 2024 ; N. A. J. et al. 2025 ) , SN 2005ip ( N. Smith et al. 2009 ; S. Katsuda et al. 2014 ) , SN 1998S ( N. Chugai et al. 2002 ; M. Pozzo et al. 2004 ; C. Fransson et al. 2005 ; J. Mauerhan & N. Smith 2012 ; I. Shivvers et al. 2015 ) , SN 2017hcc ( P. Chandra et al. 2022 ) , SN 2020ywx ( R. Baer-Way et al. 2025 ) . We argue that for single stars, enhanced pulsation near the end of their lives provides conditions favorable for escalated mass loss ( S.-C. Yoon & M. Cantiello 2010 ; Moriya, Takashi J. & Langer, Norbert 2015 ) . To demonstrate this effect, we simulate the evolution of massive stars with initial masses between 12 and 20 M ⊙ , from their main-sequence until the end of neon burning (or until end of core O-burning, in some cases) using the MESA code, applying advanced mass loss prescriptions to incorporate effects of radial pulsations in the outer envelope of RSGs (Section IV ). The paper is arranged as follows: in Section III , we briefly review the various mass loss mechanisms in RSG progenitors of CCSNe along with observational evidence for enhanced mass loss. In Section IV , we describe our modeling approach for incorporating enhanced mass loss in pulsating RSG progenitors followed by the model predictions for the properties of the CSM. In Section V , we compare our model predictions with available observational estimates of mass loss rates, CSM density and column density along line of sight and discuss the implications of our model predictions for upcoming infrared observations from large surveys like the James Webb Space Telescope ( J. P. Gardner et al. 2023 , JWST;) and the LSST in Section VI . Finally, we conclude with future directions of work in synergy with upcoming transient surveys. III Mass loss in RSGs Mass loss from RSGs is a fundamental yet still uncertain ingredient in the late stages of stellar evolution ( R. M. Humphreys 2025 ; S. D. Van Dyk 2025 ; J. T. van Loon 2025 ; S. Ekström & C. Georgy 2025 ) . The physical mechanisms responsible for this process directly shape the CSM, influencing both the pre-SN environment and the post-explosion observables, including light curves, spectra, and dust formation. Observations of Type II SNe with dense CSM (e.g., SN 2009ip, SN 2010jl, SN 2023ixf and so on) have revealed that enhanced and often eruptive mass loss can occur shortly before CC ( T. Zhang et al. 2012 ; E. O. Ofek et al. 2013 ; K. A. Chugai et al. 2023 ) . In this section, we describe potential driving mechanisms for steady line-driven winds, pulsation-driven outflows including dynamical ejections and/or eruptions, turbulent pressure and convective shocks creating extended atmosphere/chromosphere for dust-driven winds, and enhanced mass loss due to binary interaction for RSGs. III.1 Line-driven wind Line-driven winds are driven by the transfer of momentum from photons to metal lines in the stellar atmosphere. This mechanism is efficient in hot, compact stars e.g., OB stars ( J. S. Vink 2017 ) , but is considerably less effective in RSGs due to their cooler photospheres ( T_{\mathrm{eff}}\lesssim 4000 K), where fewer atoms are ionized and UV photons are scarce ( J. I. Castor et al. 1975 ; L. B. van den Hoek & M. A. T. Groenewegen 1997 ) . Typical mass loss rates from line-driven winds in RSGs range from \sim 10^{-7} to 10^{-6} M ⊙ \rm{yr}^{-1} ( E. R. Beasor et al. 2021 ; J. Merritt et al. 2025 ) , which is inadequate to explain the dense CSM observed in the majority (upto 80\% ) of all Type II SNe wih early-time observations ( V. Morozova et al. 2018 ; F. Förster et al. 2018 ) . III.2 Pulsation driven mass loss Many RSGs exhibit large-amplitude radial pulsations with periods of several hundred days ( M. D. Soraisam et al. 2018 ; Y. Ren et al. 2019 ) , as observed in long-period variables (LPVs). Such radial motions in the H-rich envelope of RSGs are driven by the so-called \kappa -mechanism ( N. Baker & R. Kippenhahn 1965 ; T. Gastine & B. Dintrans 2008 ) - an interplay between excess radiation pressure and gravitational pull on the outer layers of the RSG envelope. These pulsations can grow in amplitude to produce shocks at the stellar surface that levitate material above the photosphere, reducing the effective gravity and allowing other processes (e.g., radiation pressure on dust and molecules) to accelerate the material outward. However, the exact mechanism of mass loss due to the complex interplay of pulsations and convection in RSG envelopes remains ill-understood ( T. Gastine & B. Dintrans 2010 ) , and attempts to reduce these inherently three-dimensional phenomena into one-dimensional prescriptions for use in evolutionary codes remain limited ( S.-C. Yoon & M. Cantiello 2010 ; Moriya, Takashi J. & Langer, Norbert 2015 ) . III.2.1 Dynamical Ejections In the advanced nuclear burning stages, vigorous convection and shell flashes can lead to hydrodynamic instabilities and formations of shock waves in the outer envelopes of RSGs. If these internal shocks propagate outward and reach the stellar surface, they can trigger impulsive ejections of envelope material. These “dynamical ejections” are thought to be responsible for the formation of dense, compact shells detected in SN progenitors such as SN 2009ip ( J. C. Mauerhan et al. 2013 ; N. Smith 2014 ) . Simulations suggest that mass loss rates in such events can temporarily exceed 10^{-2} M ⊙ \rm{yr}^{-1} , lasting sometimes for days to weeks or even sustain repeatedly for centuries ( M. Clayton 2018 ) . III.2.2 Eruptive mass loss Eruptive mass loss may occur through surface instabilities driven by opacity changes, pulsationally-enhanced convective transport, wave-driven energy deposition or super-Eddington luminosities in RSG envelopes ( E. Quataert & J. Shiode 2012 ; J. Fuller 2017 ; S. J. Cheng et al. 2024 ) . These eruptions resemble luminous blue variable (LBV) behavior, though they are seen in cooler RSGs as well. The pre-SN outbursts seen in light echoes (e.g., SN 2013cu) are likely signatures of such events, with inferred \dot{M}\sim 10^{-4} – 10^{-2} M ⊙ \rm{yr}^{-1} over timescales of months to years ( G. Gräfener & J. S. Vink 2016 ) . Furthermore, statistical analysis of luminous stars in the Milky Way ( C. S. Kochanek 2011 ) and the study of \eta Carinae analogs in nearby galaxies ( R. Khan et al. 2015 ) reveal the presence of massive shells which hint towards instabilities triggered at the onset of C-burning leading to eruptions ( R. Margutti et al. 2017 ) . III.3 Turbulent pressure and Extended Chromosphere N. D. Kee et al. 2021 have recently presented a model showing how turbulent pressure inside the RSG envelope is sufficient to expand the atmosphere to an extent that a wind can be launched. Their analytic mass loss prescription for observationally inferred turbulent velocities ( B. Arroyo-Torres et al. 2015 ) predicts that stars above M_{\rm{init}}\gtrsim 17 M ⊙ leave the RSG phase to evolve into blue supergiants and hence would not explode as TypeII P/L SNe – in agreement with observations ( S. J. Smartt et al. 2009 ) and in contrast to results obtained using empirical mass loss rates ( C. de Jager et al. 1988 ; E. R. Beasor et al. 2021 ) in which massive stars below 30 M ⊙ end their lives as RSGs. Along similar lines, J. Fuller & D. Tsuna 2024 proposed the existence of a dense chromosphere supported by outgoing shocks near the photosphere created from strong convective motions inside the RSG envelopes. The chromosphere in their model extends to several stellar radii 1 1 1 In J. Fuller & D. Tsuna 2024 , the stellar radius is the outer boundary of the relaxed stellar model, located at a very low optical depth so that their models give a smooth and realistic transition to the circumstellar environment. , out to distances where dust formation can drive the wind launched by the radiation pressure of the star ( E. Sedlmayr & C. Dominik 1995 ) . The mass loss rates predicted from their model are similar to recent observations, with increasing values for more luminous RSGs, and can potentially explain the early rise in light curves of Type IIP SNe without invoking pre-explosion enhanced mass loss. III.4 Dust driven wind Beyond a few stellar radii, the temperature in RSG atmospheres drops below \sim 1500 K, allowing the condensation of silicate and alumina grains. Radiation pressure on these dust grains can then drive a wind, especially when aided by prior pulsational levitation of gas ( R. D. Gehrz & N. J. Woolf 1971 ) . Dust-driven winds are supported by observations of IR excesses and extended envelopes in nearby RSGs such as Betelgeuse ( A. K. Dupree et al. 2022 ) and VY CMa ( E. D. Beck et al. 2016 ) . These winds often exhibit outflow velocities of 10–30 km s -1 and mass loss rates between 10^{-6} and 10^{-4} M ⊙ \rm{yr}^{-1} ( J. T. van Loon et al. 2005 ) . III.5 Enhanced mass loss due to binary companion The majority of massive stars are believed to have experienced at least one episode of binary interaction in course of their evolution ( N. Langer 2012 ; H. Sana et al. 2012 ) , although for RSGs, the binary fraction is estimated to be much lower both from observations ( M. Dai et al. 2025a ; M. Dai et al. 2025b ) and population synthesis predictions using the Binary Population and Spectral Synthesis code (BPASS; J. J. Eldridge et al. 2017 ; E. R. Stanway & J. J. Eldridge 2018 ; H. Stevance et al. 2020 ). Irradiation effects due to heating or the ram pressure from the wind of a stellar companion or even an explosion, as well as tidal forces exerted by a binary companion (either a star, planet or a compact remnant) causing redistribution of the angular momentum inside the star, can trigger enhanced mass loss. Stars in binary systems may also accrete matter causing spin-up to critical rotation, thereby becoming partially unbound, resulting in mass loss through the inner Lagrangian point or even merging into a common envelope ( M. Clayton et al. 2017 ; H. F. Stevance & J. J. Eldridge 2021 ) . Such evolutionary scenarios are also possible in X-ray binaries where the compact object (either a neutron star or black hole) accretes matter from its giant companion, making the latter lose mass through Roche lobe overflow, which could prevent it from evolving into a RSG and instead explode as a Type I b/c SN, a significant fraction of which are understood to originate from such envelope stripping by a binary companion ( A. Grichener 2023 ; T. Shenar 2024 ) . IV RSG models with pulsations We model massive stars with initial masses between 12-20 M ⊙ which evolve into red supergiants (RSGs) using the open-source stellar evolution code Modules for Experiments in Stellar Astrophysics ( B. Paxton et al. 2011 ; B. Paxton et al. 2013 ; B. Paxton et al. 2015 ; B. Paxton et al. 2018 ; B. Paxton et al. 2019 , MESA;) - version 24.08.1. These models are computed hydrostatically from the pre-main sequence through to the end of core helium burning, and thereon hydrodynamically until core oxygen exhaustion. We use a smaller nuclear network, approx21_cr60_plus_co56.net ( F. X. Timmes 1999 ) until core carbon depletion, followed by a larger network, mesa_128.net ( F. X. Timmes 1999 ; F. X. Timmes et al. 2000 ) to better capture the energy generation in advanced phases of nuclear burning, due to limited computational resources. Our models also incorporate time-dependent convection as implemented in MESA by A. S. Jermyn et al. 2023 to better approximate the turbulent conditions within the convective envelopes of RSGs, than it is possible using the standard mixing length approach. We use MESA’s inbuilt Dutch wind scheme until the end of core helium burning, scaled by a factor dutch_scaling_factor =0.2 , which gives RSG mass loss rates consistent with observations of large samples of RSGs in the Milky Way, the Magellanic Clouds ( M. Yang et al. 2023 ; K. Antoniadis et al. 2024 ; J. Wen et al. 2024 ) as well as M31, M33 ( P. Massey et al. 2023 ) and other nearby star clusters with coeval populations of RSGs from which mass-dependent mass loss rates have been inferred ( E. R. Beasor et al. 2023 ; L. Decin et al. 2024 ) . Beyond core helium exhaustion, we switch to our custom mass loss prescription as described below in IV.1 to model the effect of radial pulsations on mass loss in RSGs ( \mathrm{T}_{\rm{eff}}<4000~\mathrm{K} ). We also investigate late mass ejections in the subsequent evolution of our RSG models before CC, due to dynamical instabilities post-shock breakout in the pulsating stellar envelope, as described in IV.2 . In IV.3 we describe the model for line-driven acceleration of the RSG wind generated through the various mass loss mechanisms mentioned above. Finally in IV.3.2 we calculate the CSM density profiles and the column density along line-of-sight assuming spherically symmetric wind using the accelerated velocity profile for comparison with few well-known Type II SNe (Section V ). IV.1 Pulsation-Driven Superwind (PDSW) Red Supergiants (RSGs) often exhibit long-period variability ( M. D. Soraisam et al. 2018 ; Y. Ren et al. 2019 ; B. Hsu et al. 2024 ) that has been associated with changes in stellar radii due to excitation of different modes of pulsational instabilities through the \kappa -mechanism ( H. Saio et al. 2016 ) . Theoretically, A. Heger et al. 1997 demonstrated the growth of such pulsational instabilities in hydrodynamical evolutionary calculations and found that the growth rates in their non-linear numerical calculations to be proportional to the luminosity ( \mathrm{L} ) to mass ( \mathrm{M} ) ratio. S.-C. Yoon & M. Cantiello 2010 showed that the growth rate ( \eta ) of the amplitude of the surface velocities increases with L/M ratio and/or decreasing thermal (Kelvin-Helmholtz) time scale of the envelope ( \tau_{KH,env} ), according to the relation: \log\eta=C_{1}\left(\frac{R}{\mathrm{R}_{\odot}}\right)^{2}\left(\frac{M}{\mathrm{M}_{\odot}}\right)^{-1}\left(\frac{\tau_{\mathrm{KH,env}}}{\mathrm{yr}}\right)^{-0.315}-C_{2}, (1) where R is the stellar radius, \tau_{KH,env}:=GMM_{env}/LR ( M_{env} is the mass of the H-rich envelope ) and C_{1}=9.219\times 10^{-6},~C_{2}=0.0393 which are calibrated against their hydrodynamic models. Figure 1 shows a linear least-squares fit for the relation given by Equation 1 for our hydrodynamic MESA model sequences with initial masses between 12-18 M ⊙ , which gives C_{1}=9.393\times 10^{-6},C_{2}=0.0797 , in close agreement with the values of S.-C. Yoon & M. Cantiello 2010 . Figure 1 : Growth rate of radial oscillations, \eta , as a function of stellar parameters (radius, mass, and Kelvin-Helmholtz time-scale of the envelope); the solid line represents a linear least-squares fit Figure 2 : (Top) Evolution of the stellar radius (black curve plotted on the left axis) in a set of hydrodynamic MESA model sequences with initial mass M_{\mathrm{init}}=15~\mathrm{M}_{\odot} in the RSG phase until shock breakout at the surface when Mach Number ( :=v_{surf}/c_{sound} ) exceeds unity (shown in red on the right axis). (Bottom) Corresponding evolution of a set of MESA models with varying initial masses between 12-18\ M_{\odot} in the HR diagram The top panel of Figure 2 shows a typical hydrodynamical model for a MESA run with initial mass M_{\mathrm{init}}=15 M ⊙ illustrating the growth of the radial pulsations until shock break-out at the surface where the Mach number reaches unity. The bottom panel of Figure 2 shows the corresponding evolution of a set of MESA runs with varying initial masses between 12-18 M ⊙ in the Hertzspring-Russell (HR) diagram. Capturing these radial pulsations with the typical time period, P\sim 2-5~yrs , requires using much smaller time steps, \delta t\leq 0.01~\text{years} ( B. Paxton et al. 2013 ) , that makes modeling such pulsations a challenging task for evolutionary codes which typically use much larger time steps during the onset and growth of these pulsations. We do not attempt to resolve these pulsations for our full evolutionary runs (from pre main-sequence until core oxygen-depletion) for computational feasibility but incorporate potential impact of the growth of such pulsations observed in advanced phases (beyond core-helium burning) on the mass loss history of our stellar models. To do this, we evolve a set of hydrostatic MESA models until end of core-helium burning using the standard Dutch wind scheme in MESA. Thereafter, each run is continued with the hydrodynamic term on and replacing the wind mass loss rates with the ”superwind” (SW) mass loss prescription of S.-C. Yoon & M. Cantiello 2010 given by \dot{M}=\eta^{\alpha}\dot{M}_{\mathrm{JNH88}}, (2) for \eta>1 using the growth rate expression as given in Equation 1 with our calibrated constants. Here, \dot{M}_{\mathrm{JNH88}} is the mass loss rate from de C. de Jager et al. 1988 scaled down by a factor of 0.2 for reasons explained in Section IV , and \alpha is a parameter which sets the strength and consequently the duration of the SW-phase (Section IV.2 ). Unlike S.-C. Yoon & M. Cantiello 2010 who used a fixed \alpha~=~1.75 , we conduct a thorough exploration of the dependence of the SW on both the initial mass \mathrm{M}_{init}=12-20 M ⊙ and value of \alpha=0-5 . Figure 3 : Mass loss histories of two model sequences with M_{\rm{init}}=16~\rm{M}_{\odot} for \alpha=0.0 (dashed blue line) which corresponds to the Dutch wind in MESA, scaled down by a factor of 0.2 (see Section IV ), and \alpha=4.25 (solid red line) which gives an enhanced ”superwind” with \dot{M}\sim 10^{-3} M ⊙ \rm{yr}^{-1} over the last \sim 10^{3}~\rm{yrs} . Figure 3 illustrates a sequence of such MESA models for M_{\mathrm{init}}=16 M ⊙ , \alpha=4.25 showing the evolution of the mass loss rate as a function of the logarithm of the time to CC, measured from right to left. Thus, the zero of the x-axis represents one year from CC, approximately corresponding to the duration of oxygen-burning in our models, which is the final phase up to which we have evolved all our model sequences. It is readily seen that the model with \alpha=4.25 evolves with an enhanced mass loss rate over the last \sim 10^{3} years, which is approximately two orders of magnitude higher compared to the model sequences evolved with the normal Dutch prescription in MESA, obtained by setting \alpha=0 in Equation 2 . At lower values of either the initial mass or \alpha , mass loss is less enhanced compared to the corresponding Dutch wind values but the qualitative picture is similar for lower mass progenitors with similar or lower values of \alpha (see Figure 5(a) ). IV.2 Dynamical ejections post shock break-out The SW prescription of S.-C. Yoon & M. Cantiello 2010 is strictly applicable only to the exponential growth phase of radial pulsations, which subsequently get damped by shocks that develop within the RSG envelope where the radial velocity of the loosely bound layers becomes supersonic. M. Clayton 2018 investigated the problem of dynamical stability of RSG envelopes under such conditions and predicted episodes of repeated mass ejection events which could last for upto 100 -s of years. From their extensive suite of hydrodynamical simulations performed using the MESA code, almost all cases that converged upon a solution after showing such episodes of repeated mass ejections had log((\mathrm{L}/\mathrm{L}_{\odot})/(\mathrm{M}/\mathrm{M}_{\odot}))\gtrsim 4.1 , for which the following mass loss prescription: \log(\dot{M}/\mathrm{M_{\odot}}~\rm{yr}^{-1})=5.93\times\log[(L/\mathrm{L}_{\odot})/(M/\mathrm{M}_{\odot})]-26.6, (3) was suggested with a cut-off value of \log((L/\mathrm{L}_{\odot})/(M/\mathrm{M}_{\odot})) between 4.1-4.15 . Hence, we employ this mass loss recipe to model the possibility of such mass ejections occurring post shock-break-out in RSG envelopes when the luminosity to mass ratio of the star exceeds the cut-off value of \log((L/\mathrm{L}_{\odot})/(M/\mathrm{M}_{\odot}))>4.15 , which is on the conservative side, given the uncertainties in determining the exact value of this cut-off. Figure 4 : Mass-loss histories of two model sequences as described in Section IV.1 with M_{\rm{init}}=16~\rm{M}_{\odot} for \alpha=4.35 (in dotted red) and including dynamical mass ejections (in solid red) which gives episodic enhancements in mass-loss with \dot{M}\sim 10^{-2} M ⊙ \rm{yr}^{-1} over the last \sim 30~\rm{yrs} prior to CC. Figure 4 shows such a model sequence of initial mass M_{\mathrm{init}}=16 M ⊙ evolved with both the prescriptions given by Equations 2 (for \alpha=4.35 ) and 3 implemented in MESA, with a transition at \log((L/\mathrm{L}_{\odot})/(M/\mathrm{M}_{\odot}))=4.15 . It can be seen that the onset of the dynamical ejections marks a significant enhancement in the mass loss rates (around an order of magnitude) compared to the superwind phase, which has important implications for the CSM formed by these winds close to the star, as in this model the ejections occur less than 100 years from CC. Figure 5 shows a set of evolutionary calculations using both the mass loss prescriptions for PDSW (Equation 2 ) and subsequent dynamical ejections (Equation 3 ). From our grid of MESA models, we find that only model sequences with initial mass M_{\rm{init}}\gtrsim 15 M ⊙ evolve to enter the regime for which dynamical ejections are expected (as described in IV.2 ). Furthermore, depending on the initial mass M_{\rm{init}}>15 M ⊙ , there is a cut-off value of \alpha above which the dynamical ejections lead to elevated mass loss ( \dot{M}\gtrsim 10^{-2} M ⊙ \rm{yr}^{-1} ). (a) Mass loss history of a sequence of MESA models with M_{\rm{init}}=15 M ⊙ prior to CC, showing enhanced mass-loss rates of \dot{M}\gtrsim 10^{-5} M ⊙ \rm{yr}^{-1} for \alpha\geq 2 , due to PDSWs. These models do not reach the regime of dynamical ejections ( IV.2 ). (b) MESA models with M_{\rm{init}}=16 M ⊙ exhibiting episodic mass loss due to dynamical ejections for \alpha\gtrsim 4.35 following a superwind phase, with average mass loss rates exceeding 10^{-2} M ⊙ \rm{yr}^{-1} within 100 yrs of CC. (c) For M_{\rm{init}}=17 M ⊙ , similar episodes of elevated mass loss due to dynamical ejections occur at \alpha\gtrsim 3.6 with earlier onset of such phases observed at higher values of \alpha . (d) For M_{\rm{init}}=18 M ⊙ , the onset of the dynamical ejections occur at \alpha\gtrsim 2.8 between 1-20 yrs of CC. Figure 5 : Evolution of MESA model sequences with initial masses of (a) 15 M ⊙ , (b) 16 M ⊙ , (c) 17 M ⊙ and (d) 18 M ⊙ showing the mass-loss history due to PDSWs and dynamical ejections as described in IV.1 and IV.2 respectively. IV.3 Wind propagation: CSM density, integrated column density In this section, we describe our approach to construct the CSM surrounding the RSG progenitor modeled using MESA as described thus far. To do so, we need a model for the wind propagating outward from the stellar surface which we describe below ( IV.3.1 ) along with the numerical procedure used to construct the CSM density ( IV.3.2 ) as well as the column density along the line of sight ( IV.3.3 ). IV.3.1 Line-driven acceleration of the wind Following T. J. Moriya et al. 2018 , we consider the line-driven acceleration of the stellar wind which starts with a velocity v_{o} at the launch radius r=R_{*} , which is simply the stellar radius. The photons emitted from the luminous RSG surface are absorbed and re-emitted by the wind, which imparts radial momentum leading to gradual acceleration of the wind out to large radii where the wind velocity reaches the terminal speed, v_{\infty} . This mechanism of acceleration of the wind is usually approximated the following \beta -law for the wind velocity: v_{w}(r)=v_{0}+(v_{\infty}-v_{0})\left(1-\frac{R_{*}}{r}\right)^{\beta}, (4) where the value of \beta determines the shape of the wind profile. Usually, both v_{\infty} and \beta are obtained through spectral line fitting, with 0.7\lesssim\beta\lesssim 4 ( R.-P. Kudritzki & J. Puls 2000 ) . In the following comparisons of our results with observed SNe (Section V ), we adopt a constant value of \beta=1.2 , consistent with hydrodynamical simulations of line-driven winds ( M. Curé & I. Araya 2023 ) . IV.3.2 CSM density calculation Using the accelerated wind profile given by Equation 4 , we propagate the wind outward by integrating along the radial direction using a fourth-order Runge-Kutta scheme, in order to compute the CSM density, \rho(r) at a radial distance r from the stellar surface. Assuming spherical symmetry, the CSM density is given by \rho(r)=\frac{\dot{M}(t)}{4\pi r^{2}v_{w}(r)}, (5) where \dot{M}(t) is the mass loss rate of the the progenitor computed at a time t before CC, during which the wind has propagated out to a radius r from the surface of the star. The launch speed v_{0} of the wind at the stellar surface is set by requiring the CSM density to be connected smoothly at the stellar surface. IV.3.3 Column density along line of sight calculation The column density of hydrogen along the line of sight is computed using the CSM density obtained as described in IV.3.2 as N_{H}(r)=\int_{r}^{\infty}n(r^{\prime})dr^{\prime}, (6) where the number density of hydrogen at a radial distance r within the CSM is given by n(r)=\frac{\rho(r)}{\mu m_{p}}, (7) with the mean molecular weight \mu\simeq 1.3 for hydrogen, and the proton mass m_{p}=1.6726\times 10^{-24}~gm . The computed values of the column densities are compared in V with available measured values for well-studied SNe (e.g. SNe 2005ip, 2020ywx, 2023ixf), using observed estimates of terminal wind speeds, v_{\infty} , required to compute the CSM densities, as per Equation ( 5 ). V Comparison with observed Type II SNe In this section, we construct the CSM around RSG progenitors of CCSNe of varying initial masses as described in IV.3.2 and IV.3.3 , and compare our results with well-studied Type II supernovae with observed estimates of mass loss rates and/or measured values of column densities. Our goal is to ascertain the ability of our models to reproduce late phase enhanced mass loss pre-explosion that may create dense CSM around the SNe as inferred from post-explosion observations for the selected events presented below. V.1 SN 2023ixf SN 2023ixf is one of the nearest Type II SNe observed in recent years, with extensive follow-up providing stringent constraints on the structure and density of its CSM ( W. V. Jacobson-Galán 2025 ) . Flash-ionization signatures in its spectra indicate that its red supergiant (RSG) progenitor underwent enhanced mass loss ( \dot{M}\sim 10^{-2} M ⊙ \rm{yr}^{-1} ) during the final decade before CC, producing a compact dense shell (CDS) around it ( J. E. Jencson et al. 2023 ; W. V. Jacobson-Galán et al. 2023 ; E. A. Zimmerman et al. 2024 ; N. Smith et al. 2023 ; K. A. Bostroem et al. 2024 ) . Multi-epoch NuSTAR, XMM-Newton, Swift-XRT and Chandra X-ray observations ( P. Chandra et al. 2024 ) as well as radio follow-up with the NOEM, VLA, GMRT ( N. A. J. et al. 2025 ) infer mass loss rates of \sim 10^{-4} M ⊙ \rm{yr}^{-1} at around (0.4-1.5)\times 10^{15} cm, indicating a variable mass loss rates over the last \sim 200 yrs of the progenitor’s life. To model this scenario, in Figure 6(a) , we show our MESA model sequence for a progenitor of initial mass M_{\mathrm{init}}=18 M ⊙ with a superwind parameter \alpha=2.82 . This model enters the regime of dynamical ejections ~11 yrs prior to CC. Figure 6(a) shows the mass loss history of this model sequence, which shows the superwind phase starting at 10^{4} yrs before CC, with \dot{M}\gtrsim 10^{-4} M ⊙ \rm{yr}^{-1} , followed by episodes of dynamical ejections with averaged mass loss rates exceeding 10^{-2} M ⊙ \rm{yr}^{-1} in the final decade before explosion. We compare our model predictions with inferred CSM densities from multi-epoch observations across optical, X-ray and radio wavelengths ( N. A. J. et al. 2025 ) , as shown in Figure 6(b) . We obtain good agreement with both the early and late epoch observations, using the mass loss history of our 18 M ⊙ , \alpha=2.82 model sequence that leads to high CSM densities ( \gtrsim 10^{15}~\mathrm{g~cm}^{-3} ) close to the progenitor surface ( r\leq 10^{15} cm). In Figure 6(c) , we compare the column density of neutral hydrogen, computed using Equation ( 7 ), with measured X-ray values as reported in P. Chandra et al. 2024 and N. A. J. et al. 2025 , for which we use the evolution of the shock radius with time as per the estimates of P. Chandra et al. 2024 , to convert the epochs into r . We observe that, in general, we overpredict the column densities at most epochs where we have observed X-ray measurements. This could arise due to possible global asymmetries in the CSM, as hinted by the rapid spectropolarimetric properties at early times ( S. S. Vasylyev et al. 2023 ) , in the ejecta ( M. Shrestha et al. 2025 ) and/or from clumps of material along the line of sight, as indicated by the detection of Fe emission in the X-ray spectra ( N. A. J. et al. 2025 ) . (a) Mass-loss history of the M_{\rm{init}}=18 M ⊙ , \alpha=2.82 model, showing a superwind phase starting \sim 10^{4} years before core collapse and followed by the late onset dynamical ejections in the final decade with mass loss rates up to 10^{-2} M ⊙ \rm{yr}^{-1} . (b) CSM density profiles for the model sequence shown in Figure 6(a) (solid red curve), compared with inferred densities from multi-wavelength observations for SN 2023ixf ( W. V. Jacobson-Galán et al. 2023 ; E. A. Zimmerman et al. 2024 ; N. A. J. et al. 2025 ) . (c) Column density of neutral hydrogen (solid red) calculated for the model shown in Figure 6(b) , compared to the measured column densities (in solid blue) from X-ray observations ( N. A. J. et al. 2025 ) . Figure 6 : (a) Mass-loss rates from our M_{\rm{init}}=18 M ⊙ , \alpha=2.82 MESA model sequence; (b) corresponding CSM density compared with observationally inferred values; and (c) the column density of neutral hydrogen compared to observations. (a) Mass loss history of the sequence of our MESA models with M_{\rm{init}}=17 M ⊙ for ~\alpha=3.61 (in solid red) and \alpha=3.64 (in dashed brown), showing enhanced mass-loss rates ( \dot{M}\gtrsim 10^{-2}~ M ⊙ \rm{yr}^{-1} ) from \sim 100 yrs prior to CC. (b) CSM density profiles for the above two MESA model sequences shown in Fig 7(a) (the \alpha=3.61 sequence is the solid red curve and the \alpha=3.64 sequence is the dashed brown curve) compared with estimates from measured X-ray luminosities for SN 2020ywx ( R. Baer-Way et al. 2025 ) . (c) Column densities of neutral hydrogen calculated for the models shown in Figure 9(b) , compared to the measured X-ray column densities (blue points) from observations ( R. Baer-Way et al. 2025 ) . Figure 7 : (a) Mass-loss rates from our M_{\rm{init}}=17 M ⊙ , \alpha=3.61 and 3.64 MESA model sequences; (b) the resulting CSM densities from both sequences compared with observationally inferred values and (c) corresponding column densities of neutral hydrogen compared against measured values for SN-2020ywx. While such effects have been attributed to the ejecta geometry ( L. Ferrari et al. 2024 ) and/or binary interaction ( P. D. Michel et al. 2025 ) , regardless of the exact cause of their origins, either scenario would result in underestimation of the integrated column densities along the line of sight in observations, which would make them consistent with our systematically higher model estimates. V.2 SN 2020ywx SN 2020ywx is the second brightest Type IIn SN observed in X-rays after SN 2010jl, with mass loss rates inferred to be \gtrsim 10^{-2} M ⊙ \rm{yr}^{-1} over the last \sim 100 yrs before CC, from multi-epoch Swift and Chandra X-ray observations, while optical and radio data give estimates between \sim 10^{-3}-10^{-2} M ⊙ \rm{yr}^{-1} ( R. Baer-Way et al. 2025 ) . To compare with these observed estimates, we present two of our MESA model sequences for M_{\rm{init}}=17 M ⊙ with \alpha=3.61 and 3.64 in Figure 7(a) . Our M_{\rm{init}}=17 M ⊙ , \alpha=3.61 model sequence exhibits late onset of dynamical ejections with mass loss rates ~10^{-2} M ⊙ \rm{yr}^{-1} following a superwind phase with lower mass loss rates of ~10^{-4}-10^{-3} M ⊙ \rm{yr}^{-1} , which resembles the optical and radio behaviour of SN 2020ywx. Whereas, our M_{\rm{init}}=17 M ⊙ , \alpha=3.64 model sequence shows a longer phase with dynamical ejections leading to mass loss rates \gtrsim 10^{-2} M ⊙ \rm{yr}^{-1} over the last \sim 100 yrs before CC, as is inferred from X-ray luminosities at multiple epochs for SN 2020ywx ( R. Baer-Way et al. 2025 ) . The CSM density constructed using the above two model sequences is presented in Figure 7(b) along with observational estimates obtained using multi-epoch X-ray mass loss rates from R. Baer-Way et al. 2025 , assuming a constant shock velocity of 4000 km \rm{s}^{-1} . The CSM densities are slightly overpredicted by our M_{\rm{init}}=17 M ⊙ , \alpha=3.64 model sequences, while they are underpredicted by more than an order of magnitude by the M_{\rm{init}}=17 M ⊙ , \alpha=3.61 sequences. This is primarily due to the time of onset and duration of the episodes of dynamical ejections in the two models, also the X-ray mass loss rates of R. Baer-Way et al. 2025 differ by upto an order of magnitude from the optical/radio values beyond the first epoch. Figure 7(c) presents the column densities of neutral hydrogen along the line of sight for both the models compared to the measured X-ray column densities at the four epochs of Chandra X-ray measurements at 231,445,921~\text{and}~1219 days of R. Baer-Way et al. 2025 . The location of the forward shock within the CSM is found by assuming a constant shock speed of \sim 4000 km \rm{s}^{-1} . It is readily seen that the column densities predicted using our M_{\rm{init}}=17 M ⊙ , \alpha=3.61 model fits the observed values better than the profile obtained using the M_{\rm{init}}=17 M ⊙ , \alpha=3.64 model. The reason for this discrepancy could again arise due to asymmetry effects or line-of-sight effects influencing the column density measurements of R. Baer-Way et al. 2025 , as discussed for SN 2023ixf ( P. Chandra et al. 2024 ; N. A. J. et al. 2025 ) . V.3 SN 2017hcc SN 2017hcc belongs to the category of superluminous Type IIn SNe, whose progenitor is thought to have experienced extreme eruptive mass loss in the decade before explosion, with mass loss rate of \sim 1.4 M ⊙ \rm{yr}^{-1} required to power the main peak in its light-curve within first \sim 100 days dominated by CSM interaction post-explosion ( N. Smith & J. E. Andrews 2020 ) . This episodic mass loss is supposed to have occurred for about 6-12 yrs pre-explosion in order to have created a dense CSM around the progenitor that powered the SN luminosity through strong interaction with this dense CSM. In Figure 8(a) , we present one of our MESA model sequences with M_{\rm{init}}=17 M ⊙ , \alpha=3.63 which also exhibits episodic mass loss due to dynamical ejections over the last few decades before CC, with mass loss rates reaching above 10^{-2} M ⊙ \rm{yr}^{-1} . To construct the CSM around the progenitor of SN 2017hcc, we use X-ray observations of P. Chandra et al. 2022 who found a lower average mass loss rate of \sim 0.1 M ⊙ \rm{yr}^{-1} over the last decade pre-CC, corresponding to a post shock breakout time of \sim 100 days, followed by a decline in the mass loss rates to \sim 2\times 10^{-3} M ⊙ \rm{yr}^{-1} at few 100 days, assuming a bolometric luminosity \sim 10^{42} erg \rm{s}^{-1} , a steady wind at a speed of 45 km \rm{s}^{-1} ( N. Smith & J. E. Andrews 2020 ) and the velocity of the forward shock to be 4000 km \rm{s}^{-1} . Furthermore, P. Chandra et al. 2022 also present radio observations from which they estimate a mass loss rate at \sim 1000 days to be 6.5\times 10^{-4} M ⊙ \rm{yr}^{-1} . Figure 8(b) shows a comparison of our model predictions with the CSM densities obtained using the observed mass loss rates from P. Chandra et al. 2022 as described above. It can be seen that our model predictions closely trace the observed density profile, even with lower average mass loss rates during both the superwind and dynamical mass ejection phases. While LBV-type eruptive mass loss over the last decade could also produce a similar density profile ( B. Kumar et al. 2019 ) , we demonstrate that dynamical ejections following a superwind phase can create a dense enough CSM as is needed to power the peak luminosity of SN 2017hcc. (a) Mass loss history of the sequence of MESA models with M_{\rm{init}}=17 M ⊙ , ~\alpha=3.63 , showing mass-loss rate ( \dot{M}\gtrsim 10^{-2} M ⊙ \rm{yr}^{-1} ) starting \sim 30 yrs before CC, due to episodes of dynamical ejections following a superwind phase with \dot{M}\gtrsim 10^{4} M ⊙ \rm{yr}^{-1} . (b) CSM density profile for the above MESA model sequence (in solid red), compared with the observationally inferred density profile (in dashed blue) using the mass-loss rate estimates for SN 2017hcc from X-ray observations of P. Chandra et al. 2022 as described in V.3 . (c) Column densities of neutral hydrogen calculated using the CSM density profiles in Figure 8(b) , compared to the measured X-ray column density (blue point) from Chandra observations ( P. Chandra et al. 2022 ) . Figure 8 : (a) Mass-loss rates from our M_{\rm{init}}=17 M ⊙ , \alpha=3.63 MESA model sequence; (b) resulting CSM densities from both sequences compared with observationally inferred values and (c) corresponding column densities of neutral hydrogen compared with measured X-ray column density for SN 2017hcc. (a) Mass loss history of two sequences of MESA models with M_{\rm{init}}=16 M ⊙ for ~\alpha=4.36 (in solid red) and \alpha=4.37 (in dashed brown), showing enhanced mass-loss rates ( \dot{M}\gtrsim 10^{-2}~ M ⊙ \rm{yr}^{-1} ) starting \sim 44 and \sim 81 yrs respectively before CC. (b) CSM density profiles for the above two MESA model sequences in Fig 9(a) (the \alpha=4.36 sequence is the solid red curve and the \alpha=4.37 sequence is the dashed brown curve), compared with observationally inferred profile (in dashed blue) for SN 2005ip ( N. Smith et al. 2009 ; S. Katsuda et al. 2014 ) . (c) Column densities of neutral hydrogen corresponding to the models shown in Figure 9(b) , compared to the measured X-ray column densities (in solid blue) from observations ( S. Katsuda et al. 2014 ; O. D. Fox et al. 2020 ) . Figure 9 : (a) Mass-loss rates from our M_{\rm{init}}=16 M ⊙ , \alpha=4.36 and 4.37 MESA model sequences; (b) the resulting CSM densities from both sequences compared with observationally inferred values and (c) corresponding column densities of neutral hydrogen compared against measured values for SN 2005ip. In Figure 8(c) , we present the neutral hydrogen column density calculated using the predicted CSM density profile of Figure 8(b) , along with column density measured from the single epoch of Chandra observations of SN 2017hcc, as presented in P. Chandra et al. 2022 . Our model prediction agrees with the observed column density within the uncertainties of its measured value. V.4 SN 2005ip SN 2005ip is the one of the best studied Type IIn SN with a long-lasting phase of strong interaction with its CSM hinting towards high mass loss rates ( \gtrsim 10^{-2} M ⊙ \rm{yr}^{-1} ) over the last \sim 10^{2} yrs before CC ( O. D. Fox et al. 2020 ) . Eruptive mass loss from LBVs have been invoked in the literature to explain the origin of the dense shell around SN 2005ip ( N. Smith et al. 2009 ; S. Katsuda et al. 2014 ) . Here, we illustrate that dynamical ejections following a strong superwind phase from pulsating RSGs could also lead to enduring phases of such heavy mass loss, as is needed to reconcile with measured column densities from Swift and Chandra X-ray observations of SN 2005ip ( S. Katsuda et al. 2014 ; O. D. Fox et al. 2020 ) . Figure 9(a) shows two sequences of MESA models both with M_{\text{init}}=16 M ⊙ , but with \alpha=4.36~\rm{and}~4.37 exhibiting such a sustained period of enhanced mass loss from dynamical ejections following a strong superwind phase with lower mass loss rates between 10^{-4}-10^{-3} M ⊙ \rm{yr}^{-1} . The dynamical ejections occur with an average mass loss rate \gtrsim 10^{-2} M ⊙ \rm{yr}^{-1} over several decades before CC, which leads to \gtrsim 1 M ⊙ of CSM material located close to the progenitor, as seen in Figure 9(b) . Our model predictions closely trace the observationally inferred CSM density, computed using a mass loss rate of 1.5\times 10^{-2} M ⊙ \rm{yr}^{-1} ( S. Katsuda et al. 2014 ) and a terminal wind speed of v_{\infty}=120 km/s ( N. Smith et al. 2009 ) , out to distances of \sim 5\times 10^{16} cm from the progenitor surface which is the location of the forward shock at \sim 2000 days post-explosion, assuming the shock velocity V_{\rm{SH}}\sim t^{-0.1} and has a value of 3000~\rm{kms}^{-1} at t=1000 days ( O. D. Fox et al. 2020 ) . At later times, corresponding to larger distances, the mass loss rates are estimated to be much lower at \sim(2-4)\times 10^{-4} M ⊙ \rm{yr}^{-1} ( N. Smith et al. 2009 ) , which is also reflected in our model densities caused due to matter lost in the superwind phase preceding dynamical ejections. The model with \alpha=4.37 , which has an earlier onset of dynamical ejections at ~80 yrs from CC, shows this drop in CSM density at a location closer to the observed extent of the dense shell around the progenitor ( O. D. Fox et al. 2020 ) . Figure 9(c) shows the column density profile of neutral hydrogen along the line of sight obtained using the CSM densities according to IV.3.3 . The calculated column densities from the model with \alpha=4.36 are in close agreement with available estimates from late-time Swift/Chandra X-ray observations of S. Katsuda et al. 2014 and O. D. Fox et al. 2020 , which are converted into radial coordinates from post-explosion times using the time evolution of the shock wavefront, as mentioned above. V.5 SN 1998S SN 1998S is considered to be the prototypical Type-IIn SN, with a mass loss rate estimate of 6\times 10^{-3} M ⊙ \rm{yr}^{-1} during the last \sim 15 yrs before CC and a much lower rate at earlier times ( I. Shivvers et al. 2015 ) , though J. Mauerhan & N. Smith 2012 showed substantial matter present as far out as r\sim 2\times 10^{17} cm from late-time spectroscopic observations 14 yrs post-explosion. Previously, the terminal velocity of the wind and the mass loss rate of the progenitor had been estimated to be 40-50 km/s and 1-2 M ⊙ \rm{yr}^{-1} respectively ( A. Fassia et al. 2001 ; D. Pooley et al. 2002 ) . Based on these studies, we use the following observed mass loss rate profile: \dot{M}_{\text{obs}}=\begin{cases}6\times 10^{-3}~\rm{M}_{\odot}~\rm{yr}^{-1},&r<10^{15}~\text{cm}\\ 2\times 10^{-4}~\rm{M}_{\odot}~\rm{yr}^{-1},&r>10^{15}~\text{cm},\end{cases} (8) along with a terminal wind speed v_{\infty}=40 km/s, v_{0}=0.1 km/s and R_{*}=1.1\times 10^{14}~cm to calculate the observationally inferred CSM density as per Equation 5 . (a) Mass loss history of the sequence of MESA models with M_{\rm{init}}=18 M ⊙ , ~\alpha=2.83 prior to CC, showing enhanced mass-loss rates ( \dot{M}\gtrsim 10^{-4} M ⊙ \rm{yr}^{-1} ) starting \sim 10^{4} yrs, due to PDSWs, followed by the onset of dynamical ejections at \sim 16 yrs from CC ( IV.2 ). (b) CSM density profile (in solid red) computed for the adjacent sequence of MESA models according to Equation 5 , compared with the observationally inferred estimate (in dashed blue) using the mass-loss profile given by Equation 8 for SN 1998S. Figure 10 : (a) Evolution of mass-loss rates for M_{\rm{init}}=18 M ⊙ , ~\alpha=2.83 MESA model sequences and (b) corresponding CSM density compared with observationally inferred estimates for SN 1998S. In left panel of Figure 10 , we present our 18 M ⊙ , \alpha=2.83 MESA model sequences which shows enhanced mass loss rates ( \dot{M}>10^{-4} M ⊙ \rm{yr}^{-1} ) due to superwinds from \sim 10^{3.5} yrs up to \sim 16.22 yrs before CC, after which there is a sudden increase in mass loss rate ( \sim 10^{-2} M ⊙ \rm{yr}^{-1} ) from episodes of dynamical ejections (as described in Section IV.2 ), until \sim 1.48 yr prior to CC. These properties are similar to the observed estimates for the mass loss of the progenitor of SN 1998S as discussed above, with mass loss rates as given by Equation 8 within a factor of \sim 2 of those in these MESA model sequences. The right hand panel of Figure 10 compares the CSM density predicted from the MESA models using Equation 5 with the observationally inferred values. The ”inner” CSM ( r<10^{15} cm) predictions differ from the observational estimated densities by up to an order of magnitude, which may arise due to the constant values assumed for the observed mass loss rate, stellar radius and the launch velocity of the wind at the surface of the star. Other evolutionary scenarios invoked to explain the observed light curve of SN 1998S, that requires a dense CSM nearby, include merger of a massive RSG with a compact object ( S. L. Schrøder et al. 2020 ) . However, the presence of two distinct shells as described above poses tension with this merger-driven explosion scenario, though episodic mass ejections may still occur during the common-envelope (CE) phase in such systems ( M. Clayton et al. 2017 ) . VI Discussions VI.1 Observational implications for the RSG problem Our MESA evolutionary sequences with the PDSW and subsequent dynamical ejections for initial masses \lesssim 18 M ⊙ , presented in IV , undergo late-stage heavy mass loss, creating the dense CSM around the progenitor star as is required to explain observations of the Type II SNe shown in V . S.-C. Yoon & M. Cantiello 2010 suggested that, considering their PDSW mass loss prescription, their exists a critical mass, M_{\rm{crit}}\sim 19-20 M ⊙ above which RSGs lose a large fraction of their H-rich envelopes prior to CC, without producing Type IIP SNe, reconciling with the so-called missing RSG problem inferred from observations of RSGs ( S. J. Smartt et al. 2009 ; S. J. Smartt 2015 ; B. Davies & E. R. Beasor 2020 ; C. S. Kochanek 2020 ; E. R. Beasor et al. 2025 ; Q. Fang et al. 2025 ) . We performed some calculations with higher initial mass in the above range, most of which led to runaway mass loss due to shock-driven mass ejections shortly following the onset of PDSW, in the very early stages of core-carbon burning. We could not evolve these runs further due to numerical convergence issues, but such runaway events also favor the scenario in which most of the H-rich envelope lost much before CC, in agreement with the observed lack of higher mass RSGs associated with Type IIP SNe. VI.2 Pulsation-driven mass loss in binary systems Large-amplitude pulsations can also drive enhanced mass loss in binary systems, both through PDSWs of the kind considered in this study, as well as mass transfer via pulsational Roche lobe overflow ( S. Mohamed & P. Podsiadlowski 2007 ) , by changing the Roche lobe radius and its impact on mass transfer in the presence of pulsation-driven winds ( T. Dermine et al. 2009 ) . M. Clayton et al. 2017 also investigated the possibility of dynamical mass ejections during the inspiral of a compact object within the CE of a merging binary system, demonstrating the viability of envelope ejection following episodes of strong compression. Such scenarios may also have profound impacts on the binary evolution outcomes of more massive stars – the majority of which are thought to have experienced at least one episode of interaction with a companion star during the course of their evolution ( H. Sana et al. 2012 ) . Hence, a systematic study of the effects of both pulsation-driven mass loss and shock-driven dynamical mass ejections is warranted in the context of massive binaries to quantify the impact on pre-SN evolution as well as CSM formation. Incorporating these mass loss mechanisms might also help to alleviate the existing tension between pre-explosion mass loss rates inferred from observations of Type Ib/c SNe ( M. R. Drout et al. 2016 ) and those measured from stripped progenitor stars in binaries ( Y. Götberg et al. 2023 ) . Furthermore, it has been proposed late mass-transfer episodes in binaries may be stable if they are pulsed, possibly as a consequence of pulsation instabilities in the envelopes of the giant donors in such systems ( P. P. Eggleton & C. A. Tout 1989 ) (for detailed estimates of all probable massive binary evolutionary channels leading to various types of SNe, refer P. Podsiadlowski et al. 1992 ). VI.3 Effects of rotation and metallicity The effect of rotation on the pulsational instability of RSG envelopes was examined by A. Heger et al. 1997 who found dramatic increases in L/M ratios due to the physical effects of rotation on the evolution of massive stars, even at typical values of surface rotational velocities of \sim 200~kms^{-1} which amounts to \lesssim 35\% of critical rotation. This effect is primarily due to an increase in helium core masses in the evolutionary models, which translates to higher luminosities during advanced phases of evolution. This property leads to a significant increase in the growth rates of the fundamental mode of the pulsational instability, which in turn would lead to further enhancement in the strength of the associated PDSW (as per Equation 2 ). S.-C. Yoon & M. Cantiello 2010 concluded that rotation could further lower the effective upper mass limit ( M_{\rm{crit}} ) of RSGs which are expected to explode as Type IIPs, in closer agreement with latest studies on the observed value of this limit ( E. R. Beasor & N. Smith 2022 ; E. R. Beasor et al. 2025 ) . This would also have consequences for the formation of Wolf-Rayet (WR) stars that are thought to be single star progenitors of Type Ib/c SNe ( N. Langer & S. E. Woosley 1996 ) , as more rapidly rotating RSGs might already show strong pulsations during core helium burning and lose sufficient mass to evolve into WR stars ( Gräfener, G. et al. 2012 ) . It would also imply lower initial masses for WR stars than predicted from standard non-rotating evolutionary models, thereby increasing the number of single star progenitors of Type Ib/c SNe ( S. E. Woosley et al. 1993 ) . Metallicity also plays a key role in driving mass loss through line-driven winds ( A. Heger et al. 2005 ; Mokiem, M. R. et al. 2007 ; L. Muijres et al. 2012 ) , with weaker winds predicted at lower metallicities ( I. Baraffe & M. F. El Eid 1991 ; E. R. Higgins et al. 2025 ; though see N. Mauron & E. Josselin 2011 ; K. Antoniadis et al. 2025 ) due to lack of metal lines needed to absorb sufficient number of photons which can impart necessary momentum to drive the wind. Due to this effect, it has been proposed that massive stars only evolve into cool RSGs above a critical metallicity ( P.-S. Ou et al. 2023 ) , below which they can advance through core helium or carbon burning while retaining most of their compact envelopes ( P.-S. Ou & K.-J. Chen 2025 ) . I. Baraffe et al. 2001 studied the pulsational stability of very massive stars of varying metallicity and found a transition for the mechanism driving these pulsations with increasing metallicity, with the \kappa -mechanism dominating for metal-rich counterparts of primordial stars that may end their lives without losing much mass ( D. Bahena & J. Klapp 2010 ) . This is attributed to the much longer growth timescales of nuclear-powered pulsational instabilities in metal-free stars on the main sequence, which quickly stabilize after evolving off the main sequence. However, Moriya, Takashi J. & Langer, Norbert 2015 demonstrated that pulsationally driven winds could be an efficient way for very massive stars to lose a substantial part of the envelopes in the RSG phase before explosion, even at zero metallicity. Furthermore, the prospect of dynamical mass loss following subsequent shock breakout in the outer layers of envelopes of RSGs in such pristine regimes, also deserves attention, particularly in the context of dust formation in the high-redshift universe ( T. H. Greif 2015 ) as observed by large-scale surveys such as the JWST and the LSST. VI.4 Implications for pre-explosion dust formation around RSGs RSG stars are often associated with a dusty circumstellar medium ( J. J. Walmswell & J. J. Eldridge 2012 ; G. C. Clayton et al. 2009 ; E. Cannon et al. 2021 ; Z. Niu et al. 2023 ; G. Folatelli et al. 2025 ) . Yet the modest mass loss rates ( \sim 10 -6 M ⊙ ) characterizing RSG winds are found unsuitable to synthesize dust grains from the gas-phase atoms ( I. Cherchneff 2013 ) . Dust formation requires moderately low temperatures while the gas densities are still high to allow series of collisions leading to the formation of gas-phase precursors ( A. Sarangi et al. 2018 ) . In the RSG with a dense CSM, the enhanced mass loss can aid the formation of chemical compounds in the wind, depending on the wind velocities. As we have shown, each stellar model evolves in unique routes, which will result in a unique distribution of molecules and dust grains. If the enhanced mass loss is triggered during the He-burning phase or early C-burning phase, the dust formed in that gas will fly far from the star by the time the star goes to SN. This dust may already integrate with the ambient interstellar medium (ISM), and enhance the dust budget in the galaxy. Moreover, given the large distance, they are shielded from the strong ionizing SN flashwave at the point of core-collapse. However, this dust is difficult to detect in stellar spectroscopy in optical or IR, given it will be at a large distance (hence causing no significant extinction to the stellar light curve) and cold temperatures (making it indistinguishable with the ambient ISM). On the other hand, in the RSGs with enhanced mass loss at the very end of their lives, the dusty CSM significantly impacts the stellar light curve and its post-explosion IR signatures. In addition, the composition of the CSM may also be altered based on the nature of the stellar evolution and mass loss. Even though the CSM is often identical in composition with the H-rich stellar envelope, a small variation in the abundance of the metals will impact the composition and dust masses. The formation of dust precursors in the gas is often controlled by some bottleneck gas-phase reactions ( A. Sarangi & I. Cherchneff 2013 ) . On the contrary, the growth of grains, which decides the grain size distributions, is proportional to time ( H. Hirashita 2012 ) . The population of larger grains are more resilient to destruction processes post SN explosion, or shocks in the ISM ( E. R. Micelotta et al. 2018 ) . In that regard, the timing of the enhanced mass loss plays key role in determining the grain sizes. Our follow-up study is on the formation of dust in the realistic winds of the RSGs that lead to the SNe we have modeled in this paper. VI.4.1 Numerical and computational challenges in obtaining pre-SN yields In order to predict pre-explosion yields to obtain dust masses, our MESA runs need to be evolved through explosive oxygen and silicon burning that occurs on day-hour timescales. As already discussed, accurate energy generation requires the use of large nuclear networks (e.g. mesa_128.net ) with implicit hydrodynamics and \sim 10^{5} timesteps causing severe slowdowns (with a single run requiring more than a week on a 32 -core CPU machine), making a similar systematic exploration of our parameter space in M_{\rm{init}} and \alpha , prohibitively expensive. A hybrid computing strategy – involving zone-by-zone parallelism on a GPU by offloading the nuclear network calculations that form a major bottleneck of MESA with large nuclear networks – seems a promising approach to significantly reduce the large computational cost of evolving our runs through to CC. With an initial grid of such models, the recently proposed Nuclear Neural Network (NNN) framework of A. Grichener et al. 2025 can be employed to further refine the grid that seems essential to study stochastic effects of convection, shell merging etc. on final yields and associated dust masses. VII Conclusions This work presents a comprehensive, end-to-end investigation of how pulsating RSGs can create a dense, possibly dusty, CSM through enhanced mass loss episodes in the final years before CC, which shapes the multi-wavelength appearance of the ensuing SN explosion. From a dense grid of MESA models of varying M_{\rm{init}}=12-20 M ⊙ and PDSW strength (in terms of the parameter \alpha=2-5 , as in S.-C. Yoon & M. Cantiello 2010 ), as well as subsequent shock-driven dynamical ejections ( M. Clayton 2018 ) , the mass loss histories of the model sequences are coupled to an accelerated \beta -law wind profile to construct spherically symmetric CSM density and column-density profiles that are directly compared to multi-epoch observations of SNe 1998S, 2005ip, 2017hcc, 2020ywx, and 2023ixf. We find decent agreement (within a factor of few) between the observations and our model predictions for M_{\rm{init}}>15 M ⊙ and \alpha>2 which give enhanced mass loss rates ( \dot{M}\sim 10^{-4}-10^{-2} M ⊙ yr -1 ) in the final decades to centuries before explosion. Such late phase heavy mass loss produces sufficiently dense CSM close to the SN progenitor to explain early-time observations (e.g. using flash-spectroscopy, X-rays and radio wavelengths) as well as late epoch estimates of X-ray column densities (Section V ). Our results quantitatively demonstrate that single star evolutionary pathways with pulsation-driven mass loss and dynamical ejections can account for the observed diversity in the properties of Type II SN environments. In future, missing physics such as effects of varying rotation and metallicity as well as binary interaction needs to be incorporated to improve the realism of our models, all of which are expected to have broader implications both for massive star evolution as well as their final fates in terms of the nature of the eventual SN. Also, the pulsation properties of other classes of massive stars such as WR stars ( L. Grassitelli et al. 2016 ; L. Grassitelli et al. 2018 ) and LBVs ( J. A. Guzik et al. 1999 ; S. Justham et al. 2014 ) deserve investigation as they are supposed to be prime candidates for progenitors of both Type Ib/c and superluminous SNe. In addition, further improvements in our understanding of the interplay of radial pulsation and convective motions in RSG envelope through multidimensional simulations and its role in driving mass loss will have important implication for SN modeling at large and their impact on cosmic evolution and dust formation ranging from our local environment to the high redshift universe in the era of large-scale surveys like the JWST and the LSST. VIII