Skip to main content

ToughAnimator

Installation

  1. Clone the Repository:

    git clone https://stride-c.synology.me:50000/ytkuof/toughanimator.git
    cd toughanimator
    
  2. Create a Python Virtual Environment:

    python -m venv .env
    
  3. Activate the Virtual Environment:

    • Windows:
      .env\Scripts\activate.bat
      
    • Linux/Mac:
      source .env/bin/activate
      
  4. Install Dependencies:

    pip install -r requirements.txt
    
  5. Install ToughAnimator Locally:

    pip install .
    

    This will install ToughAnimator in your Python virtual environment.

Run Your Own Case with ToughAnimator

  1. 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.json file from an existing case in the test_cases directory or create a new config.json file 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.json file 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 the INCON, ELEME, and CONNE blocks.

      • 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.

        Exporting corners file from PetraSim

      • 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.

  2. Run the Script:

    • Ensure the virtual environment is activated.

    • Open toughanimator/run.py in 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

  1. Set Name and Directory:

    • Open toughanimator/run.py.
    • Modify the dir_name and case_name variables to match your case directory and name.
  2. Run the Script:

    • Ensure the virtual environment is activated.

    • Open toughanimator/run.py in 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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toughanimator 1.0.3
File Size Uploaded Provenance Actions
toughanimator-1.0.3.tar.gz 68.3 kB Without provenance Details for toughanimator-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toughanimator 1.0.3
File Interpreter ABI Platform Actions
toughanimator-1.0.3-py3-none-any.whl Python 3 none any Details for toughanimator-1.0.3-py3-none-any.whl

Total release size: 148.1 kB

Release files / toughanimator-1.0.3.tar.gz

Download URL toughanimator-1.0.3.tar.gz
Size 68.3 kB
Tags Source
SHA-256 checksum
How to use checksums
35ad9b72bd28f90ef5a4efccc9c1396b97bcc2f29ddf6851d0c687823447058b
BLAKE2b-256 checksum
How to use checksums
643e5c2a66551e3e93dfbb5352de98ed2bee3028469152bb0b014d93e734566f
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.3-py3-none-any.whl

Download URL toughanimator-1.0.3-py3-none-any.whl
Size 79.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84251fed08f474c5388e3d2d7fba4b6e0e7da6bcf5a6510e881a1fefb87e4775
BLAKE2b-256 checksum
How to use checksums
9454942e64b6d575c2f495dc2119fa208d5daa1b95fff38e1e2ecb38248fd8d1
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.3

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.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page