oph:cluster:openfoam
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
oph:cluster:openfoam [2024/07/16 10:45] – carlo.cintolesi@unibo.it | oph:cluster:openfoam [2024/07/16 10:49] (versione attuale) – versione precedente ripristinata (2023/08/18 08:35) carlo.cintolesi@unibo.it | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ====== | + | ====== |
- | by // | + | |
+ | Some versions of OpenFOAM have been installed on the cluster and other utilities and versions can be implemented. At present, a module for OpenFOAM has not been created, but the source code has been compiled directly. It is recommended that modules be created in the future or that the container[[oph: | ||
- | [[https:// | + | === Which OpenFOMA |
- | The Jupyter environment | + | Installed versions of OpenFOAM |
+ | * OpenFOAM 6 (with ThirdParty) | ||
+ | * OpenFOAM 9 (with ThirdParty) | ||
+ | For any version updates or installation of additional software, please contact [[carlo.cintolesi@unibo.it|Dr C. Cintolesi]] | ||
+ | === How to load and use OpenFOAM === | ||
+ | OpenFOAM modules must be loaded into the configuration file '' | ||
- | === 1. Create a container with Apptainer | + | |
- | The user can either create a new container from scratch or build it from an existing Docker image, as done [[https:// | + | which, for example, loads version 9. For other versions, substitute the desired version number. |
+ | It is also recommended to load the configuration | ||
- | apptainer build --sandbox container_name/ docker://jupyterhub/jupyterhub | + | |
- | The '' | + | so that you can switch from one version to another via the following aliases: |
- | Find directories within the sandbox that are not writable and make them writable | ||
- | find container_name -type d -not -writable -exec chmod +w {} + | ||
- | |||
- | Enter the container shell (from the path where the container is located). | ||
- | |||
- | apptainer shell --writable container_name | ||
- | |||
- | Check the version of installed packages (e.g., JupyterHub) | ||
- | |||
- | apptainer exec --writable container_name jupyterhub --version | ||
- | |||
- | Packages can be updated or installed manually within the container, if they are not already available in the baseline configuration. | ||
- | |||
- | pip install jupyter notebook jupyterlab | ||
- | |||
- | Use ' | ||
- | |||
- | |||
- | === 2. Launch Jupyter from the container | ||
- | |||
- | When using Jupyter for data analysis or any other task requiring computational resources, the user must first request and allocate resources on a compute node before launching the Hub. This can be done using the '' | ||
- | |||
- | salloc -N 1 --cpus-per-task=1 --time=02: | ||
- | |||
- | Once the resources have been allocated, enter the container shell and launch JupyterLab | ||
- | |||
- | apptainer shell --writable container_name | ||
- | jupyter lab --ip=0.0.0.0 --port=8000 --no-browser | ||
- | |||
- | In a separate terminal window, login to the cluster frontend, and then connect to the allocated node (the node is displayed after running the '' | ||
- | |||
- | ssh -N -L 2010: | ||
- | |||
- | In a new terminal window from the local machine, connect to the cluster with | ||
- | |||
- | ssh -N -L 2010: | ||
- | |||
- | Where '' | ||
- | |||
- | Finally, navigate to '' | ||
- | |||
- | Use '' |
oph/cluster/openfoam.1721126758.txt.gz · Ultima modifica: 2024/07/16 10:45 da carlo.cintolesi@unibo.it