66 | | [[Image(2Dvs3D.png, 1000px)]] |
| 66 | Due to steep changes in density and gravitational potential close to the center of mass of a star, the point gravity in this model, some softening of these two parameters is needed.[[BR]] |
| 67 | With !PlummerSoftening being used to soften the gravitational potential and force in this module, a difference in the pressure and temperature profile arise between 2D and 3D models.[[BR]] |
| 68 | You can see how the gravity force varies between 2D and 3D:[[BR]] |
| 69 | 2D: |
| 70 | {{{ |
| 71 | GravityForce=-PlummerSoftening2D*mass*ScaleGrav |
| 72 | PlummerSoftening2D=2d0*pos/(sum(pos(1:nDim)**2)+r_soft**2) |
| 73 | }}} |
| 74 | 3D: |
| 75 | {{{ |
| 76 | GravityForce=-PlummerSoftening*mass*ScaleGrav |
| 77 | PlummerSoftening=pos/((sum(pos**2)+r_soft**2)**(1.5d0)) |
| 78 | }}} |
| 79 | [[BR]] |
| 80 | Clearly, the 3D model shows a steeper gradient in pressure.[[BR]] |
| 81 | The plot below indicates how the pressure gradient changes between 2D and 3D models and how it has important repercussions on the temperature profile as well.[[BR]] |
| 82 | [[Image(2Dvs3D.png, 400px)]] |
72 | | [[Image(3Dhse.gif, 800px)]] |
| 90 | For the first testing stage, the density profile of an AGB star (can be found [http://www.public.iastate.edu/~sdk/models/ here]) was loaded into the module, after calculating pressure and temperature profiles needed for an HSE condition, the generated profiles were compared with the reference model.[[BR]] |
| 91 | The following plot below compares the two models: |
| 92 | |
| 93 | [[Image(wiki:HydroStaticStar:plotshse2.png, 400px)]] |
| 94 | |
| 95 | In the second testing stage, the model was run to check for changes in velocity.[[BR]] |
| 96 | Clearly, the outcome that can be expected from an equilibrium condition is the absence of change in velocity. In the case of an equilibrium at rest, we would expect our model not to change over time.[[BR]] |
| 97 | Below is the density, pressure, temperature and mach profiles for our model.[[BR]] |
| 98 | [[Image(3Dhse.gif, 400px)]] |