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.
Metadata
Release files for toughanimator 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toughanimator-1.0.4.tar.gz | 88.2 kB | Without provenance | Details for toughanimator-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toughanimator-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for toughanimator-1.0.4-py3-none-any.whl |
Total release size: 192.0 kB
Release files / toughanimator-1.0.4.tar.gz
| Download URL | toughanimator-1.0.4.tar.gz |
|---|---|
| Size | 88.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1fb15f27305ff02d7eec5cb068ea32d2a2d69edbb87864af98a560f5212b090
|
|
BLAKE2b-256 checksum How to use checksums |
b33dbd7123095ab231ada1049a0cf5bff3ac1de5bed8bef5afecb30d7f3e7f5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / toughanimator-1.0.4-py3-none-any.whl
| Download URL | toughanimator-1.0.4-py3-none-any.whl |
|---|---|
| Size | 103.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13d98432044d8caf04d55eb6c87c9cae85c4d67246b680666dc54a562756d5d6
|
|
BLAKE2b-256 checksum How to use checksums |
8d3313e0290dec56213392cd5ccaddbb08a988e186dd61c0291eec2f2da6f9bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Security for toughanimator 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.