Changes between Version 8 and Version 9 of u/erica/TestingOpSplitting


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

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/TestingOpSplitting

    v8 v9  
    5858
    5959
     60= Boundary Conditions =
     61
     62To 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.
     63
     64= Code Outline =
     65
     661. Sets up problem scales
     672. Initializes the grid with the prescribed perturbations for Jeans instability
     682. Sets boundary conditions on box
     693. Finds max speed and uses CFL condition to get dt
     704. Takes a hydro step; i.e. solves the local Riemann problem, gets fluxes, updates cells
     715. 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
     726. Updates time and checks whether tfinal has been reached
     737. Sets boundary conditions on box
     748. Gets dt
     759. ...
     76
    6077= Results =
    6178