-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from IEAWindTask37/cleanup_and_dcument
Cleanup and dcument
- Loading branch information
Showing
10 changed files
with
206 additions
and
2,694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
# windio2cad | ||
|
||
Example command line: | ||
## What is `windio2cad`? | ||
|
||
The `windio2cad` module is a command line tool to convert `.yaml` files that follow the [windio ontology](https://windio.readthedocs.io/en/latest/) into `.stl` CAD files. These CAD files can then be used as input to other codes or for visualization. | ||
|
||
Two example files for floating offshore wind turbine (FOWT) platforms are included in this source repository: | ||
|
||
- `nrel5mw-spar_oc4.yaml`: A semisubmersible floating platform. | ||
|
||
- `nrel5mw-spar_oc3.yaml`: A spar-type floating platform. | ||
|
||
Read below to learn more about rendering these `.yaml` files into `.stl` files. | ||
|
||
## Installation | ||
|
||
Clone the repository and change into the repository's directory: | ||
|
||
``` | ||
python semisubmersible_yaml_to_stl.py --input semisubmersible.yaml --output semisubmersible2.stl --modules modules_for_rendering_semisubmersible.scad --openscad "/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD" | ||
pip install -e . | ||
``` | ||
|
||
This module depends on the OpenSCAD package to be installed to render the final `.stl` file. See [http://www.openscad.org/](http://www.openscad.org/) | ||
|
||
## Usage | ||
|
||
On a macOS system with OpenSCAD installed in its default location, use the following command to create an `.stl` file for a turbine atop a semisubmersible foundation: | ||
|
||
``` | ||
python -m windio2cad --input nrel5mw-spar_oc3.yaml --output turbine.stl --openscad /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.