-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sandialabs:main' into saturated_PI
- Loading branch information
Showing
14 changed files
with
200 additions
and
77 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ Community contributions are welcomed! 🎊 | |
|
||
Using `conda` this looks like: | ||
```bash | ||
conda create -n wecopttool python=3.10 | ||
conda create -n wecopttool python=3.11 | ||
conda activate wecopttool | ||
conda install -c conda-forge capytaine wavespectra | ||
git clone [email protected]:<YOUR_USER_NAME>/WecOptTool.git | ||
|
@@ -22,7 +22,7 @@ And using `pip`: | |
```bash | ||
git clone [email protected]:<YOUR_USER_NAME>/WecOptTool.git | ||
cd WecOptTool | ||
python3.10 -m venv .venv | ||
python3.11 -m venv .venv | ||
. .venv/bin/activate | ||
pip install -e .[dev] | ||
``` | ||
|
@@ -76,6 +76,21 @@ The documentation uses the Jupyter notebook tutorials in the `examples` director | |
When building the documentation locally you will need to have installed [pandoc](https://pandoc.org/installing.html) and [gifsicle](https://github.com/kohler/gifsicle). | ||
We recommend installing pandoc using its Anaconda distribution: `conda install -c conda-forge pandoc`. | ||
|
||
**NOTE:** it may be expedient at times to: | ||
|
||
1. **Avoid running the tutorial notebooks:** Add [`nbsphinx_execute = 'never'`](https://nbsphinx.readthedocs.io/en/0.9.3/configuration.html#nbsphinx_execute) to `docs/source/conf.py` | ||
2. **Disable the link check operation:** Comment out the `linkcheck` call in `docs/build_docs.py` | ||
|
||
```python | ||
if __name__ == '__main__': | ||
source.make_theory_animations | ||
# linkcheck() | ||
html() | ||
cleanup() | ||
``` | ||
|
||
Make sure not to commit these changes! | ||
|
||
### Editing the tutorials | ||
The tutorials are used as part of the Documentation. | ||
Before pushing any changes make sure that the saved version of the notebooks are clear (no cells run and no results). | ||
|
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
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
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Installation for users | ||
|
||
## Software requirements | ||
WecOptTool is supported on Windows, MacOS, and Linux. It requires Python 3.8 or higher. [Xcode](https://developer.apple.com/xcode/) may also be required on Mac. | ||
|
||
|
||
## Creating a virtual environment | ||
WecOptTool depends on many other Python packages, which can be organized into a *virtual environment*. Setting up a dedicated virtual environment allows for easier and more organized management of Python packages for your projects. The instructions below will walk you through creating a dedicated virtual environment and installing WecOptTool. | ||
|
||
Several tools exist that can both manage virtual environment and install Python pacakges. We provide instructions for two such tools: | ||
|
||
* If you are brand new to Python, or currently use Conda and want to try a much faster alternative, [click here](#installing-using-mamba) for installation instructions using **Mamba**. | ||
* If you already have Anaconda/Miniconda installed on your computer, [click here](#installing-using-conda) for instructions using **Conda**. | ||
|
||
### Installing using Mamba | ||
1. Download Miniforge3 (which contains Mamba) for your operating system [here](https://github.com/conda-forge/miniforge#download). | ||
2. Double-click on the file you just downloaded and follow the prompts on the new window to install Miniforge3. When the "Advanced Installation Options" prompt comes up, check the box next to "Add Miniforge3 to my PATH environment variable". All the other default selections should work. | ||
3. After installation completes, open a command prompt or terminal window and copy/paste the following code to confirm Mamba installed correctly. If installed correctly, the terminal should print both a Mamba and Conda version number (since Conda is used for some Mamba functions): | ||
```bash | ||
mamba --version | ||
``` | ||
4. Copy/paste the following code to create a new virtual environment named `wot`, activate the environment, and install WecOptTool and its dependencies in the environment. Feel free to replace `wot` in the first two lines with a different environment name if you would like: | ||
```bash | ||
mamba create -n wot | ||
mamba activate wot | ||
mamba install wecopttool jupyter | ||
pip install gmsh pygmsh meshio | ||
``` | ||
|
||
### Installing using Conda | ||
1. Download Miniconda3 (which contains Conda) for your operating system [here](https://docs.conda.io/projects/miniconda/en/latest/index.html). | ||
2. Double-click on the file you just downloaded and follow the prompts on the new window to install Miniconda3. When the "Advanced Installation Options" prompt comes up, check the box next to "Add Miniforge3 to my PATH environment variable". All the other default selections should work. | ||
3. After installation completes, open a command prompt or terminal window (close any command/terminal windows you had open previously) and copy/paste the following code to confirm Conda installed correctly. If installed correctly, the terminal should print a Conda version number: | ||
```bash | ||
conda --version | ||
``` | ||
4. Copy/paste the following code to create a new virtual environment named `wot`, activate the environment, and install WecOptTool and its dependencies in the environment. Feel free to replace `wot` in the third and fourth lines with a different environment name if you would like: | ||
```bash | ||
conda config --add channels conda-forge | ||
conda config --set channel_priority strict | ||
conda create -n wot | ||
conda activate wot | ||
conda install wecopttool jupyter | ||
pip install gmsh pygmsh meshio | ||
``` |
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
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
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
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,23 @@ | ||
References | ||
========== | ||
|
||
General resources | ||
----------------- | ||
|
||
* Companion notebooks to published papers: | ||
* `Control Co-Design of Power Take-off Systems for Wave Energy Converters using WecOptTool <https://github.com/cmichelenstrofer/IEEE_TSTE_2023>`_ (:cite:t:`Michelen2023`:) | ||
* `Incorporating empirical nonlinear efficiency into control co-optimization of a real world heaving point absorber using WECOPTTOOL <https://github.com/dtgaebe/OMAE_2023_103899>`_ (:cite:t:`Gaebele:2023wf`:) | ||
* `Control co-design and uncertainty analysis of the LUPA's PTO using WecOptTool <https://github.com/cmichelenstrofer/EWTEC_2023>`_ (:cite:t:`Strofer:2023vw`:) | ||
* Webinar recordings: | ||
* `October, 2022 <https://digitalops.sandia.gov/Mediasite/Play/b3a653193c1a4da4a4d71d9908c3ac031d?enablejsapi=1>`_ | ||
* `February, 2022 <https://digitalops.sandia.gov/Mediasite/Play/fde6b77d82f944319dc19d9c7d11d8a51d?enablejsapi=1>`_ | ||
|
||
Bibliography | ||
------------ | ||
.. bibliography:: wecopttool_refs.bib | ||
:style: unsrt | ||
|
||
Falnes2002 | ||
Michelen2023 | ||
Grasberger:2023aa | ||
Strofer:2023vw | ||
Coe2020Initial |
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
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
Oops, something went wrong.