meso-web

Sources of the |Méso|Star> website
git clone git://git.meso-star.fr/meso-web.git
Log | Files | Refs | README | LICENSE

commit e7cffc40691cec8492ac14e9690b8e8f6ae3fe2f
parent ede781f78f1a549a800653c0605ec254a1b35e5e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 25 Nov 2020 21:06:52 +0100

Setup the Stardis download page

Diffstat:
Mmeso-menu.sh | 2+-
Mstardis/downloads/Stardis-0.11.0-GNU-Linux64.tar.gz | 4++--
Mstardis/downloads/Stardis-0.11.0-Sources.tar.gz | 4++--
Mstardis/stardis.html.in | 8++++----
Mstardis/stardis.sh | 40++++++++++++++++++++++++++++++++++++++++
5 files changed, 49 insertions(+), 9 deletions(-)

diff --git a/meso-menu.sh b/meso-menu.sh @@ -425,7 +425,7 @@ print_downloads() { echo ' <th>Sources</th>' echo ' </tr>' - local archs=$(find downloads/ -regex ".*/$prefix-[0-9]+.[0-9]+.[0-9]+-[^\(Sources\)].*tar.gz" | sort -r ) + local archs=$(find downloads/ -regex ".*/$prefix-[0-9]+.[0-9]+.[0-9]+\(-r[0-9]+\)?-[^\(Sources\)].*tar.gz" | sort -r ) local arch; for arch in $archs; do local version=$(echo $arch | sed "s/.*${prefix}-\([0-9]\+\.[0-9]\+\.[0-9]\+\(-r[0-9]\+\)\{0,1\}\)-.*/\1/g") diff --git a/stardis/downloads/Stardis-0.11.0-GNU-Linux64.tar.gz b/stardis/downloads/Stardis-0.11.0-GNU-Linux64.tar.gz @@ -1 +1 @@ -#$# git-wad 2a1ae59e6e148ef8c8eb3abd0077ddd273d4fb9ad744244f87fd988e719150c1 22243455 -\ No newline at end of file +#$# git-wad 3200281a4ff7303eb9eaf3b5cb958bf7e0f745599133410ff50d90daa7b33229 22262754 +\ No newline at end of file diff --git a/stardis/downloads/Stardis-0.11.0-Sources.tar.gz b/stardis/downloads/Stardis-0.11.0-Sources.tar.gz @@ -1 +1 @@ -#$# git-wad a253b607ff7fca4f0dc8fd30b7cfdceba38e6debdf9e13831d89877d1e6f4acc 870135 -\ No newline at end of file +#$# git-wad 7fe4d10c62050984a4d8fb481dcf8e3743462d4c699e02fa3b6b77e3e7e5428f 870465 +\ No newline at end of file diff --git a/stardis/stardis.html.in b/stardis/stardis.html.in @@ -21,7 +21,7 @@ <p>Stardis is a <b>thermal simulation</b> framework for <b>complex 2D and 3D environment</b>, based on new <b>Monte-Carlo</b> algorithms built from reformulations of the main heat transfer phenomena: conduction, convection and -radiation. A serie of cross-recursive algorithms have then been derived, and +radiation. A set of cross-recursive algorithms have then been derived, and result in the simulation of "<b>thermal paths</b>" that explore space and time until a boundary condition or an initial condition is found. The key concept here is that heat transfer phenomena are not considered separately but are @@ -33,7 +33,7 @@ explicitly targets engineers, researcher, teachers or students wishing to fully appropriate the <b>statistical formulation of heat transfer</b>, from theoretical concepts to practical implementation. The complete Stardis framework is thus released under <b><a href="#license">free licenses</a></b> -that guarantee the users the aibility to freely use, study, modify or extend +that guarantee the users the ability to freely use, study, modify or extend the complete source code according to their needs.</p> <p>Despite its specific advantages, Stardis is not meant to fully replace @@ -93,7 +93,7 @@ post-processing. See below for more information on each of these components.<p> <h2 id="solver">Stardis-Solver</h2> <p><a href=https://gitlab.com/meso-star/stardis-solver.git>Stardis-Solver</a> -is the core library of Stardis: it simulates coupled convecto - conducto +is the core library of Stardis: it simulates coupled convecto - conducto - radiative heat transfers by sampling thermal paths that explore space and time until a boundary condition or an initial condition is found. Note that this path formulation does not require <b>any volumetric mesh</b>: in addition of @@ -260,7 +260,7 @@ run a thermal simulation through the <code>stardis</code> CLI; this archive provides input data and scripts that are good starting points to begin with the Stardis framework.</p> -<h2>Build from sources</h2> +<h2 id=build>Build from sources</h2> <p>The Stardis framework can be built directly from its source trees. Note that the whole Stardis framework was successfully built on Windows 10 with diff --git a/stardis/stardis.sh b/stardis/stardis.sh @@ -63,6 +63,26 @@ tar xzf $arch.tar.gz cd $dir_curr ################################################################################ +# Generate the release notes +################################################################################ +cd $dir_temp +solver_release_notes=$($markdown $arch/share/doc/stardis-solver/README.md \ + | sed '/^<h2>Release notes<\/h2>/,$!d' \ + | sed 1d \ + | sed '/^<h2>License<\/h2>/,$d') +stardis_release_notes=$($markdown $arch/share/doc/stardis/README.md \ + | sed '/^<h2>Release Notes<\/h2>/,$!d' \ + | sed 1d \ + | sed '/^<h2>License<\/h2>/,$d') +sgreen_release_notes=$($markdown $arch/share/doc/sgreen/README.md \ + | sed '/^<h2>Release notes<\/h2>/,$!d' \ + | sed 1d \ + | sed '/^<h2>License<\/h2>/,$d') +cd $dir_curr + + + +################################################################################ # Generate the overview page ################################################################################ tput bold; echo ">>> Generate the Stardis web pages"; tput sgr0 @@ -73,6 +93,7 @@ echo "Write stardis.html" print_footer; } > stardis.html + ################################################################################ # Generate the Downloads page ################################################################################ @@ -80,7 +101,22 @@ echo "Write stardis-downloads.html" { print_header Stardis Downloads; echo '<header><h1>Download Stardis</h1></header>'; + + echo '<p>The proposed archives contain precompiled version of the <a' + echo 'href=https://gitlab.com/meso-star/stardis-solver.git>Stardis-Solver</a>' + echo 'library and of the <a href="./man/man1/stardis.1.html">stardis</a>' + echo 'and <a href="./man/man1/sgreen.1.html">sgreen</a> command line' + echo 'tools. Refer below for their associated release notes. The version of' + echo 'the archive corresponds to the version number of the Stardis-Solver' + echo 'library packaged into the archive.</p>' + print_downloads Stardis "Linux"; + echo "<h2>Stardis-Solver Library release notes</h2>" + echo $solver_release_notes + echo "<h2>Stardis CLI release notes</h2>" + echo $stardis_release_notes + echo "<h2>Stardis-Green CLI release notes</h2>" + echo $sgreen_release_notes print_footer; } > stardis-downloads.html; @@ -99,6 +135,10 @@ for((i=0; i<${#stardis_man_pages[@]}; ++i)); do # Patch the htpp hyperlink sed -i 's/<A HREF="\.\.\/man1\/htpp\.1\.html">/<A HREF="..\/..\/..\/high-tune\/man\/man1\/htpp.1.html">/g' $output fi + if [ "$man_name" == "stardis-output" ]; then + # Patch the htrdr-image hyperlink + sed -i 's/<A HREF="\.\.\/man5\/htrdr-image\.5\.html">/<A HREF="..\/..\/..\/high-tune\/man\/man5\/htrdr-image.5.html">/g' $output + fi done