Ignore:
Timestamp:
May 11, 2015, 4:25:55 PM (10 years ago)
Author:
milmd
Message:

UTIL/SPECTRA. Correction of some bugs with spectra average. Now tested on Ciclad.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/SPECTRA/readme

    r1404 r1426  
    5151FC=pgf90 or ifort
    5252
     53for some machine, may load netcdf module:
     54module load netcdf
     55
     56for ciclad machine, if using netcdf4:
     57in makefile change line 7
     58LDFLAGS=-L${netcdfpath}/lib -lnetcdf -L${spherepackpath}/lib -lspherepack
     59and replace by
     60LDFLAGS=-L${netcdfpath}/lib -lnetcdf -lnetcdff -L${spherepackpath}/lib -lspherepack
     61
    5362make spectra_analysis
    5463
     
    5665
    5766> compile test program
    58 make test_analysis
     67make test_harmonic
    5968
    6069> create harmonic winds
    61 ./test_analysis
     70./test_harmonic
    6271
    63 > compute kinetic energy spectrum for one harmonic
     72>>>>> some examples
     73
     74> compute kinetic energy spectrum for one harmonic test file
     75
    6476./spectra_analysis harmonic_64x48_lmdz_22.nc -alt none -time none -o harmonic_64x48_lmdz_22_spectra
    6577
     78output file harmonic_64x48_lmdz_22_spectra contains:
     79first column -> harmonic numbers
     80second column -> amplitude of harmonic component, here only component 22 is non zero.
     81
     82
     83> compute kinetic energy spectrum with temporal and vertical mean
     84
     85./spectra_analysis diagfi.nc -t 5 -mt 10 -z 15 -mz 2 -o spectra
     86
     87compute kinetic energy spectrum for t=5,6,...,15 and z=15,16,17 and average all spectra obtained.
     88
     89
     90> compute divergence and rotational part of kinetic energy spectrum
     91
     92./spectra_analysis diagfi.nc -t 5 -z 15 -o spectra -divrot
     93
     94in spectra file, will find the rotationnal and divergent part of the decomposition of the velocity on the vectorial spherical harmonic basis:
     95#Spherical  diagfi.nc                                         
     96#wavenumber t=  150 z=    1                                   
     97#           spec_tot        spec_div        spec_rot         
     98    0       0.000000E+00    0.000000E+00    0.000000E+00     
     99    1       0.119347E+01    0.101938E+01    0.174095E+00     
     100    2       0.530388E+00    0.250037E+00    0.280350E+00     
     101    3       0.106973E+01    0.589848E+00    0.479880E+00     
     102...
     103
     104
     105>>>>> output interpretation
     106
     107One can plot velocity projection against spherical wavenumber with gnuplot for instance.
     108In geostrophic turbulence, a n^-3 slope must appear for wavenumber n=1..100(?) and a n^-(5/3) slope for higher n.
     109
     110
     111>>>>> reference
     112J. N. Koshyk, 2001, The Horizontal Kinetic Energy Spectrum and Spectral Budget Simulated by a High-Resolution Troposphere–Stratosphere–Mesosphere GCM
     113
     114
     115
     116
     117
     118
Note: See TracChangeset for help on using the changeset viewer.