-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparameters.py
More file actions
66 lines (58 loc) · 2.39 KB
/
Copy pathparameters.py
File metadata and controls
66 lines (58 loc) · 2.39 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
59
60
61
62
63
64
65
66
import numpy as np # Numerical library
################################################################################
# Setup and definitions
################################################################################
# Output filename
output_prefix= 'Beff'
# DPI for the quality of the plotted figure
fig_dpi=200
stype = ['real','imag','ampl','phase']
###### Setup what to plot:
field_component=[ 1, 1, 1, 1, 1, 1, 2, 2, 2 ]
# 0-hwa, 1-hwt, 2-hwp
# Frame of reference: "cartesian" (x,y,z), "spherical" (\theta,\phi,r), or "local" (mxs, mx(mxs), m):
frame = "spherical"
# Electric field direction:
Efield = [0.0,1.0,0.0]
# Spin accumulation direction:
deltas = np.cross([0.0,0.0,1.0],Efield)
# Number of columns to be used in the figure (multiple of 3)
ncol=3
# Double angles to 360 degrees or not:
double_angles=False
# Add prefactor 1/w
prefactor_frequency=True
#-------------------------- Graph appearance and attributes:--------------------
# Make colormaps or not
make_cm = True
# y-label for each line
ylabel = [r'Frequency (THz)', r'Frequency (THz)', r'Frequency (THz)']
# Maximum y (frequency) value
ymax = 3.5
# x labels for each graph
xlabel = [r'$\theta$ (degrees)', r'$\theta$ (degrees)', r'$\phi$ (degrees)', r'$\theta$ (degrees)', r'$\theta$ (degrees)', r'$\phi$ (degrees)', r'$\theta$ (degrees)', r'$\theta$ (degrees)', r'$\phi$ (degrees)']
# Title for each column
title = [r'$z\rightarrow y$',r'$z\rightarrow x$',r'$x\rightarrow y$']
# title = [r'Torque $\tau_x$ ',r'Torque $\tau_y$ ',r'Torque $\tau_z$ '])
# colormap label for each line
clabel_local = [r'Field-like component',r'Damping-like component',r'Longitudinal component']
clabel_cartesian = [r'$x$-component',r'$y$-component',r'$z$-component']
clabel_spherical = [r'$\theta$-component',r'$\phi$-component',r'$r$-component']
# Colormap
colormap='RdBu_r'
# colormap='seismic'
# Linewidth of frame and ticks
linewidth=1.5
# Title size
titlesize=14
#-------------------------- Cuts:--------------------
# Make cuts or not
make_cuts = True
# Component to make the cut: 0 - field ; 1 - frequency
comp = 1
# Values to make the cuts
cuts = [0.0]
# Colors of cuts in each (must have the same amount of rotation directions: z->y, z->x, x->y):
colors=['g','r','b']
# Line styles for different values of cuts (must have the same amount of values as number of cuts):
linestyles=['solid'] #, 'dashed'] # , 'dotted', 'dashdot' ]