A tool for visualizing TOUGH simulation outputs.
Project description
ToughAnimator
Installation
-
Clone the Repository:
git clone https://stride-c.synology.me:50000/ytkuof/toughanimator.git cd toughanimator
-
Create a Python Virtual Environment:
python -m venv .env
-
Activate the Virtual Environment:
- Windows:
.env\Scripts\activate.bat
- Linux/Mac:
source .env/bin/activate
- Windows:
-
Install Dependencies:
pip install -r requirements.txt
-
Install ToughAnimator Locally:
pip install .
This will install ToughAnimator in your Python virtual environment.
Run Your Own Case with ToughAnimator
-
Create a New Case:
-
Create a new folder under
unresolve. Name the folder according to your case (e.g.,unresolve/your_case_name). -
Copy all necessary TOUGH result files into the new folder.
-
Copy the
config.jsonfile from an existing case in thetest_casesdirectory or create a newconfig.jsonfile in the new folder. The file should have the following structure:{ "case_name": "your_case_name", "input_files": [ "name_of_your_input_file (e.g., flow.inp)", "MESH", // For a separate mesh file, if applicable "INCON" // For a separate INCON file, if applicable ], "output_files": [ "name_of_your_output_file (e.g., conn.csv)", "name_of_another_output_file (e.g., mesh.csv)", "name_of_other_output_file (add or remove as needed)" ], "corners_file": "name_of_your_corners_file (e.g., corners.csv)", "nas_path": "path/to/nas", "notes": "Any additional notes" }
-
The
config.jsonfile should contain these fields:-
case_name: The name of your case.
-
input_files: A list of TOUGH input files (e.g.,
flow.inp). You can include multiple input files, but they must contain theINCON,ELEME, andCONNEblocks. -
output_files: A list of output files (e.g.,
conn.csv,mesh.csv). Only CSV format files are currently supported. -
corners_file: The name of the corners file (e.g.,
corners.csv). This field is optional and can be omitted if not applicable.- To obtain the corners file, open the 3D Results in your PetraSim project, select Export Data from the File menu, and on the right side of the file-saving window, set the Interpolation type to Interpolate to cell corners. Save the file as CSV.
-
nas_path: The path to the NAS (Network Attached Storage) location where the case files are stored. This field is optional.
-
notes: Any additional notes or comments about the case. This field is optional.
-
-
-
Run the Script:
-
Ensure the virtual environment is activated.
-
Open
toughanimator/run.pyin VS Code and select Run Without Debugging (Ctrl+F5) or run the script from the command line:python run.py
-
Run an Existing Case with ToughAnimator
-
Set Name and Directory:
- Open
toughanimator/run.py. - Modify the
dir_nameandcase_namevariables to match your case directory and name.
- Open
-
Run the Script:
-
Ensure the virtual environment is activated.
-
Open
toughanimator/run.pyin VS Code and select Run Without Debugging (Ctrl+F5) or run the script from the command line:python run.py
-
Acknowledgments
Special thanks to the TOUGH3 development team for their outstanding work on the TOUGH suite of tools.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toughanimator-0.1.9.tar.gz.
File metadata
- Download URL: toughanimator-0.1.9.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fbb64c214fac108361a069256309771f055c53c61d806ee0f05ff2accb8f08f
|
|
| MD5 |
968b6d0a142636fc454708a0cbaf1651
|
|
| BLAKE2b-256 |
c69dd31cb6779ca5cfab42d852f28e2d869a21f0387246ac92f1123297ebb29e
|
File details
Details for the file toughanimator-0.1.9-py3-none-any.whl.
File metadata
- Download URL: toughanimator-0.1.9-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aae5f776b25f86f1e22ba0fde3466a2459e3f17c0cdb2e93484e4802066daf4
|
|
| MD5 |
e691bb81bc15eef4d552ef243283d408
|
|
| BLAKE2b-256 |
eff9701d447845765e69db05d77b8998fe34f9d1600611ebbe8b1d1f23158a16
|