Skip to content

Commit

Permalink
Merge pull request #9 from milzj/nominal
Browse files Browse the repository at this point in the history
Nominal
  • Loading branch information
milzj committed Sep 15, 2023
2 parents 377601b + 52dcdbc commit 00133a3
Show file tree
Hide file tree
Showing 364 changed files with 1,029,117 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on:
push:
branches:
- "*"
- main
pull_request:
branchess:
- "*"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# For projects using Nanoc (http://nanoc.ws/)
*.swp
*.sav

# Default location for output (needs to match output_dir's value found in nanoc.yaml)
output/
build?

# Temporary file directory
tmp/nanoc/
Expand Down
Empty file added __init__.py
Empty file.
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ dependencies:
- python=3.8.11
- pip=20.2.4
- fenics=2019.1.0
- scipy=1.7.0
- scipy=1.10.0
- numpy=1.21.1
- matplotlib=3.4.2
- dolfin-adjoint=2019.1.0
- pip:
- git+https://github.com/milzj/FW4PDE.git@pip-tidal
- git+https://github.com/milzj/FW4PDE.git@devel
3 changes: 3 additions & 0 deletions lit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
*.bak
*.sav
Empty file added lit/__init__.py
Empty file.
113 changes: 113 additions & 0 deletions lit/lit_tidalfarm.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
@Article{Funke2016,
author = {S. W. Funke and S. C. Kramer and M. D. Piggott},
title = {Design optimisation and resource assessment for tidal-stream renewable energy farms using a new continuous turbine approach},
journal = {Renew. Energ.},
year = {2016},
volume = {99},
pages = {1046-1061},
issn = {0960-1481},
doi = {10.1016/j.renene.2016.07.039},
keywords = {Marine renewable energy, Tidal stream turbines, Optimisation, Shallow water equations, Resource assessment, Pentland Firth},
}

@TechReport{Nordaas2016,
author = {Magne Nordaas and Simon W. Funke},
title = {The {M}oola optimisation package},
year = {2016},
url = {https://github.com/funsim/moola},
}

@Article{Alnaes2015,
author = {Aln{\ae}s, M. S. and Blechta, J and Hake, J. and Johansson, A and Kehlet, B and Logg, A. and Richardson, C and Ring, J and Rognes, M. E and Wells, G. N.},
journal = {Arch. Numer. Software},
title = {The {FE}ni{CS} {P}roject {V}ersion \textnormal{1.5}},
year = {2015},
number = {100},
pages = {9--23},
volume = {3},
doi = {10.11588/ans.2015.100.20553},
groups = {FEniCS/UFL/Dolfin},
owner = {jomi},
timestamp = {2019.07.09},
}

@InCollection{Piggott2022,
author = {Matthew D. Piggott and Stephan C. Kramer and Simon W. Funke and David M. Culley and Athanasios Angeloudis},
booktitle = {Comprehensive Renewable Energy},
publisher = {Elsevier},
title = {8.10 - Optimization of Marine Renewable Energy Systems},
year = {2022},
address = {Oxford},
edition = {2nd},
editor = {Trevor M. Letcher},
pages = {176--220},
volume = {8},
doi = {10.1016/b978-0-12-819727-1.00179-5},
}

@Book{Schwedes2017,
title = {{M}esh {D}ependence in {PDE}-{C}onstrained {O}ptimisation},
publisher = {Springer},
year = {2017},
author = {Schwedes, Tobias and Ham, David A. and Funke, Simon W. and Piggott, Matthew D.},
series = {SpringerBriefs Math. Planet Earth},
address = {Cham},
doi = {10.1007/978-3-319-59483-5},
groups = {PDE},
owner = {jomi},
timestamp = {2019.03.05},
}

@Article{Funke2014,
author = {S. W. Funke and P. E. Farrell and M. D. Piggott},
title = {Tidal turbine array optimisation using the adjoint approach},
journal = {Renewable Energy},
year = {2014},
volume = {63},
pages = {658--673},
issn = {0960-1481},
doi = {10.1016/j.renene.2013.09.031},
groups = {PDESOApplications},
owner = {jomi},
timestamp = {2020.12.18},
}

@Article{Mitusch2019,
author = {Sebastian K. Mitusch and Simon W. Funke and J{\o}rgen S. Dokken},
title = {dolfin-adjoint \normalfont{2018.1}: automated adjoints for {FEniCS} and {F}iredrake},
journal = {J. Open Source Softw.},
year = {2019},
volume = {4},
number = {38},
pages = {1292},
doi = {10.21105/joss.01292},
publisher = {The Open Journal},
}

@Software{Schwedes2016,
author = {Schwedes, Tobias and Ham, David and Funke, Simon Wolfgang},
doi = {10.5281/zenodo.224251},
publisher = {Zenodo},
title = {Code for simulations in Chapter 3 of ResearchBrief},
year = {2016},
}

@Article{Kreitmair2019,
author = {Kreitmair, M J and Draper, S and Borthwick, A G L and van den Bremer, T},
title = {The effect of uncertain bottom friction on estimates of tidal current power},
journal = {R. Soc. open sci. 6: 180941},
year = {2019},
doi = {10.1098/rsos.180941},
}

@Book{Kreitmair2021,
author = {Monika Johanna Kreitmair},
publisher = {Springer},
title = {The {E}ffect of {U}ncertainty on {T}idal {S}tream {E}nergy {R}esource {E}stimates},
year = {2021},
address = {Cham},
series = {Springer Theses},
doi = {10.1007/978-3-030-57658-5},
}

@Comment{jabref-meta: databaseType:bibtex;}
89 changes: 89 additions & 0 deletions lit/lit_tidalfarm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<div id="refs" class="references hanging-indent">

<div id="ref-Alnaes2015">

Alnæs, M. S., J Blechta, J. Hake, A Johansson, B Kehlet, A. Logg, C
Richardson, J Ring, M. E Rognes, and G. N. Wells. 2015. “The FEniCS
Project Version 1.5.” *Arch. Numer. Software* 3 (100): 9–23.
<https://doi.org/10.11588/ans.2015.100.20553>.

</div>

<div id="ref-Funke2014">

Funke, S. W., P. E. Farrell, and M. D. Piggott. 2014. “Tidal Turbine
Array Optimisation Using the Adjoint Approach.” *Renewable Energy* 63:
658–73. <https://doi.org/10.1016/j.renene.2013.09.031>.

</div>

<div id="ref-Funke2016">

Funke, S. W., S. C. Kramer, and M. D. Piggott. 2016. “Design
Optimisation and Resource Assessment for Tidal-Stream Renewable Energy
Farms Using a New Continuous Turbine Approach.” *Renew. Energ.* 99:
1046–61. <https://doi.org/10.1016/j.renene.2016.07.039>.

</div>

<div id="ref-Kreitmair2019">

Kreitmair, M J, S Draper, A G L Borthwick, and T van den Bremer. 2019.
“The Effect of Uncertain Bottom Friction on Estimates of Tidal Current
Power.” *R. Soc. Open Sci. 6: 180941*.
<https://doi.org/10.1098/rsos.180941>.

</div>

<div id="ref-Kreitmair2021">

Kreitmair, Monika Johanna. 2021. *The Effect of Uncertainty on Tidal
Stream Energy Resource Estimates*. Springer Theses. Cham: Springer.
<https://doi.org/10.1007/978-3-030-57658-5>.

</div>

<div id="ref-Mitusch2019">

Mitusch, Sebastian K., Simon W. Funke, and Jørgen S. Dokken. 2019.
“Dolfin-Adjoint 2018.1: Automated Adjoints for FEniCS and Firedrake.”
*J. Open Source Softw.* 4 (38): 1292.
<https://doi.org/10.21105/joss.01292>.

</div>

<div id="ref-Nordaas2016">

Nordaas, Magne, and Simon W. Funke. 2016. “The Moola Optimisation
Package.” <https://github.com/funsim/moola>.

</div>

<div id="ref-Piggott2022">

Piggott, Matthew D., Stephan C. Kramer, Simon W. Funke, David M. Culley,
and Athanasios Angeloudis. 2022. “8.10 - Optimization of Marine
Renewable Energy Systems.” In *Comprehensive Renewable Energy*, edited
by Trevor M. Letcher, 2nd ed., 8:176–220. Oxford: Elsevier.
<https://doi.org/10.1016/b978-0-12-819727-1.00179-5>.

</div>

<div id="ref-Schwedes2017">

Schwedes, Tobias, David A. Ham, Simon W. Funke, and Matthew D. Piggott.
2017. *Mesh Dependence in PDE-Constrained Optimisation*. SpringerBriefs
Math. Planet Earth. Cham: Springer.
<https://doi.org/10.1007/978-3-319-59483-5>.

</div>

<div id="ref-Schwedes2016">

Schwedes, Tobias, David Ham, and Simon Wolfgang Funke. 2016. *Code for
Simulations in Chapter 3 of Researchbrief*. Zenodo.
<https://doi.org/10.5281/zenodo.224251>.

</div>

</div>
1 change: 1 addition & 0 deletions lit/lit_tidalfarm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pandoc --filter pandoc-citeproc --bibliography=lit_tidalfarm.bib -f latex -t gfm -o lit_tidalfarm.md lit_tidalfarm.tex
12 changes: 12 additions & 0 deletions lit/lit_tidalfarm.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\documentclass{article}

\usepackage{hyperref}

\begin{document}

\nocite{*}
\bibliographystyle{plainurl}
\bibliography{lit_tidalfarm}


\end{document}
1 change: 1 addition & 0 deletions lit/tex2md.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pandoc --filter pandoc-citeproc --bibliography=lit_tidalfarm.bib -f latex -t gfm -o lit_tidalfarm.md lit_tidalfarm.tex
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/conftest.py → test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys

here = Path(__file__).parent
sys.path.insert(0, str(here.parent) + "/mcrnnoc")
sys.path.insert(0, str(here.parent) + "/tidalfarm")

import pytest
import numpy as np
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions test/test_random_problem/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Source: https://github.com/milzj/SAA4PDE/tree/semilinear_complexity/tests/random_problem
Empty file.
1 change: 1 addition & 0 deletions test/test_random_problem/random_optimal_poisson/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
riskneutral_analyticsolution.pdf
Empty file.
Loading

0 comments on commit 00133a3

Please sign in to comment.