Skip to content

ppak10/Flow3D

Repository files navigation

pytest

Flow3D

Python wrapper for FLOW-3D

Getting Started

  1. Installation
pip install Flow3D
  1. In the environment with Flow3D create a new Workspace:
flow3d-manage create_workspace test
  1. Navigate to created workspace directory and use package with manage.py file.
cd out/test

Workspace manage.py Usage

1. Initialize Simulation folders with prepin file(s)

Single Simulation

python manage.py prepin

Process Map of Simulations

python manage.py prepin_process_map

2. Run Simulations

Run all Simulations within Workspace

python manage.py simulate_all

3. Post Process Simulations

Run guipost for all simulations within a Workspace

python manage.py post_all_run_guipost

Chunk guipost generated flslnk.temp files.

python manage.py post_all_flslnk_to_chunks

Convert chunks to npz

python manage.py post_all_flslnk_chunks_to_npz

4. Visualize Simulations

Prepare visualization views for all simulations within workspace

python manage.py visualize_all_prepare_views

Generate visualization views for all simulations within workspace

python manage.py visualize_all_generate_views

5. Upload Simulations to HuggingFace

Create HuggingFace dataset for flslnk dataset

python manage.py huggingface_all_create_flslnk_dataset

Upload created flslnk HuggingFace dataset

python manage.py huggingface_all_upload_flslnk_dataset dataset_id=<DATASET_ID>

Upload all Workspace files to HuggingFace

python manage.py huggingface_all_upload_folder dataset_id=<DATASET_ID>

About

Python wrapper for Flow3D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published