- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpostvecp2python.py
More file actions
Latest commit
executable file
·58 lines (51 loc) · 1.71 KB
/
Copy pathpostvecp2python.py
File metadata and controls
executable file
·58 lines (51 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/python
# ===================================================================
# POSTVECP to PYTHON
# code written by Clement Baruteau (CB) and Lorenzo Valdettaro (LV).
# The code is adapted from the GUI code written by Vincent Prat and
# inspired from an IDL code originally written by Michel Rieutord and
# Lorenzo Valdettaro
# ===================================================================
# =========================================
# TO DO LIST
# =========================================
# - calculation of Lyapunov coefficients?
# - plot shell-integrated dissipation for a range of directories
# =========================================
# =====================
# IMPORT GLOBAL VARIABLES
# =====================
importpar
# =====================
# DISPLAY MERIDIONAL CUT
# =====================
ifpar.plot_zcut=='Yes':
fromplot_zcutimport*
plotzcut()
# =====================
# DISPLAY MERIDIONAL CUT in 3D via PARAVIEW
# =====================
ifpar.plot_zcut_3D=='Yes':
fromplot_zcutimport*
if (par.saveaspdf=='Yes'):
plotzcut('3D', 'pdf')
if (par.saveaspng=='Yes'):
plotzcut('3D', 'png')
# =====================
# DISPLAY MODE's SPECTRAL CONTENT
# =====================
ifpar.plot_spectrum=='Yes':
fromplot_spectrumimport*
plotspectrum()
# =====================
# DISPLAY EIGENFREQUENCIES (QZ RUN ONLY)
# =====================
ifpar.plot_qz_eigenfq=='Yes':
fromplot_qz_eigenfqimport*
plotqzeigenfq()
# =====================
# DISPLAY TOTAL DISSIPATION vs. FORCING FREQUENCY
# =====================
ifpar.plot_total_dissipation=='Yes':
fromplot_total_dissipationimport*
plottotaldissipation()