├── .gitattributes ├── .gitignore ├── .npmignore ├── LICENSE ├── LICENSE_revealjs ├── README.md ├── css ├── layout.scss ├── print │ ├── paper.scss │ └── pdf.scss ├── reveal.scss └── theme │ ├── README.md │ ├── source │ └── precice.scss │ └── template │ ├── exposer.scss │ ├── mixins.scss │ ├── settings.scss │ └── theme.scss ├── dist ├── reset.css ├── reveal.css ├── reveal.esm.js ├── reveal.js └── theme │ ├── fonts │ ├── league-gothic │ │ ├── LICENSE │ │ ├── league-gothic.css │ │ ├── league-gothic.eot │ │ ├── league-gothic.ttf │ │ └── league-gothic.woff │ └── source-sans-pro │ │ ├── LICENSE │ │ ├── source-sans-pro-italic.eot │ │ ├── source-sans-pro-italic.ttf │ │ ├── source-sans-pro-italic.woff │ │ ├── source-sans-pro-regular.eot │ │ ├── source-sans-pro-regular.ttf │ │ ├── source-sans-pro-regular.woff │ │ ├── source-sans-pro-semibold.eot │ │ ├── source-sans-pro-semibold.ttf │ │ ├── source-sans-pro-semibold.woff │ │ ├── source-sans-pro-semibolditalic.eot │ │ ├── source-sans-pro-semibolditalic.ttf │ │ ├── source-sans-pro-semibolditalic.woff │ │ └── source-sans-pro.css │ └── precice.css ├── generator-propagator ├── skeleton │ ├── Allclean │ ├── generator.py │ ├── precice-config.xml │ └── propagator.py └── solution │ ├── Allclean │ ├── generator.py │ ├── precice-config.xml │ └── propagator.py ├── gulpfile.js ├── images ├── closing │ ├── funding.png │ ├── marschall.png │ ├── preCICE2021.png │ └── workshop-group.jpeg ├── intro │ ├── precice-overview-0.svg │ ├── precice-overview-1.svg │ ├── precice-overview-2.svg │ └── precice-overview-3.svg ├── level1 │ ├── config-original.png │ ├── propagator_description.png │ ├── serial-explicit.svg │ └── subcycling.svg ├── level2 │ ├── config.svg │ ├── openfoam-openfoam_flat_plate_surface_T_RBG_ruler.png │ ├── openfoam_adapter_overview_checkpointing.svg │ ├── openfoam_adapter_overview_data.svg │ ├── openfoam_adapter_overview_linking.svg │ ├── openfoam_adapter_overview_timestep.svg │ └── precice-config.svg ├── level3 │ ├── config.svg │ ├── flap_perp.png │ └── watchpoint.svg ├── logos │ ├── tue.png │ └── tum.png └── resources │ ├── discourse.png │ ├── gitter.png │ ├── maillist.png │ ├── precice_org.png │ ├── twitter.png │ ├── wiki.png │ └── youtube.png ├── index.html ├── js ├── components │ └── playback.js ├── config.js ├── controllers │ ├── autoanimate.js │ ├── backgrounds.js │ ├── controls.js │ ├── focus.js │ ├── fragments.js │ ├── keyboard.js │ ├── location.js │ ├── notes.js │ ├── overview.js │ ├── plugins.js │ ├── pointer.js │ ├── print.js │ ├── progress.js │ ├── slidecontent.js │ ├── slidenumber.js │ └── touch.js ├── index.js ├── reveal.js └── utils │ ├── color.js │ ├── constants.js │ ├── device.js │ ├── loader.js │ └── util.js ├── overview-talk-slides ├── .gitignore ├── .npmignore ├── LICENSE_revealjs ├── README.md ├── css │ ├── layout.scss │ ├── print │ │ ├── paper.scss │ │ └── pdf.scss │ ├── reveal.scss │ └── theme │ │ ├── README.md │ │ ├── source │ │ └── precice.scss │ │ └── template │ │ ├── exposer.scss │ │ ├── mixins.scss │ │ ├── settings.scss │ │ └── theme.scss ├── dist │ ├── reset.css │ ├── reveal.css │ ├── reveal.esm.js │ ├── reveal.js │ └── theme │ │ ├── fonts │ │ ├── league-gothic │ │ │ ├── LICENSE │ │ │ ├── league-gothic.css │ │ │ ├── league-gothic.eot │ │ │ ├── league-gothic.ttf │ │ │ └── league-gothic.woff │ │ └── source-sans-pro │ │ │ ├── LICENSE │ │ │ ├── source-sans-pro-italic.eot │ │ │ ├── source-sans-pro-italic.ttf │ │ │ ├── source-sans-pro-italic.woff │ │ │ ├── source-sans-pro-regular.eot │ │ │ ├── source-sans-pro-regular.ttf │ │ │ ├── source-sans-pro-regular.woff │ │ │ ├── source-sans-pro-semibold.eot │ │ │ ├── source-sans-pro-semibold.ttf │ │ │ ├── source-sans-pro-semibold.woff │ │ │ ├── source-sans-pro-semibolditalic.eot │ │ │ ├── source-sans-pro-semibolditalic.ttf │ │ │ ├── source-sans-pro-semibolditalic.woff │ │ │ └── source-sans-pro.css │ │ └── precice.css ├── gulpfile.js ├── images │ ├── closing │ │ ├── chourdakis.png │ │ ├── funding.png │ │ ├── marschall.png │ │ ├── preCICE2021.png │ │ └── workshop-group.jpeg │ ├── intro │ │ ├── precice-overview-0.svg │ │ ├── precice-overview-1.svg │ │ ├── precice-overview-2.svg │ │ └── precice-overview-3.svg │ ├── logos │ │ ├── tue.png │ │ └── tum.png │ ├── openfoam │ │ ├── 3DTube_scaled.png │ │ ├── branches.png │ │ ├── config.svg │ │ ├── cylinderFlap.png │ │ ├── flap_perp.png │ │ ├── openfoam-calculix_heat_exchanger_streamlines.png │ │ ├── openfoam-openfoam_flat_plate_surface_T_poster_RBG.png │ │ ├── openfoam_adapter_overview_checkpointing.svg │ │ ├── openfoam_adapter_overview_data.svg │ │ ├── openfoam_adapter_overview_linking.svg │ │ ├── openfoam_adapter_overview_timestep.svg │ │ ├── pipe-pipe_rainbow_rotated.png │ │ ├── pr64.png │ │ └── pr97.png │ └── resources │ │ ├── discourse.png │ │ ├── gitter.png │ │ ├── maillist.png │ │ ├── precice_org.png │ │ ├── twitter.png │ │ ├── wiki.png │ │ └── youtube.png ├── index.html ├── js │ ├── components │ │ └── playback.js │ ├── config.js │ ├── controllers │ │ ├── autoanimate.js │ │ ├── backgrounds.js │ │ ├── controls.js │ │ ├── focus.js │ │ ├── fragments.js │ │ ├── keyboard.js │ │ ├── location.js │ │ ├── notes.js │ │ ├── overview.js │ │ ├── plugins.js │ │ ├── pointer.js │ │ ├── print.js │ │ ├── progress.js │ │ ├── slidecontent.js │ │ ├── slidenumber.js │ │ └── touch.js │ ├── index.js │ ├── reveal.js │ └── utils │ │ ├── color.js │ │ ├── constants.js │ │ ├── device.js │ │ ├── loader.js │ │ └── util.js ├── package-lock.json ├── package.json ├── plugin │ ├── highlight │ │ ├── atom-one-light.css │ │ ├── color-brewer.css │ │ ├── github-gist.css │ │ ├── github.css │ │ ├── highlight.esm.js │ │ ├── highlight.js │ │ ├── monokai.css │ │ ├── plugin.js │ │ └── zenburn.css │ ├── markdown │ │ ├── markdown.esm.js │ │ ├── markdown.js │ │ └── plugin.js │ ├── math │ │ ├── math.esm.js │ │ ├── math.js │ │ └── plugin.js │ ├── notes │ │ ├── notes.esm.js │ │ ├── notes.js │ │ ├── plugin.js │ │ └── speaker-view.html │ ├── search │ │ ├── plugin.js │ │ ├── search.esm.js │ │ └── search.js │ └── zoom │ │ ├── plugin.js │ │ ├── zoom.esm.js │ │ └── zoom.js └── sections │ ├── closing.md │ ├── community.md │ ├── intro.md │ ├── news.md │ ├── openfoam_pt1.md │ ├── openfoam_pt2.md │ └── resources.md ├── package-lock.json ├── package.json ├── pdf-export ├── slides_overview_talk.pdf └── slides_training.pdf ├── plugin ├── highlight │ ├── atom-one-light.css │ ├── color-brewer.css │ ├── github-gist.css │ ├── github.css │ ├── highlight.esm.js │ ├── highlight.js │ ├── monokai.css │ ├── plugin.js │ └── zenburn.css ├── markdown │ ├── markdown.esm.js │ ├── markdown.js │ └── plugin.js ├── math │ ├── math.esm.js │ ├── math.js │ └── plugin.js ├── notes │ ├── notes.esm.js │ ├── notes.js │ ├── plugin.js │ └── speaker-view.html ├── search │ ├── plugin.js │ ├── search.esm.js │ └── search.js └── zoom │ ├── plugin.js │ ├── zoom.esm.js │ └── zoom.js ├── sections ├── closing.md ├── intro.md ├── level2.md ├── level3.md └── resources.md └── videos ├── heated_plate_paraview.webm ├── openfoam_dealii_paraview.webm ├── propagator_constant.webm └── propagator_coupled.webm /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pdf filter=lfs diff=lfs merge=lfs -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.iws 4 | *.eml 5 | out/ 6 | .DS_Store 7 | .svn 8 | log/*.log 9 | tmp/** 10 | node_modules/ 11 | .sass-cache 12 | dist/*.map -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /test 2 | /examples 3 | /css 4 | /js 5 | .github 6 | .gulpfile 7 | .sass-cache 8 | gulpfile.js 9 | CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE_revealjs: -------------------------------------------------------------------------------- 1 | Copyright (C) 2020 Hakim El Hattab, http://hakim.se, and reveal.js contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # My 15th OpenFOAM Workshop training session slides 2 | 3 | - Title: Multiphysics Modeling with the preCICE Coupling Library 4 | - Speaker: Gerasimos Chourdakis, Technical University of Munich 5 | - Authors: Gerasimos Chourdakis, Benjamin Uekermann, + [more](https://www.precice.org/about/) 6 | - Event: [15th OpenFOAM Workshop](http://www.cpe.vt.edu/ofw15/), Arlington, VA, USA (switched to online) 7 | - Date: June 24, 2020 8 | 9 | [Start the presentation](https://makish.github.io/ofw15-slides/) - [Get the PDF](https://github.com/MakisH/ofw15-slides/blob/master/pdf-export/slides_training.pdf) 10 | 11 | Find also the slides of my overview talk "A flexible and preCICE solver coupling ecosystem" under [`overview-talk-slides/`](./overview-talk-slides). 12 | 13 | ## Abstract 14 | 15 | The coupling library preCICE (www.precice.org, LGPL3) is an established and actively developed project, offering advanced coupling algorithms, mapping techniques, and communication channels. A minimally-invasive, high-level API in C++, C, Fortran, Python, and Matlab allows to exchange coupling participants arbitrarily, treating the numerics of each participant as a black box. 16 | 17 | This tutorial will introduce the participants to the basic concepts of preCICE, guiding them to couple two toy solvers in Python. It will then show how the same concepts are applied in the ready-to-use OpenFOAM adapter and demonstrate example cases for FSI or CHT with OpenFOAM and, depending on the interest, CalculiX or deal.II. 18 | 19 | ## Build 20 | 21 | Follow the instructions on [reveal.js](https://revealjs.com/installation/), or just install Node.js 10.0.0 or later and do: 22 | 23 | ```bash 24 | npm install 25 | npm start 26 | ``` 27 | 28 | and go to [localhost:8000](http://localhost:8000/) to see the slides. 29 | 30 | ## Convert to PDF 31 | 32 | See section "[Export to PDF](https://revealjs.com/pdf-export/)" in the reveal.js documentation. 33 | 34 | [Decktape](https://github.com/astefanutti/decktape) does a marvelous job converting this presentation to PDF. Get the Docker image (see Decktape README) and run (for localhost): 35 | 36 | ```bash 37 | docker run --rm -t --net=host -v "$(pwd)":/slides astefanutti/decktape generic --key=" " -p 2000 -s 1920x1440 http://localhost:8000 slides.pdf 38 | ``` 39 | 40 | ## License & more 41 | 42 | - License: [CreativeCommons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) 43 | - Based on [reveal.js](https://github.com/hakimel/reveal.js). Template based on the "White" template by Hakim El Hattab. 44 | - The TUM and the TU/e logos are part of the corporate identity of the Technical University of Munich and the Eindhoven University of Technology. 45 | -------------------------------------------------------------------------------- /css/layout.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Layout helpers. 3 | */ 4 | 5 | // Stretch an element vertically based on available space 6 | .reveal .stretch, 7 | .reveal .r-stretch { 8 | max-width: none; 9 | max-height: none; 10 | } 11 | 12 | .reveal pre.stretch code, 13 | .reveal pre.r-stretch code { 14 | height: 100%; 15 | max-height: 100%; 16 | box-sizing: border-box; 17 | } 18 | 19 | // Stack multiple elements on top of each other 20 | .reveal .r-stack { 21 | display: grid; 22 | } 23 | 24 | .reveal .r-stack > * { 25 | grid-area: 1/1; 26 | margin: auto; 27 | } 28 | 29 | // Horizontal and vertical stacks 30 | .reveal .r-vstack, 31 | .reveal .r-hstack { 32 | display: flex; 33 | } 34 | 35 | .reveal .r-vstack { 36 | flex-direction: column; 37 | align-items: center; 38 | justify-content: center; 39 | } 40 | 41 | .reveal .r-hstack { 42 | flex-direction: row; 43 | align-items: center; 44 | justify-content: center; 45 | } 46 | 47 | // Naming based on tailwindcss 48 | .reveal .items-stretch { align-items: stretch; } 49 | .reveal .items-start { align-items: flex-start; } 50 | .reveal .items-center { align-items: center; } 51 | .reveal .items-end { align-items: flex-end; } 52 | 53 | .reveal .justify-between { justify-content: space-between; } 54 | .reveal .justify-around { justify-content: space-around; } 55 | .reveal .justify-start { justify-content: flex-start; } 56 | .reveal .justify-center { justify-content: center; } 57 | .reveal .justify-end { justify-content: flex-end; } 58 | -------------------------------------------------------------------------------- /css/print/paper.scss: -------------------------------------------------------------------------------- 1 | /* Default Print Stylesheet Template 2 | by Rob Glazebrook of CSSnewbie.com 3 | Last Updated: June 4, 2008 4 | 5 | Feel free (nay, compelled) to edit, append, and 6 | manipulate this file as you see fit. */ 7 | 8 | @media print { 9 | html:not(.print-pdf) { 10 | 11 | background: #fff; 12 | width: auto; 13 | height: auto; 14 | overflow: visible; 15 | 16 | body { 17 | background: #fff; 18 | font-size: 20pt; 19 | width: auto; 20 | height: auto; 21 | border: 0; 22 | margin: 0 5%; 23 | padding: 0; 24 | overflow: visible; 25 | float: none !important; 26 | } 27 | 28 | .nestedarrow, 29 | .controls, 30 | .fork-reveal, 31 | .share-reveal, 32 | .state-background, 33 | .reveal .progress, 34 | .reveal .backgrounds, 35 | .reveal .slide-number { 36 | display: none !important; 37 | } 38 | 39 | body, p, td, li { 40 | font-size: 20pt!important; 41 | color: #000; 42 | } 43 | 44 | h1,h2,h3,h4,h5,h6 { 45 | color: #000!important; 46 | height: auto; 47 | line-height: normal; 48 | text-align: left; 49 | letter-spacing: normal; 50 | } 51 | 52 | /* Need to reduce the size of the fonts for printing */ 53 | h1 { font-size: 28pt !important; } 54 | h2 { font-size: 24pt !important; } 55 | h3 { font-size: 22pt !important; } 56 | h4 { font-size: 22pt !important; font-variant: small-caps; } 57 | h5 { font-size: 21pt !important; } 58 | h6 { font-size: 20pt !important; font-style: italic; } 59 | 60 | a:link, 61 | a:visited { 62 | color: #000 !important; 63 | font-weight: bold; 64 | text-decoration: underline; 65 | } 66 | 67 | ul, ol, div, p { 68 | visibility: visible; 69 | position: static; 70 | width: auto; 71 | height: auto; 72 | display: block; 73 | overflow: visible; 74 | margin: 0; 75 | text-align: left !important; 76 | } 77 | .reveal pre, 78 | .reveal table { 79 | margin-left: 0; 80 | margin-right: 0; 81 | } 82 | .reveal pre code { 83 | padding: 20px; 84 | } 85 | .reveal blockquote { 86 | margin: 20px 0; 87 | } 88 | .reveal .slides { 89 | position: static !important; 90 | width: auto !important; 91 | height: auto !important; 92 | 93 | left: 0 !important; 94 | top: 0 !important; 95 | margin-left: 0 !important; 96 | margin-top: 0 !important; 97 | padding: 0 !important; 98 | zoom: 1 !important; 99 | transform: none !important; 100 | 101 | overflow: visible !important; 102 | display: block !important; 103 | 104 | text-align: left !important; 105 | perspective: none; 106 | 107 | perspective-origin: 50% 50%; 108 | } 109 | .reveal .slides section { 110 | visibility: visible !important; 111 | position: static !important; 112 | width: auto !important; 113 | height: auto !important; 114 | display: block !important; 115 | overflow: visible !important; 116 | 117 | left: 0 !important; 118 | top: 0 !important; 119 | margin-left: 0 !important; 120 | margin-top: 0 !important; 121 | padding: 60px 20px !important; 122 | z-index: auto !important; 123 | 124 | opacity: 1 !important; 125 | 126 | page-break-after: always !important; 127 | 128 | transform-style: flat !important; 129 | transform: none !important; 130 | transition: none !important; 131 | } 132 | .reveal .slides section.stack { 133 | padding: 0 !important; 134 | } 135 | .reveal section:last-of-type { 136 | page-break-after: avoid !important; 137 | } 138 | .reveal section .fragment { 139 | opacity: 1 !important; 140 | visibility: visible !important; 141 | 142 | transform: none !important; 143 | } 144 | .reveal section img { 145 | display: block; 146 | margin: 15px 0px; 147 | background: rgba(255,255,255,1); 148 | border: 1px solid #666; 149 | box-shadow: none; 150 | } 151 | 152 | .reveal section small { 153 | font-size: 0.8em; 154 | } 155 | 156 | .reveal .hljs { 157 | max-height: 100%; 158 | white-space: pre-wrap; 159 | word-wrap: break-word; 160 | word-break: break-word; 161 | font-size: 15pt; 162 | } 163 | 164 | .reveal .hljs .hljs-ln-numbers { 165 | white-space: nowrap; 166 | } 167 | 168 | .reveal .hljs td { 169 | font-size: inherit !important; 170 | color: inherit !important; 171 | } 172 | } 173 | } 174 | -------------------------------------------------------------------------------- /css/print/pdf.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * This stylesheet is used to print reveal.js 3 | * presentations to PDF. 4 | * 5 | * https://revealjs.revealjs.com/pdf-export/ 6 | */ 7 | 8 | html.print-pdf { 9 | * { 10 | -webkit-print-color-adjust: exact; 11 | } 12 | 13 | & { 14 | width: 100%; 15 | height: 100%; 16 | overflow: visible; 17 | } 18 | 19 | body { 20 | margin: 0 auto !important; 21 | border: 0; 22 | padding: 0; 23 | float: none !important; 24 | overflow: visible; 25 | } 26 | 27 | /* Remove any elements not needed in print. */ 28 | .nestedarrow, 29 | .reveal .controls, 30 | .reveal .progress, 31 | .reveal .playback, 32 | .reveal.overview, 33 | .state-background { 34 | display: none !important; 35 | } 36 | 37 | .reveal pre code { 38 | overflow: hidden !important; 39 | font-family: Courier, 'Courier New', monospace !important; 40 | } 41 | 42 | .reveal { 43 | width: auto !important; 44 | height: auto !important; 45 | overflow: hidden !important; 46 | } 47 | .reveal .slides { 48 | position: static; 49 | width: 100% !important; 50 | height: auto !important; 51 | zoom: 1 !important; 52 | pointer-events: initial; 53 | 54 | left: auto; 55 | top: auto; 56 | margin: 0 !important; 57 | padding: 0 !important; 58 | 59 | overflow: visible; 60 | display: block; 61 | 62 | perspective: none; 63 | perspective-origin: 50% 50%; 64 | } 65 | 66 | .reveal .slides .pdf-page { 67 | position: relative; 68 | overflow: hidden; 69 | z-index: 1; 70 | 71 | page-break-after: always; 72 | } 73 | 74 | .reveal .slides section { 75 | visibility: visible !important; 76 | display: block !important; 77 | position: absolute !important; 78 | 79 | margin: 0 !important; 80 | padding: 0 !important; 81 | box-sizing: border-box !important; 82 | min-height: 1px; 83 | 84 | opacity: 1 !important; 85 | 86 | transform-style: flat !important; 87 | transform: none !important; 88 | } 89 | 90 | .reveal section.stack { 91 | position: relative !important; 92 | margin: 0 !important; 93 | padding: 0 !important; 94 | page-break-after: avoid !important; 95 | height: auto !important; 96 | min-height: auto !important; 97 | } 98 | 99 | .reveal img { 100 | box-shadow: none; 101 | } 102 | 103 | 104 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */ 105 | .reveal .backgrounds { 106 | display: none; 107 | } 108 | .reveal .slide-background { 109 | display: block !important; 110 | position: absolute; 111 | top: 0; 112 | left: 0; 113 | width: 100%; 114 | height: 100%; 115 | z-index: auto !important; 116 | } 117 | 118 | /* Display slide speaker notes when 'showNotes' is enabled */ 119 | .reveal.show-notes { 120 | max-width: none; 121 | max-height: none; 122 | } 123 | .reveal .speaker-notes-pdf { 124 | display: block; 125 | width: 100%; 126 | height: auto; 127 | max-height: none; 128 | top: auto; 129 | right: auto; 130 | bottom: auto; 131 | left: auto; 132 | z-index: 100; 133 | } 134 | 135 | /* Layout option which makes notes appear on a separate page */ 136 | .reveal .speaker-notes-pdf[data-layout="separate-page"] { 137 | position: relative; 138 | color: inherit; 139 | background-color: transparent; 140 | padding: 20px; 141 | page-break-after: always; 142 | border: 0; 143 | } 144 | 145 | /* Display slide numbers when 'slideNumber' is enabled */ 146 | .reveal .slide-number-pdf { 147 | display: block; 148 | position: absolute; 149 | font-size: 14px; 150 | } 151 | 152 | /* This accessibility tool is not useful in PDF and breaks it visually */ 153 | .aria-status { 154 | display: none; 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /css/theme/README.md: -------------------------------------------------------------------------------- 1 | ## Dependencies 2 | 3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment installed before proceeding: https://revealjs.revealjs.com/installation/#full-setup 4 | 5 | ## Creating a Theme 6 | 7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled from Sass to CSS (see the [gulpfile](https://github.com/hakimel/reveal.js/blob/master/gulpfile.js)) when you run `npm run build -- css-themes`. 8 | 9 | Each theme file does four things in the following order: 10 | 11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)** 12 | Shared utility functions. 13 | 14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)** 15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3. 16 | 17 | 3. **Override** 18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please. 19 | 20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)** 21 | The template theme file which will generate final CSS output based on the currently defined variables. 22 | -------------------------------------------------------------------------------- /css/theme/source/precice.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Custom theme for reveal.js. 3 | * 4 | * By Gerasimos Chourdakis 5 | * Based on White by Hakim El Hattab, http://hakim.se 6 | */ 7 | 8 | 9 | // Default mixins and settings ----------------- 10 | @import "../template/mixins"; 11 | @import "../template/settings"; 12 | // --------------------------------------------- 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 17 | 18 | 19 | // Override theme settings (see ../template/settings.scss) 20 | $backgroundColor: #fff; 21 | 22 | $mainColor: #000; 23 | $headingColor: #000; 24 | 25 | $mainFontSize: 36px; 26 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 28 | $headingTextShadow: none; 29 | $headingLetterSpacing: normal; 30 | $headingTextTransform: normal; 31 | $headingFontWeight: 600; 32 | $linkColor: #0065BD; 33 | $linkColorHover: lighten( $linkColor, 15% ); 34 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 35 | 36 | $heading1Size: 1.6em; 37 | $heading2Size: 1.3em; 38 | $heading3Size: 1.0em; 39 | $heading4Size: 1.0em; 40 | 41 | section.has-dark-background { 42 | &, h1, h2, h3, h4, h5, h6 { 43 | color: #fff; 44 | } 45 | } 46 | 47 | // body:after { 48 | // content: url(../../images/precice.png); 49 | // position: fixed; 50 | // top: 2.5em; 51 | // right: 2.5em; 52 | // } 53 | 54 | // Theme template ------------------------------ 55 | @import "../template/theme"; 56 | // --------------------------------------------- -------------------------------------------------------------------------------- /css/theme/template/exposer.scss: -------------------------------------------------------------------------------- 1 | // Exposes theme's variables for easy re-use in CSS for plugin authors 2 | 3 | :root { 4 | --background-color: #{$backgroundColor}; 5 | --main-font: #{$mainFont}; 6 | --main-font-size: #{$mainFontSize}; 7 | --main-color: #{$mainColor}; 8 | --block-margin: #{$blockMargin}; 9 | --heading-margin: #{$headingMargin}; 10 | --heading-font: #{$headingFont}; 11 | --heading-color: #{$headingColor}; 12 | --heading-line-height: #{$headingLineHeight}; 13 | --heading-letter-spacing: #{$headingLetterSpacing}; 14 | --heading-text-transform: #{$headingTextTransform}; 15 | --heading-text-shadow: #{$headingTextShadow}; 16 | --heading-font-weight: #{$headingFontWeight}; 17 | --heading1-text-shadow: #{$heading1TextShadow}; 18 | --heading1-size: #{$heading1Size}; 19 | --heading2-size: #{$heading2Size}; 20 | --heading3-size: #{$heading3Size}; 21 | --heading4-size: #{$heading4Size}; 22 | --code-font: #{$codeFont}; 23 | --link-color: #{$linkColor}; 24 | --link-color-hover: #{$linkColorHover}; 25 | --selection-background-color: #{$selectionBackgroundColor}; 26 | --selection-color: #{$selectionColor}; 27 | } 28 | -------------------------------------------------------------------------------- /css/theme/template/mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin vertical-gradient( $top, $bottom ) { 2 | background: $top; 3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% ); 4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) ); 5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% ); 6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% ); 7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% ); 8 | background: linear-gradient( top, $top 0%, $bottom 100% ); 9 | } 10 | 11 | @mixin horizontal-gradient( $top, $bottom ) { 12 | background: $top; 13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% ); 14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) ); 15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% ); 16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% ); 17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% ); 18 | background: linear-gradient( left, $top 0%, $bottom 100% ); 19 | } 20 | 21 | @mixin radial-gradient( $outer, $inner, $type: circle ) { 22 | background: $outer; 23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) ); 25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 29 | } -------------------------------------------------------------------------------- /css/theme/template/settings.scss: -------------------------------------------------------------------------------- 1 | // Base settings for all themes that can optionally be 2 | // overridden by the super-theme 3 | 4 | // Background of the presentation 5 | $backgroundColor: #2b2b2b; 6 | 7 | // Primary/body text 8 | $mainFont: 'Lato', sans-serif; 9 | $mainFontSize: 40px; 10 | $mainColor: #eee; 11 | 12 | // Vertical spacing between blocks of text 13 | $blockMargin: 20px; 14 | 15 | // Headings 16 | $headingMargin: 0 0 $blockMargin 0; 17 | $headingFont: 'League Gothic', Impact, sans-serif; 18 | $headingColor: #eee; 19 | $headingLineHeight: 1.2; 20 | $headingLetterSpacing: normal; 21 | $headingTextTransform: uppercase; 22 | $headingTextShadow: none; 23 | $headingFontWeight: normal; 24 | $heading1TextShadow: $headingTextShadow; 25 | 26 | $heading1Size: 3.77em; 27 | $heading2Size: 2.11em; 28 | $heading3Size: 1.55em; 29 | $heading4Size: 1.00em; 30 | 31 | $codeFont: monospace; 32 | 33 | // Links and actions 34 | $linkColor: #13DAEC; 35 | $linkColorHover: lighten( $linkColor, 20% ); 36 | 37 | // Text selection 38 | $selectionBackgroundColor: #FF5E99; 39 | $selectionColor: #fff; 40 | 41 | // Generates the presentation background, can be overridden 42 | // to return a background image or gradient 43 | @mixin bodyBackground() { 44 | background: $backgroundColor; 45 | } 46 | -------------------------------------------------------------------------------- /dist/reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v4.0 | 20180602 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | main, menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | font-size: 100%; 23 | font: inherit; 24 | vertical-align: baseline; 25 | } 26 | /* HTML5 display-role reset for older browsers */ 27 | article, aside, details, figcaption, figure, 28 | footer, header, hgroup, main, menu, nav, section { 29 | display: block; 30 | } -------------------------------------------------------------------------------- /dist/theme/fonts/league-gothic/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License (OFL) 2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL 3 | -------------------------------------------------------------------------------- /dist/theme/fonts/league-gothic/league-gothic.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'League Gothic'; 3 | src: url('league-gothic.eot'); 4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'), 5 | url('league-gothic.woff') format('woff'), 6 | url('league-gothic.ttf') format('truetype'); 7 | 8 | font-weight: normal; 9 | font-style: normal; 10 | } -------------------------------------------------------------------------------- /dist/theme/fonts/league-gothic/league-gothic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/league-gothic/league-gothic.eot -------------------------------------------------------------------------------- /dist/theme/fonts/league-gothic/league-gothic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/league-gothic/league-gothic.ttf -------------------------------------------------------------------------------- /dist/theme/fonts/league-gothic/league-gothic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/league-gothic/league-gothic.woff -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License 2 | 3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. 4 | 5 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 7 | 8 | —————————————————————————————- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | —————————————————————————————- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 14 | 15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 16 | 17 | DEFINITIONS 18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 19 | 20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s). 21 | 22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s). 23 | 24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 25 | 26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 27 | 28 | PERMISSION & CONDITIONS 29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 30 | 31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 32 | 33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 34 | 35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 36 | 37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 38 | 39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 40 | 41 | TERMINATION 42 | This license becomes null and void if any of the above conditions are not met. 43 | 44 | DISCLAIMER 45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff -------------------------------------------------------------------------------- /dist/theme/fonts/source-sans-pro/source-sans-pro.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Source Sans Pro'; 3 | src: url('source-sans-pro-regular.eot'); 4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'), 5 | url('source-sans-pro-regular.woff') format('woff'), 6 | url('source-sans-pro-regular.ttf') format('truetype'); 7 | font-weight: normal; 8 | font-style: normal; 9 | } 10 | 11 | @font-face { 12 | font-family: 'Source Sans Pro'; 13 | src: url('source-sans-pro-italic.eot'); 14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'), 15 | url('source-sans-pro-italic.woff') format('woff'), 16 | url('source-sans-pro-italic.ttf') format('truetype'); 17 | font-weight: normal; 18 | font-style: italic; 19 | } 20 | 21 | @font-face { 22 | font-family: 'Source Sans Pro'; 23 | src: url('source-sans-pro-semibold.eot'); 24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'), 25 | url('source-sans-pro-semibold.woff') format('woff'), 26 | url('source-sans-pro-semibold.ttf') format('truetype'); 27 | font-weight: 600; 28 | font-style: normal; 29 | } 30 | 31 | @font-face { 32 | font-family: 'Source Sans Pro'; 33 | src: url('source-sans-pro-semibolditalic.eot'); 34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'), 35 | url('source-sans-pro-semibolditalic.woff') format('woff'), 36 | url('source-sans-pro-semibolditalic.ttf') format('truetype'); 37 | font-weight: 600; 38 | font-style: italic; 39 | } -------------------------------------------------------------------------------- /generator-propagator/skeleton/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning..." 5 | 6 | rm -fv core 7 | 8 | rm -fv \ 9 | precice-*.log \ 10 | precice-postProcessingInfo.log \ 11 | precice-*-events.json \ 12 | *.vtk 13 | 14 | rm -rfv precice-run 15 | 16 | rm -fv precice-config.pdf 17 | 18 | rm -rfv precice-output 19 | 20 | echo "Cleaning complete!" 21 | #------------------------------------------------------------------------------ 22 | -------------------------------------------------------------------------------- /generator-propagator/skeleton/generator.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | import time 3 | 4 | 5 | n = 20 6 | dn = 1 / n 7 | 8 | # generate mesh 9 | y = np.linspace(0, 1, n + 1) 10 | 11 | dt = 0.01 12 | t = 0 13 | 14 | while True: 15 | 16 | print("Generating data") 17 | time.sleep(0.2) 18 | u = 1 - 2 * np.random.rand(n) 19 | 20 | t = t + dt 21 | if(t > 0.1): 22 | break 23 | 24 | -------------------------------------------------------------------------------- /generator-propagator/skeleton/precice-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /generator-propagator/skeleton/propagator.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | import matplotlib.pyplot as plt 3 | 4 | n = 20 5 | dn = 1 / n 6 | 7 | # generate mesh 8 | x = np.linspace(0, 1, n+1) 9 | y = np.linspace(0, 1, n+1) 10 | 11 | # initial data, associated to cell centers 12 | u = np.zeros([n, n]) 13 | 14 | # plot initial data 15 | fig = plt.figure() 16 | ax = fig.add_subplot(111) 17 | X, Y = np.meshgrid(x, y) 18 | c = ax.pcolor(X, Y, u, vmin=-1, vmax=1, edgecolors='k', linewidths=1, cmap='RdBu') 19 | fig.colorbar(c, ax=ax) 20 | plt.axvspan(0.99, 1.0, color='grey', alpha=0.8) 21 | plt.xlabel("x (Interface at x=1)") 22 | plt.ylabel("y") 23 | plt.ion() 24 | plt.show() 25 | 26 | dt = 0.01 27 | t = 0 28 | 29 | # some data to propagate, "-1" in Python means the last entry 30 | u[:,-1] = y[:-1] 31 | 32 | while True: 33 | 34 | print("Propagating data") 35 | # some (arbitrary) convection-diffusion rule 36 | # top row 37 | u[0, :-1] = 0.3 * u[0, :-1] + 0.6 * u[0, 1:] + 0.1 * u[1, :-1] 38 | # inner domain 39 | u[1:-1, :-1] = 0.2 * u[1:-1, :-1] + 0.6 * u[1:-1, 1:] + 0.1 * u[2:, :-1] + 0.1 * u[:-2, :-1] 40 | # bottom row 41 | u[-1, :-1] = 0.3 * u[-1, :-1] + 0.6 * u[-1, 1:] + 0.1 * u[-1, :-1] 42 | 43 | # plot current result 44 | plt.pause(0.2) 45 | ax.pcolor(X, Y, u, vmin=-1, vmax=1, edgecolors='k', linewidths=1, cmap='RdBu') 46 | 47 | # advance 48 | t = t + dt 49 | if(t > 0.2): 50 | break 51 | -------------------------------------------------------------------------------- /generator-propagator/solution/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning..." 5 | 6 | rm -fv core 7 | 8 | rm -fv \ 9 | precice-*.log \ 10 | precice-postProcessingInfo.log \ 11 | precice-*-events.json \ 12 | *.vtk 13 | 14 | rm -rfv precice-run 15 | 16 | rm -fv precice-config.pdf 17 | 18 | rm -rfv precice-output 19 | 20 | echo "Cleaning complete!" 21 | #------------------------------------------------------------------------------ 22 | -------------------------------------------------------------------------------- /generator-propagator/solution/generator.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | import time 3 | import precice 4 | 5 | 6 | n = 20 7 | dn = 1 / n 8 | 9 | # generate mesh 10 | y = np.linspace(0, 1, n + 1) 11 | 12 | # preCICE setup 13 | participant_name = "Generator" 14 | config_file_name = "precice-config.xml" 15 | solver_process_index = 0 16 | solver_process_size = 1 17 | interface = precice.Interface(participant_name, config_file_name, solver_process_index, solver_process_size) 18 | 19 | mesh_name = "Generator-Mesh" 20 | mesh_id = interface.get_mesh_id(mesh_name) 21 | 22 | data_name = "Data" 23 | data_id = interface.get_data_id(data_name, mesh_id) 24 | 25 | vertices = [[1, y0] for y0 in y[:-1]] 26 | 27 | vertex_ids = interface.set_mesh_vertices(mesh_id, vertices) 28 | 29 | precice_dt = interface.initialize() 30 | 31 | dt = 0.01 32 | t = 0 33 | 34 | while interface.is_coupling_ongoing(): 35 | 36 | print("Generating data") 37 | dt = np.minimum(dt, precice_dt) 38 | time.sleep(0.2) 39 | u = 1 - 2 * np.random.rand(n) 40 | 41 | interface.write_block_scalar_data(data_id, vertex_ids, u) 42 | 43 | precice_dt = interface.advance(dt) 44 | 45 | t = t + dt 46 | 47 | interface.finalize() 48 | 49 | -------------------------------------------------------------------------------- /generator-propagator/solution/precice-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /generator-propagator/solution/propagator.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | import matplotlib.pyplot as plt 3 | import precice 4 | 5 | 6 | n = 20 7 | dn = 1 / n 8 | 9 | # generate mesh 10 | x = np.linspace(0, 1, n+1) 11 | y = np.linspace(0, 1, n+1) 12 | 13 | # initial data, associated to cell centers 14 | u = np.zeros([n, n]) 15 | 16 | # preCICE setup 17 | participant_name = "Propagator" 18 | config_file_name = "precice-config.xml" 19 | solver_process_index = 0 20 | solver_process_size = 1 21 | interface = precice.Interface(participant_name, config_file_name, solver_process_index, solver_process_size) 22 | 23 | mesh_name = "Propagator-Mesh" 24 | mesh_id = interface.get_mesh_id(mesh_name) 25 | 26 | data_name = "Data" 27 | data_id = interface.get_data_id(data_name, mesh_id) 28 | 29 | vertices = [[1, y0] for y0 in y[:-1]] 30 | 31 | vertex_ids = interface.set_mesh_vertices(mesh_id, vertices) 32 | 33 | precice_dt = interface.initialize() 34 | 35 | # plot initial data 36 | fig = plt.figure() 37 | ax = fig.add_subplot(111) 38 | X, Y = np.meshgrid(x, y) 39 | c = ax.pcolor(X, Y, u, vmin=-1, vmax=1, edgecolors='k', linewidths=1, cmap='RdBu') 40 | fig.colorbar(c, ax=ax) 41 | plt.axvspan(0.99, 1.0, color='grey', alpha=0.8) 42 | plt.xlabel("x (Interface at x=1)") 43 | plt.ylabel("y") 44 | plt.ion() 45 | plt.show() 46 | 47 | t = 0 48 | 49 | while interface.is_coupling_ongoing(): 50 | 51 | dt = 0.0025 52 | 53 | print("Propagating data") 54 | dt = np.minimum(dt, precice_dt) 55 | 56 | u[:,-1] = interface.read_block_scalar_data(data_id, vertex_ids) 57 | 58 | # some (arbitrary) convection-diffusion rule 59 | # top row 60 | u[0, :-1] = 0.3 * u[0, :-1] + 0.6 * u[0, 1:] + 0.1 * u[1, :-1] 61 | # inner domain 62 | u[1:-1, :-1] = 0.2 * u[1:-1, :-1] + 0.6 * u[1:-1, 1:] + 0.1 * u[2:, :-1] + 0.1 * u[:-2, :-1] 63 | # bottom row 64 | u[-1, :-1] = 0.3 * u[-1, :-1] + 0.6 * u[-1, 1:] + 0.1 * u[-1, :-1] 65 | 66 | # plot current result 67 | plt.pause(0.2) 68 | ax.pcolor(X, Y, u, vmin=-1, vmax=1, edgecolors='k', linewidths=1, cmap='RdBu') 69 | 70 | precice_dt = interface.advance(dt) 71 | 72 | # advance 73 | t = t + dt 74 | 75 | interface.finalize() 76 | -------------------------------------------------------------------------------- /images/closing/funding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/closing/funding.png -------------------------------------------------------------------------------- /images/closing/marschall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/closing/marschall.png -------------------------------------------------------------------------------- /images/closing/preCICE2021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/closing/preCICE2021.png -------------------------------------------------------------------------------- /images/closing/workshop-group.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/closing/workshop-group.jpeg -------------------------------------------------------------------------------- /images/level1/config-original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/level1/config-original.png -------------------------------------------------------------------------------- /images/level1/propagator_description.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/level1/propagator_description.png -------------------------------------------------------------------------------- /images/level2/openfoam-openfoam_flat_plate_surface_T_RBG_ruler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/level2/openfoam-openfoam_flat_plate_surface_T_RBG_ruler.png -------------------------------------------------------------------------------- /images/level2/openfoam_adapter_overview_checkpointing.svg: -------------------------------------------------------------------------------- 1 | ../../overview-talk-slides/images/openfoam/openfoam_adapter_overview_checkpointing.svg -------------------------------------------------------------------------------- /images/level2/openfoam_adapter_overview_data.svg: -------------------------------------------------------------------------------- 1 | ../../overview-talk-slides/images/openfoam/openfoam_adapter_overview_data.svg -------------------------------------------------------------------------------- /images/level2/openfoam_adapter_overview_linking.svg: -------------------------------------------------------------------------------- 1 | ../../overview-talk-slides/images/openfoam/openfoam_adapter_overview_linking.svg -------------------------------------------------------------------------------- /images/level2/openfoam_adapter_overview_timestep.svg: -------------------------------------------------------------------------------- 1 | ../../overview-talk-slides/images/openfoam/openfoam_adapter_overview_timestep.svg -------------------------------------------------------------------------------- /images/level3/flap_perp.png: -------------------------------------------------------------------------------- 1 | ../../overview-talk-slides/images/openfoam/flap_perp.png -------------------------------------------------------------------------------- /images/logos/tue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/logos/tue.png -------------------------------------------------------------------------------- /images/logos/tum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/logos/tum.png -------------------------------------------------------------------------------- /images/resources/discourse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/resources/discourse.png -------------------------------------------------------------------------------- /images/resources/gitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/resources/gitter.png -------------------------------------------------------------------------------- /images/resources/maillist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/resources/maillist.png -------------------------------------------------------------------------------- /images/resources/precice_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/resources/precice_org.png -------------------------------------------------------------------------------- /images/resources/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/resources/twitter.png -------------------------------------------------------------------------------- /images/resources/wiki.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/resources/wiki.png -------------------------------------------------------------------------------- /images/resources/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MakisH/ofw15-slides/281e465874c5180bddafd42c9f61166c5cd7a291/images/resources/youtube.png -------------------------------------------------------------------------------- /js/components/playback.js: -------------------------------------------------------------------------------- 1 | /** 2 | * UI component that lets the use control auto-slide 3 | * playback via play/pause. 4 | */ 5 | export default class Playback { 6 | 7 | /** 8 | * @param {HTMLElement} container The component will append 9 | * itself to this 10 | * @param {function} progressCheck A method which will be 11 | * called frequently to get the current playback progress on 12 | * a range of 0-1 13 | */ 14 | constructor( container, progressCheck ) { 15 | 16 | // Cosmetics 17 | this.diameter = 100; 18 | this.diameter2 = this.diameter/2; 19 | this.thickness = 6; 20 | 21 | // Flags if we are currently playing 22 | this.playing = false; 23 | 24 | // Current progress on a 0-1 range 25 | this.progress = 0; 26 | 27 | // Used to loop the animation smoothly 28 | this.progressOffset = 1; 29 | 30 | this.container = container; 31 | this.progressCheck = progressCheck; 32 | 33 | this.canvas = document.createElement( 'canvas' ); 34 | this.canvas.className = 'playback'; 35 | this.canvas.width = this.diameter; 36 | this.canvas.height = this.diameter; 37 | this.canvas.style.width = this.diameter2 + 'px'; 38 | this.canvas.style.height = this.diameter2 + 'px'; 39 | this.context = this.canvas.getContext( '2d' ); 40 | 41 | this.container.appendChild( this.canvas ); 42 | 43 | this.render(); 44 | 45 | } 46 | 47 | setPlaying( value ) { 48 | 49 | const wasPlaying = this.playing; 50 | 51 | this.playing = value; 52 | 53 | // Start repainting if we weren't already 54 | if( !wasPlaying && this.playing ) { 55 | this.animate(); 56 | } 57 | else { 58 | this.render(); 59 | } 60 | 61 | } 62 | 63 | animate() { 64 | 65 | const progressBefore = this.progress; 66 | 67 | this.progress = this.progressCheck(); 68 | 69 | // When we loop, offset the progress so that it eases 70 | // smoothly rather than immediately resetting 71 | if( progressBefore > 0.8 && this.progress < 0.2 ) { 72 | this.progressOffset = this.progress; 73 | } 74 | 75 | this.render(); 76 | 77 | if( this.playing ) { 78 | requestAnimationFrame( this.animate.bind( this ) ); 79 | } 80 | 81 | } 82 | 83 | /** 84 | * Renders the current progress and playback state. 85 | */ 86 | render() { 87 | 88 | let progress = this.playing ? this.progress : 0, 89 | radius = ( this.diameter2 ) - this.thickness, 90 | x = this.diameter2, 91 | y = this.diameter2, 92 | iconSize = 28; 93 | 94 | // Ease towards 1 95 | this.progressOffset += ( 1 - this.progressOffset ) * 0.1; 96 | 97 | const endAngle = ( - Math.PI / 2 ) + ( progress * ( Math.PI * 2 ) ); 98 | const startAngle = ( - Math.PI / 2 ) + ( this.progressOffset * ( Math.PI * 2 ) ); 99 | 100 | this.context.save(); 101 | this.context.clearRect( 0, 0, this.diameter, this.diameter ); 102 | 103 | // Solid background color 104 | this.context.beginPath(); 105 | this.context.arc( x, y, radius + 4, 0, Math.PI * 2, false ); 106 | this.context.fillStyle = 'rgba( 0, 0, 0, 0.4 )'; 107 | this.context.fill(); 108 | 109 | // Draw progress track 110 | this.context.beginPath(); 111 | this.context.arc( x, y, radius, 0, Math.PI * 2, false ); 112 | this.context.lineWidth = this.thickness; 113 | this.context.strokeStyle = 'rgba( 255, 255, 255, 0.2 )'; 114 | this.context.stroke(); 115 | 116 | if( this.playing ) { 117 | // Draw progress on top of track 118 | this.context.beginPath(); 119 | this.context.arc( x, y, radius, startAngle, endAngle, false ); 120 | this.context.lineWidth = this.thickness; 121 | this.context.strokeStyle = '#fff'; 122 | this.context.stroke(); 123 | } 124 | 125 | this.context.translate( x - ( iconSize / 2 ), y - ( iconSize / 2 ) ); 126 | 127 | // Draw play/pause icons 128 | if( this.playing ) { 129 | this.context.fillStyle = '#fff'; 130 | this.context.fillRect( 0, 0, iconSize / 2 - 4, iconSize ); 131 | this.context.fillRect( iconSize / 2 + 4, 0, iconSize / 2 - 4, iconSize ); 132 | } 133 | else { 134 | this.context.beginPath(); 135 | this.context.translate( 4, 0 ); 136 | this.context.moveTo( 0, 0 ); 137 | this.context.lineTo( iconSize - 4, iconSize / 2 ); 138 | this.context.lineTo( 0, iconSize ); 139 | this.context.fillStyle = '#fff'; 140 | this.context.fill(); 141 | } 142 | 143 | this.context.restore(); 144 | 145 | } 146 | 147 | on( type, listener ) { 148 | this.canvas.addEventListener( type, listener, false ); 149 | } 150 | 151 | off( type, listener ) { 152 | this.canvas.removeEventListener( type, listener, false ); 153 | } 154 | 155 | destroy() { 156 | 157 | this.playing = false; 158 | 159 | if( this.canvas.parentNode ) { 160 | this.container.removeChild( this.canvas ); 161 | } 162 | 163 | } 164 | 165 | } -------------------------------------------------------------------------------- /js/controllers/focus.js: -------------------------------------------------------------------------------- 1 | import { closest } from '../utils/util.js' 2 | 3 | /** 4 | * Manages focus when a presentation is embedded. This 5 | * helps us only capture keyboard from the presentation 6 | * a user is currently interacting with in a page where 7 | * multiple presentations are embedded. 8 | */ 9 | 10 | const STATE_FOCUS = 'focus'; 11 | const STATE_BLUR = 'blur'; 12 | 13 | export default class Focus { 14 | 15 | constructor( Reveal ) { 16 | 17 | this.Reveal = Reveal; 18 | 19 | this.onRevealPointerDown = this.onRevealPointerDown.bind( this ); 20 | this.onDocumentPointerDown = this.onDocumentPointerDown.bind( this ); 21 | 22 | } 23 | 24 | /** 25 | * Called when the reveal.js config is updated. 26 | */ 27 | configure( config, oldConfig ) { 28 | 29 | if( config.embedded ) { 30 | this.blur(); 31 | } 32 | else { 33 | this.focus(); 34 | this.unbind(); 35 | } 36 | 37 | } 38 | 39 | bind() { 40 | 41 | if( this.Reveal.getConfig().embedded ) { 42 | this.Reveal.getRevealElement().addEventListener( 'pointerdown', this.onRevealPointerDown, false ); 43 | } 44 | 45 | } 46 | 47 | unbind() { 48 | 49 | this.Reveal.getRevealElement().removeEventListener( 'pointerdown', this.onRevealPointerDown, false ); 50 | document.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false ); 51 | 52 | } 53 | 54 | focus() { 55 | 56 | if( this.state !== STATE_FOCUS ) { 57 | this.Reveal.getRevealElement().classList.add( 'focused' ); 58 | document.addEventListener( 'pointerdown', this.onDocumentPointerDown, false ); 59 | } 60 | 61 | this.state = STATE_FOCUS; 62 | 63 | } 64 | 65 | blur() { 66 | 67 | if( this.state !== STATE_BLUR ) { 68 | this.Reveal.getRevealElement().classList.remove( 'focused' ); 69 | document.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false ); 70 | } 71 | 72 | this.state = STATE_BLUR; 73 | 74 | } 75 | 76 | isFocused() { 77 | 78 | return this.state === STATE_FOCUS; 79 | 80 | } 81 | 82 | onRevealPointerDown( event ) { 83 | 84 | this.focus(); 85 | 86 | } 87 | 88 | onDocumentPointerDown( event ) { 89 | 90 | let revealElement = closest( event.target, '.reveal' ); 91 | if( !revealElement || revealElement !== this.Reveal.getRevealElement() ) { 92 | this.blur(); 93 | } 94 | 95 | } 96 | 97 | } -------------------------------------------------------------------------------- /js/controllers/notes.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Handles the showing and 3 | */ 4 | export default class Notes { 5 | 6 | constructor( Reveal ) { 7 | 8 | this.Reveal = Reveal; 9 | 10 | } 11 | 12 | render() { 13 | 14 | this.element = document.createElement( 'div' ); 15 | this.element.className = 'speaker-notes'; 16 | this.element.setAttribute( 'data-prevent-swipe', '' ); 17 | this.element.setAttribute( 'tabindex', '0' ); 18 | this.Reveal.getRevealElement().appendChild( this.element ); 19 | 20 | } 21 | 22 | /** 23 | * Called when the reveal.js config is updated. 24 | */ 25 | configure( config, oldConfig ) { 26 | 27 | if( config.showNotes ) { 28 | this.element.setAttribute( 'data-layout', typeof config.showNotes === 'string' ? config.showNotes : 'inline' ); 29 | } 30 | 31 | } 32 | 33 | /** 34 | * Pick up notes from the current slide and display them 35 | * to the viewer. 36 | * 37 | * @see {@link config.showNotes} 38 | */ 39 | update() { 40 | 41 | if( this.Reveal.getConfig().showNotes && this.element && this.Reveal.getCurrentSlide() && !this.Reveal.print.isPrintingPDF() ) { 42 | 43 | this.element.innerHTML = this.getSlideNotes() || 'No notes on this slide.'; 44 | 45 | } 46 | 47 | } 48 | 49 | /** 50 | * Updates the visibility of the speaker notes sidebar that 51 | * is used to share annotated slides. The notes sidebar is 52 | * only visible if showNotes is true and there are notes on 53 | * one or more slides in the deck. 54 | */ 55 | updateVisibility() { 56 | 57 | if( this.Reveal.getConfig().showNotes && this.hasNotes() && !this.Reveal.print.isPrintingPDF() ) { 58 | this.Reveal.getRevealElement().classList.add( 'show-notes' ); 59 | } 60 | else { 61 | this.Reveal.getRevealElement().classList.remove( 'show-notes' ); 62 | } 63 | 64 | } 65 | 66 | /** 67 | * Checks if there are speaker notes for ANY slide in the 68 | * presentation. 69 | */ 70 | hasNotes() { 71 | 72 | return this.Reveal.getSlidesElement().querySelectorAll( '[data-notes], aside.notes' ).length > 0; 73 | 74 | } 75 | 76 | /** 77 | * Checks if this presentation is running inside of the 78 | * speaker notes window. 79 | * 80 | * @return {boolean} 81 | */ 82 | isSpeakerNotesWindow() { 83 | 84 | return !!window.location.search.match( /receiver/gi ); 85 | 86 | } 87 | 88 | /** 89 | * Retrieves the speaker notes from a slide. Notes can be 90 | * defined in two ways: 91 | * 1. As a data-notes attribute on the slide
92 | * 2. As an