Skip to content

Commit

Permalink
Deploying to gh-pages from @ a52207e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilleBonamy committed Feb 20, 2024
1 parent 12c7be1 commit 22634d2
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 66 deletions.
52 changes: 26 additions & 26 deletions algoSedFoam.html

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions governingEq.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions howtodocker.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ <h3>Contents</h3>
</li>
</ul>
</nav>
<p>Here is a How To about using the sedFoam docker.</p><p>The prerequisites is to install Docker : <a href="https://docs.docker.com/engine/install/">https:/<wbr />/<wbr />docs.docker.com/<wbr />engine/<wbr />install/<wbr /></a></p><p>This page is organised in two sections:</p><ul><li><a href="howtodocker.html#configuration" class="m-doc">Configuration of the sedFoam docker</a></li><li><a href="howtodocker.html#howtouse" class="m-doc">How to use/launch sedFoam docker ?</a></li></ul><section id="configuration"><h2><a href="#configuration">Configuration of the sedFoam docker</a></h2><p>Operating System : Ubuntu focal</p><p>Openfoam version : 2206 (openfoam.com) with all tutorials and source files</p><p>sedFoam version : the latest of the develop branch</p><p>user : sudofoam (with sudo)</p><p>Installed packages : swak4foam, python3-numpy, python3-matplotlib, fluidfoam, vim...</p><p>Official link : <a href="https://hub.docker.com/r/cbonamy/sedfoam_2206_ubuntu">https://hub.docker.com/r/cbonamy/sedfoam_<wbr />2206_<wbr />ubuntu</a></p><p>Dockerfile : <a href="https://github.com/SedFoam/sedfoam/blob/master/docker/Dockerfile">https:/<wbr />/<wbr />github.com/<wbr />SedFoam/<wbr />sedfoam/<wbr />blob/<wbr />master/<wbr />docker/<wbr />Dockerfile</a></p><p>Extended docker (supporting notebook) : <a href="https://hub.docker.com/r/cbonamy/sedfoam_2206_notebook">https://hub.docker.com/r/cbonamy/sedfoam_<wbr />2206_<wbr />notebook</a></p><p>Please note that Paraview is not included in the sedFoam docker. The users are encouraged to install and use Paraview on the host machine.</p></section><section id="howtouse"><h2><a href="#howtouse">How to use/launch sedFoam docker ?</a></h2><section id="launch"><h3><a href="#launch">launch/initiate docker:</a></h3><ul><li><a href="howtodocker.html#notebook" class="m-doc">In jupyter notebook using your web browser (macOS, linux, windows):</a></li><li><a href="howtodocker.html#macOS" class="m-doc">On macOS with GUI (graphical interface without paraview):</a></li><li><a href="howtodocker.html#windows" class="m-doc">On Windows with GUI (graphical interface without paraview):</a></li><li><a href="howtodocker.html#linux" class="m-doc">On linux with GUI (graphical interface without paraview):</a></li></ul><section id="notebook"><h4><a href="#notebook">In jupyter notebook using your web browser (macOS, linux, windows):</a></h4><p>On host :</p><ul><li><p>initiate docker :</p><pre> docker run -p 8888:8888 --name &quot;sedfoam_2206_notebook&quot; -v=&quot;/Users/toto&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2206_notebook&quot;
<p>Here is a How To about using the sedFoam docker.</p><p>The prerequisites is to install Docker : <a href="https://docs.docker.com/engine/install/">https:/<wbr />/<wbr />docs.docker.com/<wbr />engine/<wbr />install/<wbr /></a></p><p>This page is organised in two sections:</p><ul><li><a href="howtodocker.html#configuration" class="m-doc">Configuration of the sedFoam docker</a></li><li><a href="howtodocker.html#howtouse" class="m-doc">How to use/launch sedFoam docker ?</a></li></ul><section id="configuration"><h2><a href="#configuration">Configuration of the sedFoam docker</a></h2><p>Operating System : Ubuntu focal</p><p>Openfoam version : 2212 (openfoam.com) with all tutorials and source files</p><p>sedFoam version : the latest of the develop branch</p><p>user : sudofoam (with sudo)</p><p>Installed packages : swak4foam, python3-numpy, python3-matplotlib, fluidfoam, vim...</p><p>Official link : <a href="https://hub.docker.com/r/cbonamy/sedfoam_2212_ubuntu">https://hub.docker.com/r/cbonamy/sedfoam_<wbr />2212_<wbr />ubuntu</a></p><p>Dockerfile : <a href="https://github.com/SedFoam/sedfoam/blob/develop/docker/Dockerfile">https:/<wbr />/<wbr />github.com/<wbr />SedFoam/<wbr />sedfoam/<wbr />blob/<wbr />develop/<wbr />docker/<wbr />Dockerfile</a></p><p>Extended docker (supporting notebook) : <a href="https://hub.docker.com/r/cbonamy/sedfoam_2212_notebook">https://hub.docker.com/r/cbonamy/sedfoam_<wbr />2212_<wbr />notebook</a></p><p>Please note that Paraview is not included in the sedFoam docker. The users are encouraged to install and use Paraview on the host machine.</p></section><section id="howtouse"><h2><a href="#howtouse">How to use/launch sedFoam docker ?</a></h2><section id="launch"><h3><a href="#launch">launch/initiate docker:</a></h3><ul><li><a href="howtodocker.html#notebook" class="m-doc">In jupyter notebook using your web browser (macOS, linux, windows):</a></li><li><a href="howtodocker.html#macOS" class="m-doc">On macOS with GUI (graphical interface without paraview):</a></li><li><a href="howtodocker.html#windows" class="m-doc">On Windows with GUI (graphical interface without paraview):</a></li><li><a href="howtodocker.html#linux" class="m-doc">On linux with GUI (graphical interface without paraview):</a></li></ul><section id="notebook"><h4><a href="#notebook">In jupyter notebook using your web browser (macOS, linux, windows):</a></h4><p>On host :</p><ul><li><p>initiate docker :</p><pre> docker run -p 8888:8888 --name &quot;sedfoam_2212_notebook&quot; -v=&quot;/Users/toto&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2212_notebook&quot;
</pre></li><li>use your web browser :<ul><li>The previous command will give you a url like <a href="http://127.0.0.1:8888/?token=ae5f299fc77312f079793a9ca818d5973ed4df5a5a85b9fa">http:/<wbr />/<wbr />127.0.0.1:8888/<wbr />?token=ae5f299fc77312f079793a9ca818d5973ed4df5a5a85b9fa</a></li><li>Just copy and paste the link into your web browser</li></ul></li></ul><p>The -v=&quot;/Users/toto&quot;:/home/sudofoam/workingDir option is not mmandatory. It is used to mmount a shared space between host and jupyter notebook. If you use this option, please adapt the directories to your configuration. In this example, &quot;/Users/toto&quot; will be mounted on the vm in /home/sudofoam/workingDir.</p></section><section id="macOS"><h4><a href="#macOS">On macOS with GUI (graphical interface without paraview):</a></h4><p>On host :</p><ul><li>configure xquartz<ul><li>install xquartz to allow network connection</li><li>in Xquartz : Go to Preferences &gt; Security</li><li>and Check &quot;allow connections from network clients&quot;</li><li><p>in a terminal :</p><pre> IP=$(ifconfig en0 | grep inet | awk &#x27;$1==&quot;inet&quot; {print $2}&#x27;)
xhost + $IP
</pre></li></ul></li><li><p>initiate docker :</p><pre> docker run -it --net=host -e DISPLAY=$IP:0 -v /tmp/.X11-unix:/tmp/.X11-unix --name &quot;sedfoam_2206&quot; --workdir=&quot;/home/sudofoam&quot; -v=&quot;/Users/toto&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2206_ubuntu&quot; /bin/bash
</pre></li></ul></li><li><p>initiate docker :</p><pre> docker run -it --net=host -e DISPLAY=$IP:0 -v /tmp/.X11-unix:/tmp/.X11-unix --name &quot;sedfoam_2212&quot; --workdir=&quot;/home/sudofoam&quot; -v=&quot;/Users/toto&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2212_ubuntu&quot; /bin/bash
</pre><p>Please adapt the directories to your configuration. In this example, &quot;/Users/toto&quot; will be mounted on the vm in /home/sudofoam/workingDir. If you change IP, for example when returning from work to home, change the Display variable (in the Docker) accordingly.</p></li></ul></section><section id="windows"><h4><a href="#windows">On Windows with GUI (graphical interface without paraview):</a></h4><ul><li>configure Docker Engine for windows (with all system requirements : WSL2, step 1-5 from <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">https:/<wbr />/<wbr />docs.microsoft.com/<wbr />en-us/<wbr />windows/<wbr />wsl/<wbr />install-win10</a>)</li><li>configure vcxsrv : <a href="https://sourceforge.net/projects/vcxsrv/">https:/<wbr />/<wbr />sourceforge.net/<wbr />projects/<wbr />vcxsrv/<wbr /></a> (disable access control in extra settings)</li><li><p>Get your IP and set DISPLAY variable :</p><pre> set-variable -name DISPLAY -value YOUR-IP:0.0
</pre></li><li><p>initiate docker :</p><pre> docker run -it --net=host --env DISPLAY=$DISPLAY --name &quot;sedfoam_2206&quot; --workdir=&quot;/home/sudofoam&quot; -v=&quot;c:/mydataspace&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2206_ubuntu&quot; /bin/bash
</pre><p>Please adapt the directories to your configuration. In this example, &quot;c:/mydataspace&quot; will be mounted on the vm in /home/sudofoam/workingDir. If you change IP, for example when returning from work to home, change the Display variable (in the Docker) accordingly.</p></li></ul></section><section id="linux"><h4><a href="#linux">On linux with GUI (graphical interface without paraview):</a></h4><pre> docker run -it --net=host --env DISPLAY=$DISPLAY --volume $XAUTH:/root/.Xauthority --name &quot;sedfoam_2206&quot; --workdir=&quot;/home/sudofoam&quot; -v=&quot;/home/users/toto&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2206_ubuntu&quot; /bin/bash
</pre><p>Please adapt the directories to your configuration. In this example, &quot;/home/users/toto&quot; will be mounted on the vm in /home/sudofoam/workingDir. If you change IP, for example when returning from work to home, change the Display variable (in the Docker) accordingly.</p></section></section><section id="start"><h3><a href="#start">Start a container (if existing and not running) :</a></h3><pre> docker container start sedfoam_2206
</pre></section><section id="attach"><h3><a href="#attach">Attach to a running container (if existing and running):</a></h3><pre> docker container attach sedfoam_2206
</pre></li><li><p>initiate docker :</p><pre> docker run -it --net=host --env DISPLAY=$DISPLAY --name &quot;sedfoam_2212&quot; --workdir=&quot;/home/sudofoam&quot; -v=&quot;c:/mydataspace&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2212_ubuntu&quot; /bin/bash
</pre><p>Please adapt the directories to your configuration. In this example, &quot;c:/mydataspace&quot; will be mounted on the vm in /home/sudofoam/workingDir. If you change IP, for example when returning from work to home, change the Display variable (in the Docker) accordingly.</p></li></ul></section><section id="linux"><h4><a href="#linux">On linux with GUI (graphical interface without paraview):</a></h4><pre> docker run -it --net=host --env DISPLAY=$DISPLAY --volume $XAUTH:/root/.Xauthority --name &quot;sedfoam_2212&quot; --workdir=&quot;/home/sudofoam&quot; -v=&quot;/home/users/toto&quot;:/home/sudofoam/workingDir &quot;cbonamy/sedfoam_2212_ubuntu&quot; /bin/bash
</pre><p>Please adapt the directories to your configuration. In this example, &quot;/home/users/toto&quot; will be mounted on the vm in /home/sudofoam/workingDir. If you change IP, for example when returning from work to home, change the Display variable (in the Docker) accordingly.</p></section></section><section id="start"><h3><a href="#start">Start a container (if existing and not running) :</a></h3><pre> docker container start sedfoam_2212
</pre></section><section id="attach"><h3><a href="#attach">Attach to a running container (if existing and running):</a></h3><pre> docker container attach sedfoam_2212
</pre><p>Now hack and enjoy! The sedFoam files will be in /home/sudofoam and the solver is already compiled. Note that the bashrc file from openfoam is here : /openfoam/bash.rc</p></section></section>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion howtodocker_8doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h1>
howtodocker.doc <span class="m-thin">file</span>
</h1>
<p>howtodocker (doc)</p>
<aside class="m-note m-default"><h4>Author</h4><p>Cyrille Bonamy</p></aside><aside class="m-note m-default"><h4>Date</h4><p>June 15, 2021</p></aside>
<aside class="m-note m-default"><h4>Author</h4><p>Cyrille Bonamy</p></aside><aside class="m-note m-default"><h4>Date</h4><p>May 11, 2023</p></aside>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion install.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3>Contents</h3>
<li><a href="#use_docker">Don&#x27;t install sedFoam and use the latest sedFoam docker</a></li>
</ul>
</nav>
<section id="install_src_unix"><h2><a href="#install_src_unix">Compiling from source with supported OpenFOAM (last ESI version)</a></h2><p>You need OpenFOAM-v2106 to build the executable.</p><ul><li>First go to the <a href="https://www.openfoam.com/download">download</a> page of the software</li><li><a href="https://www.openfoam.com/download/installation.php">Install OpenFOAM</a>.</li></ul><p>To take full advantage of SedFoam the following additional tools should be installed.</p><ul><li><a href="https://openfoamwiki.net/index.php/Contrib/swak4Foam">swak4Foam</a> extension combines many fonctionalities and is needed for the tutorials</li><li>the python package <a href="https://github.com/fluiddyn/fluidfoam">fluidfoam</a> is needed for postprocessing of the tutorials.</li></ul><p>Compilation is now done by performing the following steps:</p><ol><li><p>Download the official SedFoam package:</p><pre>git clone --recurse-submodules http://github.com/sedfoam/sedfoam
<section id="install_src_unix"><h2><a href="#install_src_unix">Compiling from source with supported OpenFOAM (last ESI version)</a></h2><p>You need OpenFOAM-v2212 to build the executable. SedFoam versions released after SedFoam-3.3 will be named accordingly to OpenFOAM ESI versions. Currently the latest version is SedFoam-2212.</p><ul><li>First go to the <a href="https://www.openfoam.com/download">download</a> page of the software</li><li><a href="https://www.openfoam.com/download/installation.php">Install OpenFOAM</a>.</li></ul><p>To take full advantage of SedFoam the following additional tools should be installed.</p><ul><li><a href="https://openfoamwiki.net/index.php/Contrib/swak4Foam">swak4Foam</a> extension combines many fonctionalities and is needed for the tutorials</li><li>the python package <a href="https://github.com/fluiddyn/fluidfoam">fluidfoam</a> is needed for postprocessing of the tutorials.</li></ul><p>Compilation is now done by performing the following steps:</p><ol><li><p>Download the official SedFoam package:</p><pre>git clone --recurse-submodules http://github.com/sedfoam/sedfoam
</pre></li><li><p>Compile the program by running Allwmake:</p><pre>cd sedfoam
source $FOAM_ETC/bashrc # load the openfoam environment
./Allwmake
Expand Down
27 changes: 19 additions & 8 deletions m-dark+documentation.compiled.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
This file is part of m.css.
Copyright © 2017, 2018, 2019, 2020, 2021, 2022
Copyright © 2017, 2018, 2019, 2020, 2021, 2022, 2023
Vladimír Vondruš <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a
Expand Down Expand Up @@ -766,19 +766,22 @@ table.m-table td.m-dim pre, table.m-table td.m-dim code,
table.m-table th.m-dim pre, table.m-table th.m-dim code {
background-color: rgba(34, 39, 46, 0.5);
}
img.m-image, svg.m-image {
img.m-image, svg.m-image, video.m-image {
display: block;
margin-left: auto;
margin-right: auto;
}
div.m-image {
text-align: center;
}
img.m-image, svg.m-image, div.m-image img, div.m-image svg {
img.m-image, svg.m-image, video.m-image,
div.m-image img, div.m-image svg, div.m-image video {
max-width: 100%;
border-radius: 0.2rem;
}
div.m-image.m-fullwidth img, div.m-image.m-fullwidth svg {
div.m-image.m-fullwidth img,
div.m-image.m-fullwidth svg,
div.m-image.m-fullwidth video {
width: 100%;
}
img.m-image.m-badge, div.m-image.m-badge img {
Expand Down Expand Up @@ -820,7 +823,9 @@ figure.m-figure > *:first-child {
figure.m-figure > *:last-child {
margin-bottom: 1rem !important;
}
figure.m-figure img, figure.m-figure svg {
figure.m-figure img,
figure.m-figure svg,
figure.m-figure video {
position: relative;
margin-left: 0;
margin-right: 0;
Expand All @@ -829,11 +834,15 @@ figure.m-figure img, figure.m-figure svg {
border-top-right-radius: 0.2rem;
max-width: 100%;
}
figure.m-figure.m-flat img, figure.m-figure.m-flat svg {
figure.m-figure.m-flat img,
figure.m-figure.m-flat svg,
figure.m-figure.m-flat video {
border-bottom-left-radius: 0.2rem;
border-bottom-right-radius: 0.2rem;
}
figure.m-figure a img, figure.m-figure a svg {
figure.m-figure a img,
figure.m-figure a svg,
figure.m-figure a video {
margin-left: -1rem;
margin-right: -1rem;
}
Expand All @@ -843,7 +852,9 @@ figure.m-figure.m-fullwidth, figure.m-figure.m-fullwidth > * {
figure.m-figure.m-fullwidth > *:first-child {
display: inline;
}
figure.m-figure.m-fullwidth img, figure.m-figure.m-fullwidth svg {
figure.m-figure.m-fullwidth img,
figure.m-figure.m-fullwidth svg,
figure.m-figure.m-fullwidth video {
width: 100%;
}
figure.m-figure.m-fullwidth::after {
Expand Down
2 changes: 1 addition & 1 deletion search-v2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of m.css.
Copyright © 2017, 2018, 2019, 2020, 2021, 2022
Copyright © 2017, 2018, 2019, 2020, 2021, 2022, 2023
Vladimír Vondruš <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion searchdata-v2.js

Large diffs are not rendered by default.

Loading

0 comments on commit 22634d2

Please sign in to comment.