1. 28 Jan, 2018 1 commit
    • David Deepwell's avatar
      Implement surface stress calculation · 42803c3b
      David Deepwell authored
      The stress along the bottom and top surfaces are calculated
      and written to a file (stresses_(top/bottom).txt) using the function
      stresses_top and stresses_bottom in BaseCase. These functions are
      especially useful with mapped cases.
      42803c3b
  2. 10 Jan, 2018 1 commit
  3. 02 Nov, 2017 1 commit
  4. 24 Oct, 2017 1 commit
  5. 18 Oct, 2017 1 commit
  6. 16 Oct, 2017 1 commit
  7. 25 Aug, 2017 2 commits
    • David Deepwell's avatar
      Allow BPE calculation to handle dimensional density fields · 9c3c6367
      David Deepwell authored
      The BPE calculation had assumed that the density field was
      non-dimensionalized as the density anomaly. An optional argument
      allows the user to set the density field as dimensional.
      9c3c6367
    • David Deepwell's avatar
      Clean up BPE code · 2621238f
      David Deepwell authored
      The main while loop in the triple loop has been better optimized to
      remember the location from the previous loop step. This results in
      only one Nx loop over the entire triple loop. Reducing the loop
      from O(Nx^2*Ny*Nz) to O(Nx*Ny*Nz).
      
      Now tracking the partial sums of dx, and the volume of the hill.
      This makes comparisons for finding depths easier later on.
      
      And other minor coding changes.
      2621238f
  8. 04 Aug, 2017 1 commit
  9. 05 May, 2017 1 commit
    • David Deepwell's avatar
      Create BPE calculator · 8701eded
      David Deepwell authored
      The background Potential Energy (BPE) is calculated in
      compute_Background_PE in Science.cpp. The APE can
      be calculated afterwards from the BPE and PE from the
      diagnostic file.
      8701eded
  10. 25 Apr, 2017 1 commit
    • David Deepwell's avatar
      Add case for computing derivatives and vorticity · 92b79931
      David Deepwell authored
      A new case file, derivatives.cpp, gives a means to compute
      derivatives of any field or to compute vorticity components.
      The vorticity calculation in Science is completely re-written
      so-as to also work for mapped grids.
      
      The derivatives file is built to compute secondary variables
      after a run has already been completed. This uses spins' built-in
      derivative toolkit allowing multiple variables to be calculated
      in parallel. A derivative field (one that is the derivative of
      another) is denoted by an underscore followed by the direction
      the derivative was taken in (ie. u_x is the x derivative of u).
      92b79931
  11. 05 Mar, 2017 1 commit
    • David Deepwell's avatar
      Add case for computing derivatives and vorticity · f290151b
      David Deepwell authored
      A new case file, derivatives.cpp, gives a means to compute
      derivatives of any field or to compute vorticity components.
      The vorticity calculation in Science is completely re-written
      so-as to also work for mapped grids.
      
      The derivatives file is built to compute secondary variables
      after a run has already been completed. This uses spins' built-in
      derivative toolkit allowing multiple variables to be calculated
      in parallel. A derivative field (one that is the derivative of
      another) is denoted by an underscore followed by the direction
      the derivative was taken in (ie. u_x is the x derivative of u).
      f290151b
  12. 15 Dec, 2015 1 commit
  13. 17 Jun, 2014 1 commit
    • Christopher Subich's avatar
      Include sanity checking for quadrature weight init · c6a0c6d5
      Christopher Subich authored
      The quadrature weight "get" functions will now check whether the
      corresponding array has been initialized (length >= 1) before returning
      the array.  This will catch errors where quadrature weights are used
      before being initialized.
      c6a0c6d5
  14. 30 Jul, 2012 2 commits
    • Christopher Subich's avatar
      Addition of read_2d_restart · 206ac75c
      Christopher Subich authored
      From a version of this code that was floating around, added read_2d_restart
      to Science.[ch]pp; this reads a 2D array from disk that was previously
      written by a SPINS job and extends it along the y-dimension to fill the
      given array; this is useful for extending 2D runs to 3D.
      206ac75c
    • Christopher Subich's avatar
      Initial commit · 58fbdb5d
      Christopher Subich authored
      This is the initial commit of SPINS to a git repository, coming from
      an essentially unmanaged environment.  While this is a *complete*
      archive, this is probably not the most useful form for development
      going forward.  Notably, the future management should be:
      
      1) Pare down the case files
      
      2) Establish branches for individual users.  Not as a long-term goal,
         but instead to keep user-specific case files from lingering in
         the main repository long after their use is obsolete.
      
      2b) Establish semipermanent branches for typical users.  A release
         branch should include the basic documentation cases, a benchmark
         case should include benchmarking cases, and there are probably
         others that aren't coming to mind now.
      
      3) Add helpful MATLAB processing scripts to the repository.  Too
         much of that is ad-hoc now, completely unmanaged.
      
      4) For papers/etc, establish tagged versions.
      58fbdb5d