Repository containing OpenAFPM wind turbine CAD model, and models for tools aiding in the local construction of the wind turbine such as molds and jigs.
The wind turbine design is based on "A Wind Turbine Recipe Book" by Hugh Piggott.
All models are made with the open-source CAD program FreeCAD.
Various functions (yet to be described) are exposed to support other projects. See Related Repositories.
From the root of this repository:
pip install --editable .
From the root of this repository:
./link_macros.bash
- openafpm_worker/MagnAFPM - simulates AFPM generator and generates output for CAD model.
- openafpm-cad-visualization - visualizes CAD models in a web browser.
- openafpm-cad-desktop-app - for testing
openafpm-cad-coreandopenafpm-cad-visualization.
- Install Micromamba.
Execute the following commands from the root of this repository.
-
Create
openafpm-cad-coreconda environment.micromamba env create --file environment.yml -
Activate
openafpm-cad-coreenvironment.micromamba activate openafpm-cad-core -
Add the
$CONDA_PREFIX/libdirectory to$PYTHONPATH(this allowsFreeCADto be imported as a module within python)../add_conda_path_to_python_path.sh -
Deactivate and re-activate
openafpm-cad-coreenvironment.micromamba deactivate && micromamba activate openafpm-cad-core -
Verify
freecadexecutable is accessible:freecad --version
Run ./make_docs.sh from docs/ with openafpm-cad-core conda environment activated.
The version of FreeCAD is defined in environment.yml within the root of this repository.
-
Check if there's a newer version from FreeCAD's GitHub releases page or Wiki.
-
Increase version for
freecadinenvironment.yml. -
Remove
openafpm-cad-coreconda environment created in the "Setup" section.micromamba remove --name openafpm-cad-core --all -
Reperform steps in the Setup section to recreate
openafpm-cad-coreconda environment. -
Regression test all functionality. (TODO: Write documentation for this)
-
Update "Supported FreeCAD Versions" section in README.md.
-
Activate the
openafpm-cad-coreconda environment. -
If
openafpm-cad-visualizationis cloned up a directory from this repository, then run:python macros/visualize.py ../openafpm-cad-visualization/public/ python macros/furl_transform.py > ../openafpm-cad-visualization/public/furlTransform.json
Run /macros from FreeCAD's GUI to see FreeCAD related warnings and errors.
Currently, macros must be manually edited to remove multi-threading to avoid a pickle-related serialization error.
Currently tested with FreeCAD 1.0.0.