recherche:softs:thermocalc

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
recherche:softs:thermocalc [29/01/2025 16:32] – [Scripting with TC-Python :] julien.favrerecherche:softs:thermocalc [19/06/2025 17:13] (Version actuelle) jules.lhostis
Ligne 1: Ligne 1:
- 
- 
 =====  Connection to the Thermo-Calc PC using X2Go: ===== =====  Connection to the Thermo-Calc PC using X2Go: =====
  
Ligne 14: Ligne 12:
 - **Username:** Your EMSE username   - **Username:** Your EMSE username  
 - **SSH Port:** 22   - **SSH Port:** 22  
-- **Session Type:** LXDE  +- **Session Type:** ICEWM  
  
 4) Leave the other options as default and save the session. 4) Leave the other options as default and save the session.
Ligne 25: Ligne 23:
  
 - **Login:** Lic-100117@thermocalc.com   - **Login:** Lic-100117@thermocalc.com  
-- **Password:** This password can be requested via email from **Quentin Gaillard** or **Julien Favre**.+- **Password:** Please contact Quentin Gaillard or Julien Favre by e-mail to request this password. The cost of obtaining the password is a coffee and a croissant.
  
-FYI, this activation will generate a permanent key somewhere in your "home folder,eliminating the need to repeat this process for future uses.+FYI, this activation will generate a permanent key somewhere in your hidden files, eliminating the need to repeat this process for future uses.
  
-8) **/!\ Once finished, properly close Thermo-Calc!**  +8) **/!\ Once finished, properly close the session!**  
 Disconnect by clicking the **Start Menu** -> **Logout**. In the popup window, click **Log out**.   Disconnect by clicking the **Start Menu** -> **Logout**. In the popup window, click **Log out**.  
 **Never shut down the PC**, as it would make it inaccessible to all users. **Never shut down the PC**, as it would make it inaccessible to all users.
Ligne 109: Ligne 107:
      ```      ```
 (Replace **XXX** with the process ID from `top`.) (Replace **XXX** with the process ID from `top`.)
 +
 +-----------------------------------------
 +
 +**Alternative file transfer method (SSH/Linux) - SSH-X/SSHFS**
 +
 +If you are connecting to the remote pc with **SSH**, you can 'mount' the remote pc's folders to your computed, and thus not need an **SSH** client.
 +
 +1) Install **sshfs** via your package manager (ex: `apt install sshfs` on unbuntu)
 +
 +2) Create a folder (directory) on **your** computer to act as a mount point (ex: `mkdir ~/thermocalc-remote`, meaning you create a directory called `thermocalc-remote` in your personnal folder)
 +
 +3) Use the following command to mount the remote pc folder to the one you just created :
 +  ```
 +  sshfs -o idmap=user <your EMSE id>@193.49.173.62:/home/local/EMSE2000/<your EMSE id> ~/thermocalc-remote
 +  ```
 +  
 +to be sure about the right path on the remote server, when in ssh, you can type `pwd` which will show you the path to the current (remote) folder
 +
 +4) *Extra tip* you can even create an alias in your (*local*) terminal to not have to type this big command :
 +- Edit your (*local*) `~/.bashrc` file and add this at the end of the file (if I am M. Jean Bon, creating the alias `mountemse` or whichever name you choose) :
 +
 +  ```
 +  # Custom aliases
 +  alias mountemse="sshfs -o idmap=user jean.bon@193.49.173.62:/home/local/EMSE2000/jean.bon ~/thermocalc-remote"
 +  ```
 +  
 +- Then restart a terminal session so that the change can go into effect, and type the command `mountemse` and after a password prompt, you will mount your remote folder on the thermocalc pc on your local machine, so that you can access its content from your file manager seamlessly.
 +
  
 ----------------------------------------- -----------------------------------------
Ligne 121: Ligne 147:
 **Using TC-Python** **Using TC-Python**
  
-To use **TC-Python**, you need to launch a **Python IDE**.  +To use TC-Python, you need to launch a Python IDE.  
 The recommended IDE is **Spyder**, as it directly utilizes the libraries installed on the PC without requiring a virtual environment.   The recommended IDE is **Spyder**, as it directly utilizes the libraries installed on the PC without requiring a virtual environment.  
  
Ligne 134: Ligne 160:
 /opt/Thermo-Calc/2025a/SDK/TC-Python/Examples/Miscellaneous/pyex_M_04_license.py /opt/Thermo-Calc/2025a/SDK/TC-Python/Examples/Miscellaneous/pyex_M_04_license.py
 ``` ```
-Executing this script will prompt you to enter your **username and password** (the same credentials as before). This process will generate a **permanent key**, stored in hidden folders, so you won’t need to repeat this step in the future.+Executing this script will prompt you to enter your **username and password** (the same credentials as before). This process will generate a permanent key, stored in hidden folders, so you won’t need to repeat this step in the future.
  
 **Running Scripts with TC-Python** **Running Scripts with TC-Python**
Ligne 222: Ligne 248:
     # GM(bcc) : énergie de Gibbs molaire de la phase bcc     # GM(bcc) : énergie de Gibbs molaire de la phase bcc
     # HM(*) : enthalpie molaire de toutes les phases     # HM(*) : enthalpie molaire de toutes les phases
 + 
 +# Some of the state variables that can be used in conditions are:
 +    T     temperature in the system
 +    P     pressure in the system
 +    N     total system size (in moles)
 +    B     total system site (in grams)
 +    N(<component> mole number of a component in the system
 +    X(<component> mole fraction of a component in the system
 +    B(<component> mass (grams) of a component in the system
 +    W(<component> mass fraction of a component in the system
 +    ACR(<component> activity of a component in the system
 +    MUR(<component> chemical potential of a component in the system
 +    N(<phase>,<component> mole number of a component in a phase
 +    X(<phase>,<component> mole fraction of a component in a phase
 +    B(<phase>,<component> mass (grams) of a component in a phase
 +    W(<phase>,<component> mass fraction of a component in a phase
 +    ACR(<phase>,<component> activity of a component in a phase
 +    MUR(<phase>,<component> chemical potential of a component in a phase
 +    H             enthalpy in the whole system
 +    HM(<phase>  enthalpy of a phase (per mole)
 +
 +
 </Code> </Code>
  
  • recherche/softs/thermocalc.1738164754.txt.gz
  • Dernière modification : 29/01/2025 16:32
  • de julien.favre