Repository containing OpenAFPM wind turbine model made with open-source CAD program FreeCAD.
From the root of this repository:
pip install --editable .
From the root of this repository:
./link_macros.bash
- Install Micromamba.
Execute the following commands from the root of this repository.
-
Create
openafpm-cad-core
conda environment.micromamba env create --file environment.yml
-
Activate
openafpm-cad-core
environment.micromamba activate openafpm-cad-core
-
Add the
$CONDA_PREFIX/lib
directory to$PYTHONPATH
(this allowsFreeCAD
to be imported as a module within python)../add_conda_path_to_python_path.sh
-
Deactivate and re-activate
openafpm-cad-core
environment.micromamba deactivate && micromamba activate openafpm-cad-core
-
Verify
freecad
executable 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
freecad
inenvironment.yml
. -
Remove
openafpm-cad-core
conda environment created in the "Setup" section.micromamba remove --name openafpm-cad-core --all
-
Reperform steps in the Setup section to recreate
openafpm-cad-core
conda environment. -
Regression test all functionality. (TODO: Write documentation for this)
-
Activate the
openafpm-cad-core
conda environment. -
If
openafpm-cad-visualization
is cloned up a directory from this repository, then run:python macros/visualize.py ../openafpm-cad-visualization/public/
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 21.2
.