Changes between Version 13 and Version 14 of u/erica/PoissonPlusHydro


Ignore:
Timestamp:
09/16/13 10:38:39 (11 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/PoissonPlusHydro

    v13 v14  
    4747'''Source step''' [[latex($\rightarrow$)]] [[latex($\vec{u}_i ^{n+1} = <\rho^{n+1/2}=\rho^{n+1}, u^{n+1}, E^{n+1}>$)]]
    4848
    49 = Boundary Conditions =
    5049
    51 To test my code with the Jeans instability test, I used periodic boundary conditions on the box and the poisson solver. For periodic BCs on the elliptic solver, this required subtracting off the mean density from the vector for rho, and using this as the source function.
    52 
    53 = Code Outline =
    54 
    55 1. Sets up problem scales
    56 2. Initializes the grid with the prescribed perturbations for Jeans instability
    57 2. Sets boundary conditions on box
    58 3. Finds max speed and uses CFL condition to get dt
    59 4. Takes a hydro step; i.e. solves the local Riemann problem, gets fluxes, updates cells
    60 5. Takes a source step, finds the mean of the density distribution, sets up the source term vector f=4 Pi G (rho-rhoavg), sends to the Jacobi solver, finds the solution for the gravitational potential phi, using phi, updates the velocity and energy of the cells
    61 6. Updates time and checks whether tfinal has been reached
    62 7. Sets boundary conditions on box
    63 8. Gets dt
    64 9. ...
    6550
    6651= Update Formulas =