Changes between Version 23 and Version 24 of u/erica/JeansTest


Ignore:
Timestamp:
07/25/13 10:29:39 (12 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/JeansTest

    v23 v24  
    149149Thus we should see the characteristic growth rate of [[latex($\omega$)]].
    150150
     151For further info, you can download the Mathematica calculations [http://www.pas.rochester.edu/~erica/AstroCalcs.nb here]
     152
     153and the code
     154[http://www.pas.rochester.edu/~erica/JeansInstabProblem.f90 here]
    151155
    152156= Results =
     
    154158Analytic function -
    155159
    156 Since I am having difficulty saving an initial density function in astrobear for use with !ProblemBeforeStep, I just plotted the analytical function for the initial density perturbation and the perturbation after an e-folding time in Mathematica. The e-folding time in physical units is ~6 Myr, and in computational units corresponds to t = 0.0016. 
     160Here is the plotted analytical function for the initial density perturbation and the perturbation after an e-folding time in Mathematica. The e-folding time in physical units is ~6 Myr, and in computational units corresponds to t = 0.0016. 
    157161
    158162
     
    164168t=1/omega
    165169
    166 These next plots are what I would expect AstroBEAR should give us after 1) strictly initializing a sinusoidal density perturbation, and 2) allowing it to evolve in time with self-gravity turned on. These results are as follows:
     170These next plots show AstroBEAR's output using density, velocity, and pressure perturbations described earlier:
    167171
    168 [[Image(rhoFinalAbear.png, 35%)]]t=0
     172[[Image(JeansInit23July2013.png, 35%)]]t=0
    169173
    170 [[Image(rhoFinal2Abear.png, 35%)]]t=1/omega
     174Vx is in red, rho is in green. The density peaks at the zero's of Cos(kx). E.g., a local max is at 1. The vx perturbation is a Sin(x) function, and it has minima that corresponds with the density maxima. This produces converging flows at the max in density, as you would expect you need to develop the Jeans instability.
    171175
    172 These are using periodic physical and elliptical BCs.
     176[[Image(JeansFinal23July2013.png, 35%)]]t=5/omega
    173177
    174 Now, a query-over-time of rho at r = (1,0,0) produces the following output:
     178By the end of the sim, the density perturbation has grown a little, but velocity has grown a lot.
     179
     180(These are using periodic physical and elliptical BCs, and an ideal EOS with gamma = 1.0001).
     181
     182Now, a query-over-time of rho at r = (1,0,0) produces the following output when compared to the analytical result:
     183
     184[[Image(GrowthRate.png, 35%)]]
     185
     186Pretty tight fit!
    175187
    176188
    177 At t=0.0016
    178189
    179 [[Image(expRho1.png, 35%)]]
    180 
    181 And at t=0.005:
    182 
    183 [[Image(rho0time.png, 35%)]]
    184 
    185 It looks like exponential growth...
    186 
    187 Makes me wonder:
    188 
    189 1) Scaling error?
    190 
    191 2) Error in analytic function at t=6 Myr?
    192 
    193 Here's the last curiosity, when I look at the frame where the density = e*rhoInit, the peaks match the 'analytical function' I plotted in Mathematica, but the valleys don't. .
    194 
    195 [[Image(rhoE.png, 35%)]]
    196 
    197 
    198 [[Image(RhoFinal.png, 35%)]]
    199 
    200