-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpostvecp2python.py
More file actions
executable file
·58 lines (51 loc) · 1.71 KB
/
postvecp2python.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
# =====================
import par
# =====================
# DISPLAY MERIDIONAL CUT
# =====================
if par.plot_zcut == 'Yes':
from plot_zcut import *
plotzcut()
# =====================
# DISPLAY MERIDIONAL CUT in 3D via PARAVIEW
# =====================
if par.plot_zcut_3D == 'Yes':
from plot_zcut import *
if (par.saveaspdf == 'Yes'):
plotzcut('3D', 'pdf')
if (par.saveaspng == 'Yes'):
plotzcut('3D', 'png')
# =====================
# DISPLAY MODE's SPECTRAL CONTENT
# =====================
if par.plot_spectrum == 'Yes':
from plot_spectrum import *
plotspectrum()
# =====================
# DISPLAY EIGENFREQUENCIES (QZ RUN ONLY)
# =====================
if par.plot_qz_eigenfq == 'Yes':
from plot_qz_eigenfq import *
plotqzeigenfq()
# =====================
# DISPLAY TOTAL DISSIPATION vs. FORCING FREQUENCY
# =====================
if par.plot_total_dissipation == 'Yes':
from plot_total_dissipation import *
plottotaldissipation()