Changes between Version 23 and Version 24 of u/erica/JeansTest
- Timestamp:
- 07/25/13 10:29:39 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/erica/JeansTest
v23 v24 149 149 Thus we should see the characteristic growth rate of [[latex($\omega$)]]. 150 150 151 For further info, you can download the Mathematica calculations [http://www.pas.rochester.edu/~erica/AstroCalcs.nb here] 152 153 and the code 154 [http://www.pas.rochester.edu/~erica/JeansInstabProblem.f90 here] 151 155 152 156 = Results = … … 154 158 Analytic function - 155 159 156 Since I am having difficulty saving an initial density function in astrobear for use with !ProblemBeforeStep, I just plotted theanalytical 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.160 Here 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. 157 161 158 162 … … 164 168 t=1/omega 165 169 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:170 These next plots show AstroBEAR's output using density, velocity, and pressure perturbations described earlier: 167 171 168 [[Image( rhoFinalAbear.png, 35%)]]t=0172 [[Image(JeansInit23July2013.png, 35%)]]t=0 169 173 170 [[Image(rhoFinal2Abear.png, 35%)]]t=1/omega 174 Vx 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. 171 175 172 These are using periodic physical and elliptical BCs. 176 [[Image(JeansFinal23July2013.png, 35%)]]t=5/omega 173 177 174 Now, a query-over-time of rho at r = (1,0,0) produces the following output: 178 By 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 182 Now, 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 186 Pretty tight fit! 175 187 176 188 177 At t=0.0016178 189 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