{"id":49832109,"url":"https://github.com/smi-lab-inha/pyiecwind","last_synced_at":"2026-05-13T21:04:38.177Z","repository":{"id":353080508,"uuid":"1217866212","full_name":"SMI-Lab-Inha/pyIECWind","owner":"SMI-Lab-Inha","description":"Modern Python package for IECWind-style IEC wind condition generation for OpenFAST InflowWind","archived":false,"fork":false,"pushed_at":"2026-04-22T10:52:17.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T12:28:33.594Z","etag":null,"topics":["iec","iecwind","inflowwind","nrel","offshore-wind","openfast","wind-energy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SMI-Lab-Inha.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-22T09:46:14.000Z","updated_at":"2026-04-22T10:52:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/SMI-Lab-Inha/pyIECWind","commit_stats":null,"previous_names":["smi-lab-inha/pyiecwind"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SMI-Lab-Inha/pyIECWind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMI-Lab-Inha%2FpyIECWind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMI-Lab-Inha%2FpyIECWind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMI-Lab-Inha%2FpyIECWind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMI-Lab-Inha%2FpyIECWind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SMI-Lab-Inha","download_url":"https://codeload.github.com/SMI-Lab-Inha/pyIECWind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMI-Lab-Inha%2FpyIECWind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iec","iecwind","inflowwind","nrel","offshore-wind","openfast","wind-energy"],"created_at":"2026-05-13T21:04:32.316Z","updated_at":"2026-05-13T21:04:38.172Z","avatar_url":"https://github.com/SMI-Lab-Inha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyIECWind\n\n[![CI](https://github.com/SMI-Lab-Inha/pyIECWind/actions/workflows/ci.yml/badge.svg)](https://github.com/SMI-Lab-Inha/pyIECWind/actions/workflows/ci.yml)\n![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n![OpenFAST](https://img.shields.io/badge/OpenFAST-InflowWind-0A7E8C)\n\n`pyIECWind` is a modern Python package for generating IEC wind-condition `.wnd` files for the OpenFAST `InflowWind` module.\n\nIt is designed as a practical successor to legacy `IECWind` workflows: easier to install, easier to understand, easier to script, and easier for new users to adopt without having to learn historical fixed-format input files first.\n\nIf people are still searching for `IECWind`, `IEC wind file generator`, or legacy NREL-style extreme wind case tooling, this repository is intended to be the place they can land and immediately use.\n\n## Supported IEC Standards\n\n`pyIECWind` is based on the IEC wind-condition framework from `IEC 61400-1`.\n\nThe current implementation explicitly supports:\n\n- `IEC 61400-1 Edition 1` for the normal wind-profile shear exponent option `iec_edition = 1`\n- `IEC 61400-1 Edition 3` for the normal wind-profile shear exponent option `iec_edition = 3`\n\nImportant scope note:\n\n- the `iec_edition` input in this package currently affects the power-law shear exponent selection used in the generated wind files\n- the supported extreme wind-condition families are the classic `IECWind`-style cases: `ECD`, `EWS`, `EOG`, `EDC`, `NWP`, and `EWM`\n- this repository does not claim blanket support for every clause, edition, or newer revision of `IEC 61400-1`\n\n## Why This Project Exists\n\nThe original `IECWind` workflow is still useful, but many users now need:\n\n- a package that installs cleanly in modern Python environments\n- documentation that explains the case definitions and input style\n- an interface that works for both scripted studies and non-expert users\n- compatibility with historical `IECWind` inputs where needed\n- output files that can be used directly with OpenFAST `InflowWind`\n\n`pyIECWind` keeps the validated IEC case-generation behavior while presenting it through a Python-first package and command-line workflow.\n\n## Features\n\n- Generates `.wnd` files for `ECD`, `EWS`, `EOG`, `EDC`, `NWP`, and `EWM`\n- Writes files for OpenFAST `InflowWind`\n- Supports OpenFAST-style input tables with aligned `value  key  - comment` rows\n- Groups case-family selections under a `Cases` block\n- Includes an interactive wizard for users who prefer prompts over manual editing\n- Preserves support for historical keyed and fixed-line input styles\n- Ships with tests and a GitHub Actions CI workflow\n\n## Installation\n\n### Conda\n\nCreate the recommended environment:\n\n```bash\nconda env create -f environment.yml\nconda run -n pyiecwind pyiecwind --help\n```\n\nOr install into an existing conda environment:\n\n```bash\nconda create -n pyiecwind python=3.11 numpy pip -y\nconda run -n pyiecwind python -m pip install -e .\n```\n\n### Pip\n\n```bash\npython -m pip install -e .\n```\n\n## Quick Start\n\nGenerate wind files from the included example:\n\n```bash\npyiecwind run examples/sample_case.ipt -o outputs\n```\n\nWrite a starter template:\n\n```bash\npyiecwind template my_case.ipt\n```\n\nUse the guided workflow:\n\n```bash\npyiecwind wizard -o outputs\n```\n\nDefault filenames:\n\n- `pyiecwind template` writes `pyiecwind_template.ipt`\n- `pyiecwind run` without an explicit file reads `pyiecwind.ipt`\n\n## Example Input\n\nThe recommended format is an OpenFAST-style table:\n\n```text\nTrue            si_unit      - True for SI (m, m/s), False for English (ft, ft/s)\n40.000          t1           - transient start time [s]\n2               wtc          - wind turbine class (1, 2, or 3)\nB               catg         - turbulence category (A, B, or C)\n0.000           slope_deg    - inflow inclination angle [deg]\n3               iec_edition  - IEC edition for alpha (1 or 3)\n```\n\nCase selection is grouped under a `Cases` section:\n\n```text\nECD             True   [+R, -R]                  - Extreme Coherent Gust with Direction Change. Options: +R, -R, +R+du, +R-du, -R+du, -R-du\nEWS             True   [V+12.0, H-12.0]          - Extreme Wind Shear. Options: V+U, V-U, H+U, H-U\nNWP             True   [10.0, 23.7]              - Normal Wind Profile. Options: array of hub-height wind speeds in m/s\nEWM             True   [50]                      - Extreme Wind Model. Options: 50 or 01, or an array such as [50, 01]\n```\n\nSee [`examples/sample_case.ipt`](examples/sample_case.ipt) for a complete working file.\n\n## Documentation\n\n- [`QUICKSTART.md`](QUICKSTART.md)\n- [`CHANGELOG.md`](CHANGELOG.md)\n- [`docs/USER_GUIDE.md`](docs/USER_GUIDE.md)\n- [`docs/STUDY_EXAMPLE.md`](docs/STUDY_EXAMPLE.md)\n- [`docs/INPUT_FORMAT.md`](docs/INPUT_FORMAT.md)\n- [`docs/CASE_REFERENCE.md`](docs/CASE_REFERENCE.md)\n- [`docs/MIGRATION.md`](docs/MIGRATION.md)\n- [`docs/RELEASE_CHECKLIST.md`](docs/RELEASE_CHECKLIST.md)\n\n## Project Layout\n\n```text\nsrc/pyiecwind/              package source\nexamples/                   example input files\ndocs/                       user and maintainer documentation\ntests/                      automated test suite\n.github/workflows/ci.yml    GitHub Actions workflow\nenvironment.yml             conda environment definition\npyproject.toml              package metadata\n```\n\n## Testing\n\nRun the full test suite:\n\n```bash\nPYTHONPATH=src:tests python -m unittest discover -s tests -v\n```\n\nOn Windows PowerShell:\n\n```powershell\n$env:PYTHONPATH='src;tests'; python -m unittest discover -s tests -v\n```\n\n## Notes\n\n- Internal calculations are performed in SI units.\n- `NWP` retains the historical `IECWind` convention that the embedded speed is interpreted in `m/s`.\n- This package generates inflow files; it does not run OpenFAST itself.\n- The supported IEC standard references are currently `IEC 61400-1 Edition 1` and `Edition 3` as used by the package input and implemented case logic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmi-lab-inha%2Fpyiecwind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmi-lab-inha%2Fpyiecwind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmi-lab-inha%2Fpyiecwind/lists"}