Skip to content
Snippets Groups Projects
  1. May 19, 2022
  2. Mar 11, 2022
  3. Feb 25, 2022
  4. Jan 05, 2022
  5. Oct 07, 2021
  6. Jul 12, 2021
  7. Jan 11, 2021
  8. Apr 02, 2019
    • David Deepwell's avatar
      Add vortex stretching and enstrophy stretching production terms · a63ba535
      David Deepwell authored
      Vortex stretching is one of the dominant terms in both the
      vorticity equation and enstrophy equation. They also help in
      understanding the vortex dynamics and how energy at large scales
      cascades into small scales.
      
      The three components of vortex stretching (omega dot grad) u
      and the enstrophy stretching production (omega_i omega_j S_ij)
      are now included and can be computed with the derivatives
      case file. Files for vortex stretching terms are called
      vort-stretch<dim> where <dim> is one of x,y,z. The enstrophy
      stretching production file is called enst-stretch.
      
      As these quantities are the product of velocity gradients, care
      must be made to ensure adequate resolution is present.
      
      Update version to 2.0.3
      a63ba535
  9. Jul 05, 2018
    • Benjamin Storer's avatar
      Refactor Science.cpp to split functions into separate files. · dffa6f21
      Benjamin Storer authored
      === Science ===
      The directory Science/ now contains files corresponding to
      the various functions in the now-removed Science.cpp.
      
      Filenames correspond directly with the function name, and each
      file contains only one functions, with a few notable exceptions.
       - Science/get_quads.cpp contains get_quads_x, get_quads_y, and get_quads_z
       - Science/compute_background_PE contains the helper function
      compare_pairs
      
      The global variables _quadw_x, _quadw_y, and _quadw_z are declared as
      extern in Science.hpp and declared in Science/compute_quadweights.cpp
      
      === Makefile ===
      The Makefile has been modified accordingly. It now automatically detects
      all Science/*.cpp files and includes them in the compile recipe.
      
      The Makefile has also been tidied up a little bit by defining a variable
      SPINS_BASE which points to the core files.
      dffa6f21
  10. Mar 22, 2018
  11. Jan 30, 2018
  12. Jan 28, 2018
    • 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
  13. Jan 10, 2018
  14. Nov 02, 2017
  15. Oct 24, 2017
  16. Oct 18, 2017
  17. Oct 04, 2017
  18. Aug 25, 2017
  19. Aug 04, 2017
  20. May 05, 2017
    • 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
  21. Apr 25, 2017
    • 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
  22. Mar 05, 2017
    • 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
  23. Dec 15, 2015
  24. Jul 30, 2012
    • 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
Loading