Skip to main content

A tool for visualizing TOUGH simulation outputs.

Project description

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.

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

toughanimator-0.1.13.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toughanimator-0.1.13-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file toughanimator-0.1.13.tar.gz.

File metadata

  • Download URL: toughanimator-0.1.13.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for toughanimator-0.1.13.tar.gz
Algorithm Hash digest
SHA256 cb68f203605009f8c3d55a563eaff9bd454f0b3d9533de075a169833616d4f67
MD5 4c2c2e84f0c853d64e754f51dbae7829
BLAKE2b-256 e83c71fe40b2aad14071fdf819ec3521c9bc1b74c70d9e515af2c67d22597e73

See more details on using hashes here.

File details

Details for the file toughanimator-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: toughanimator-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for toughanimator-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 075b117e13fb2c6f3e0af7e18c132fb677b564486f0ca2dbb969e6556bd3b400
MD5 b68160e6cf7e2fcb537dda888819de5a
BLAKE2b-256 ba9b6b6650160af6e79e38cf3eb6f1dbbc6a1f36aa43fdbe63bf1a05590dd942

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page