Changes between Version 7 and Version 8 of Tutorials/JobSizes
- Timestamp:
- 11/14/13 12:14:56 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/JobSizes
v7 v8 53 53 54 54 {{{ #!latex 55 $v_{cs}=\sqrt{\ frac{p}{\gamma\rho}}$55 $v_{cs}=\sqrt{\gamma \frac{p}{\rho}}$ 56 56 }}} 57 where ''p'' is the [PrimitiveVariables primitive variable] pressure, gamma the ideal gas equation of state variable, and rho thedensity.57 where ''p'' is the pressure, gamma is the adiabatic index (ratio of specific heats), and rho the mass density. 58 58 59 59 This maximum speed--and its equivalents in MHD or with elliptic terms--determines the largest timestep that the code can take, bounded by the [http://en.wikipedia.org/wiki/Cfl_number CFL] number, ''C'', … … 77 77 === In practice, you're best off guessing === 78 78 79 Unfortunately, in reality the maximum wave speed may vary wildly over the course of a simulation, meaning such approximations should be taken with a grain of salt. Still, it would be good to incorporate this or some similar measure into the periodic state updates that AstroBEAR provides the user (as Jonathan's code does).79 Unfortunately, in reality the maximum wave speed may vary wildly over the course of a simulation, meaning such approximations should be taken with a grain of salt. 80 80 81 81 In practice, you can quickly get an idea of how long your simulation will take by looking at the time between data output frames. In most cases, there will be many individual time steps in between data frames, meaning that short-term differences between the length of time steps will be smoothed out. This allows a fairly good indicator of whether the time between frames is expected to decrease, increase, or stay the same.