Skip to content

Commit

Permalink
installation and visualization instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tlroy committed May 1, 2024
1 parent b5c3c17 commit 9493626
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
Binary file removed demos/flow_reactor/flow_reactor.pdf
Binary file not shown.
Binary file added demos/flow_reactor/flow_reactor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demos/flow_reactor/flow_reactor.py.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Flow reactor for CO2 electrolysis
We consider a flowing bicarbonate elecrolyte with CO2 reduction on a flat plate
electrode.

.. image:: flow_reactor.pdf
.. image:: flow_reactor.png
:width: 400px
:align: center

Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ source/demos: copy_demos

copy_demos:
install -d source/demos
cp ../demos/*/*.rst ../demos/*/*.png ../demos/*/*.pdf ../demos/demo_references.bib source/demos
cp ../demos/*/*.rst ../demos/*/*.png ../demos/demo_references.bib source/demos
for file in source/demos/*.py.rst; do pylit $$file; done

html: Makefile copy_demos
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Copyright and License

Please see this `LICENSE file <https://github.com/LLNL/echemfem/blob/main/LICENSE>`_ for details.

Copyright (c) 2022-2023, Lawrence Livermore National Security, LLC.
Copyright (c) 2022-2024, Lawrence Livermore National Security, LLC.
Produced at the Lawrence Livermore National Laboratory.

LLNL-CODE-837342
11 changes: 11 additions & 0 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Installation
------------

First, please install the open-source finite element library `Firedrake <https://www.firedrakeproject.org/download.html>`_.
On a Mac with Homebrew installed or on an Ubuntu workstation with sudo access, it can be installed using the default configuration.
To get started quickly, a `Docker image <https://hub.docker.com/r/firedrakeproject/firedrake>`_ is also available.
Note that you may need to increase the default memory allocation for Docker in order to run some of the EchemFEM examples.

EchemFEM is hosted on `GitHub <https://github.com/LLNL/echemfem>`_, and should be cloned from there.

Expand All @@ -28,5 +31,13 @@ Alternatively, you can run some of the examples below.
Running Examples
----------------

To get started, a demo for a flow reactor is available :doc:`here <demos/index>`.
Several examples can be found in `echemfem/examples <https://github.com/LLNL/echemfem/tree/main/examples>`_.
Examples using the generalized modified Poisson-Nernst-Planck model (GMPNP) can be found in `FireCat <https://github.com/LLNL/firecat>`_, where it is coupled with a microkinetics model.

Visualization
-------------

The solution fields are stored for visualization with `Paraview <https://www.paraview.org>`_ in ``results/collection.pvd``.
Alternatively, 1D and 2D functions can be visualized using `matplotlib <https://matplotlib.org>`_.
More about `Firedrake visualization <https://www.firedrakeproject.org/visualisation.html>`_.

0 comments on commit 9493626

Please sign in to comment.