Modeling wave energy converters (WECs) using a multi-port network framework
- Consistent and correct conventions
- More explanation, details, and examples than previously published papers
- Publish this repository with the paper
wec_as_multiport
├── tests
: testing using pytest
├── papers
: LaTeX source and plotting scripts
└── wec_as_multiport
: Python package
This repo uses actions to compile PDFs from the LaTex source and deploy those PDFs to its build branch
- Edit the paper: edit the LaTex source (do not commit the PDF to the git repo, it is compiled by GitHub Automation)
- use "
XX
" to make a comment - line break after each sentence
- use "
\,
" for a small space between a value and unit (e.g., "5\,m
") - to refer to a figure, use “
\figurename~\ref{fig:fig_label}
” - to refer to a table, use “
Table~\ref{tab:tab_label}
” - use the subequations environment when possible if you have multiple equations you're presenting together
- plots should not generally have titles as this information is captured in the figure caption
- use PDF vector figures when possible
- use "
- Edit diagrams: edit the PDF files using IPE
- Update plots:
- Edit python notebooks
- Output vector PDFs to
gfx
directory
- Install
wec_as_multiport
package (assuming you have conda or mamba)- Create environment:
conda create -n wam pip "python=3.11"
- Activate environment:
conda activate wam
- Install package in editable mode (from within the root directory of this repository):
pip install -e .
- Create environment:
- Run/edit
- source:
core.py
- plotting scripts: see
.ipynb
files
- source:
- Output figures to
gfx
directory for inclusion in paper