You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+81-33Lines changed: 81 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@ See more info on the webpage:
6
6
7
7
[www.sscha.eu](https://sscha.eu)
8
8
9
-
10
9
## Easy installation through Anaconda
11
10
12
11
The SSCHA code comes as a python library, with computationally intense part speedup with C, Fortran and Julia. The easiest way to install is through Anaconda ([how to install anaconda](https://www.anaconda.com/download))
@@ -19,6 +18,12 @@ pip install ase julia mpi4py
19
18
pip install cellconstructor python-sscha tdscha
20
19
```
21
20
21
+
Video lessons from the 2023 School are available
22
+
=================================================
23
+
24
+
The full recordings, both of theoretical lectures, tutorials and Hands-on sessions can be found
25
+
in our youtube channel `SSCHAcode <https://www.youtube.com/@SSCHAcode>`_
26
+
22
27
This is the safest and best way to install the SSCHA. The first line creates a new pristine python environment with all the required libraries to compile the source code. The second line activates the newly installed environment. Then, the thrid command installs the additional dependencies, the last line compiles and install the SSCHA code.
23
28
24
29
To use the SSCHA, you must activate the python environment with:
@@ -61,66 +66,109 @@ If you use anaconda, they are automatically installed.
61
66
62
67
### Prerequisites
63
68
64
-
#### Python libraries
65
-
We need to install the prerequisites with pip:
66
-
```
67
-
pip install ase spglib
68
-
```
69
+
The SSCHA code is a collection of 3 python packages: CellConstructor, python-sscha and tdscha.
70
+
71
+
- `CellConstructor <https://github.com/SSCHAcode/CellConstructor>`_ : utility to manage phonon dispersions, atomic structures and crystal symmetries
72
+
- `sscha <https://github.com/SSCHAcode/python-sscha>`_ : This repository, relax with anharmonicity and compute static linear response properties.
73
+
- `tdscha <https://github.com/SSCHAcode/tdscha>`_ : Compute the dynamical linear response (Raman and IR, spectral functions)
74
+
75
+
More details about installations are in the official website `www.sscha.eu <https://sscha.eu/download>`_
76
+
77
+
Install with Anaconda
78
+
---------------------
79
+
80
+
The easiest way to install the code is through anaconda.
81
+
First make sure you have anaconda installed `(install anaconda) <https://www.anaconda.com/download>`_
82
+
83
+
The following commands are sufficient to install the full sscha suite and its dependencies.
To activate the environment and execute the SSCHA, run
93
+
94
+
.. code:: console
95
+
96
+
conda activate sscha
97
+
98
+
99
+
Manual installation
100
+
-------------------
69
101
70
-
#### Julia speedup
71
102
The SSCHA benefits from julia being installed in the system. If present,
72
103
it will be automatically used to speedup the calculation.
73
104
74
105
To install julia, refer to the official website [julialang.org/downloads/](https://julialang.org/downloads/)
75
106
Alternatively, to install julia on linux we can employ juliaup:
76
-
```
77
-
curl -fsSL https://install.julialang.org | sh
78
-
```
107
+
108
+
.. code:: console
109
+
110
+
curl -fsSL https://install.julialang.org | sh
111
+
79
112
Hit enter when asked to install julia.
80
113
81
114
Then, install the python bindings for julia with
82
-
```
83
-
pip install julia
84
-
```
115
+
116
+
.. code:: console
117
+
118
+
pip install julia
85
119
86
120
87
121
The tdscha extension to compute Raman and IR requires some additional julia packages that can be installed within a julia terminal. Update your configuration to have access to the newly installed julia
88
-
```
89
-
source ~/.bashrc
90
-
```
122
+
123
+
.. code:: console
124
+
125
+
source ~/.bashrc
126
+
91
127
Then, open a terminal and type `julia`. Inside the julia prompt, type `]`. The prompt should change color and display the julia version ending with `pkg>`
This should install the required libraries. Press backspace to return to the standard julia prompt and exit with
98
-
```
99
-
julia> exit()
100
-
```
136
+
137
+
.. code:: julia
138
+
139
+
julia> exit()
140
+
101
141
Now, you should be able to exploit the julia speedup in the TDSCHA calculations. It is not required to install julia before TDSCHA, it can also be done in a later moment.
102
142
103
143
104
-
### Compiling SSCHA
144
+
Compiling SSCHA
145
+
~~~~~~~~~~~~~~~
105
146
106
147
Once the prerequisites have been installed, python-sscha can be downloaded and installed with
107
-
```
108
-
pip install cellconstructor python-sscha
109
-
```
148
+
149
+
.. code:: console
150
+
151
+
pip install cellconstructor python-sscha
152
+
110
153
111
154
Alternatively, it is possible to use the most recent version from the [SSCHA GitHub](https://github.com/SSCHAcode) repository, under CellConstructor and python-sscha repositories. The installation is performed in this case with
112
155
113
-
```
114
-
python setup.py install
115
-
```
156
+
.. code:: console
157
+
158
+
pip install .
116
159
117
-
#### Personalize the compiler
160
+
161
+
Personalize the compiler
162
+
~~~~~~~~~~~~~~~~~~~~~~~~
118
163
119
164
If you have multiple compilers installed, and want to force pip to employ a specific fortran compiler, you can specify its path in the FC environment variable. Remember that the compiler employed to compile the code should match with the linker, indicated in the LDSHARED variable.
0 commit comments