htrdr-combustion-spk.sh (2459B)
1 #!/bin/sh 2 3 # Copyright (C) 2017-2026 |Méso|Star> (contact@meso-star.com) 4 # 5 # This file is part of Méso-Web. 6 # 7 # Méso-Web is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 3 of the License, or 10 # (at your option) any later version. 11 # 12 # Méso-Web is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Méso-Web. If not, see <http://www.gnu.org/licenses/>. 19 20 . "./config.sh.in" 21 22 set -e 23 24 sed -n '0,/^## Gulder/p' "${comspk_readme}" \ 25 | sed '$d' \ 26 | sed "s/\${VERSION}/${comspk_version}/g" \ 27 | sed 's#https://www.meso-star.com/projects/htrdr/##g' 28 29 printf '## Downloads\n' 30 31 archs=$(find downloads -name "htrdr-Combustion-Starter-Pack*.tar.gz" | sort -r) 32 printf '%s\n' "${archs}" | list_starter_packs 33 34 sed -n '/^## Gulder/,/^## Dummy medium/p' "${comspk_readme}" | sed '$d' 35 36 printf '[](images/gulder_lateral.jpg)\n' 37 printf '\n' 38 printf '> Rendering in the visible range of the Gülder flame calculated\n' 39 printf '> by [htrdr-combustion](man/man1/htrdr-combustion.1.html).\n' 40 printf '> The flame is illuminated by a vertical laser sheet that\n' 41 printf '> crosses the central axis of the flame, from left to right.\n' 42 printf '> The image displays the radiation emitted by the laser,\n' 43 printf '> scattered and transmitted by the combustion medium for\n' 44 printf '> wavelength (here 532 nm).\n' 45 46 sed -n '/^## Dummy medium/,/^## Validation program/p' "${comspk_readme}" | sed '$d' 47 48 printf '[](images/dummy_medium.jpg)\n' 49 printf '\n' 50 printf '> Illustration of the dummy medium provided in the Starter Pack.\n' 51 printf '> This medium is illuminated by a laser sheet whose surface of\n' 52 printf '> emission is here represented in red. \n' 53 printf '\n' 54 printf '[]' 55 printf '(images/dummy_medium_clipped.jpg)\n' 56 printf '\n' 57 printf '> Dummy medium clipped along the y axis to emphasize\n' 58 printf '> the axisymmetric profile of its soot volume fraction.\n' 59 60 sed -n '/^## Validation program/,$p' "${comspk_readme}" \ 61 | sed "s/\${VERSION}/${comspk_version}/g"