diff --git a/README.md b/README.md index 2c146eaf..f0d23338 100644 --- a/README.md +++ b/README.md @@ -637,7 +637,7 @@ The python bindings intentionally look **very** similar to the C++ code. Generally all examples can be adapted to python by replacing includes of paths with imports of modules such that -`#include "gridfire/engine/GraphEngine.h` becomes `import gridfire.engine.GraphEngine` +`#include "gridfire/engine/GraphEngine.h"` becomes `import gridfire.engine.GraphEngine` All GridFire C++ types have been bound and can be passed around as one would expect. diff --git a/docs/html/index.html b/docs/html/index.html index d128a47d..776f6334 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -529,54 +529,44 @@ Workflow Components and Effects

Python

The python bindings intentionally look very similar to the C++ code. Generally all examples can be adapted to python by replacing includes of paths with imports of modules such that

-

#include "gridfire/engine/GraphEngine.h</tt> becomes <tt>import gridfire.engine.GraphEngine</tt> - -All GridFire C++ types have been bound and can be passed around as one would expect. - -@subsubsection autotoc_md53 Common Workflow Examople -This example impliments the same logic as the above C++ example -@icode{python} -import gridfire - - -from fourdst.composition import Composition - -symbols = ["H-1", ...] -X = [0.7, ...] - -comp = Composition() -comp.registerSymbols(symbols) -comp.setMassFraction(X) -comp.finalize(true) -# Initialize GraphEngine with predefined composition -engine = gridfire.GraphEngine(comp) -netIn = gridfire.types.NetIn -netIn.composition = comp -netIn.tMax = 1e-3 -netIn.temperature = 1.5e7 -netIn.density = 1.6e2 -netIn.dt0 = 1e-12 - -# Perform one integration step -netOut = engine.evaluate(netIn) -print(netOut) -@endicode - - - -@section autotoc_md54 Related Projects - -GridFire integrates with and builds upon several key 4D-STAR libraries: - -- <a href="https://github.com/4D-STAR/fourdst" >fourdst</a>: hub module managing versioning - of <tt>libcomposition</tt>, <tt>libconfig</tt>, <tt>liblogging</tt>, and <tt>libconstants</tt> -- <a href="https://github.com/4D-STAR/libcomposition" >libcomposition</a> - (<a href="https://4d-star.github.io/libcomposition/" >docs</a>): Composition management - toolkit. -- <a href="https://github.com/4D-STAR/libconfig" >libconfig</a>: Configuration file parsing - utilities. -- <a href="https://github.com/4D-STAR/liblogging" >liblogging</a>: Flexible logging framework. -- <a href="https://github.com/4D-STAR/libconstants" >libconstants: Physical constants

+

#include "gridfire/engine/GraphEngine.h" becomes import gridfire.engine.GraphEngine

+

All GridFire C++ types have been bound and can be passed around as one would expect.

+

+Common Workflow Examople

+

This example impliments the same logic as the above C++ example

import gridfire
+
+
+
from fourdst.composition import Composition
+
+
symbols = ["H-1", ...]
+
X = [0.7, ...]
+
+
comp = Composition()
+
comp.registerSymbols(symbols)
+
comp.setMassFraction(X)
+
comp.finalize(true)
+
# Initialize GraphEngine with predefined composition
+
engine = gridfire.GraphEngine(comp)
+
netIn = gridfire.types.NetIn
+
netIn.composition = comp
+
netIn.tMax = 1e-3
+
netIn.temperature = 1.5e7
+
netIn.density = 1.6e2
+
netIn.dt0 = 1e-12
+
+
# Perform one integration step
+
netOut = engine.evaluate(netIn)
+
print(netOut)
+

+Related Projects

+

GridFire integrates with and builds upon several key 4D-STAR libraries:

+ diff --git a/docs/index.html b/docs/index.html index b3b094de..e4a4cabe 100644 --- a/docs/index.html +++ b/docs/index.html @@ -84,7 +84,7 @@ @@ -111,7 +111,7 @@ Home - Docs + About GitHub @@ -123,36 +123,75 @@

GridFire

-

A General Purpose Nuclear Network

-

A graph-first nuclear network supporting dynamic network topologies. GridFire is intended to be easy to use and very adaptable to a variety of physical situations.

+

C++ Nuclear Network Evolution Library

+

A C++ library designed to perform general nuclear network evolution as part of the 4D-STAR collaboration. GridFire focuses on modeling the most relevant burning stages for stellar evolution with a balanced approach to physical fidelity, computational efficiency, and extensibility.

-

Usage

-

Introduction

-

GridFire is written in C++ but we maintain a robust set of Python bindings. These call the underlying C++ code, meaning that they are nearly as performant as the raw C++. Here we provide a short demonstration of how to use GridFire in Python.

-

Core Concepts

-

GridFire separates the network into four main parts.

-
@@ -169,9 +208,9 @@ results = solver.evaluate(inputParams) diff --git a/docs/static/mainpage.md b/docs/static/mainpage.md index 9dd28db2..e0eb1716 100644 --- a/docs/static/mainpage.md +++ b/docs/static/mainpage.md @@ -633,7 +633,7 @@ The python bindings intentionally look **very** similar to the C++ code. Generally all examples can be adapted to python by replacing includes of paths with imports of modules such that -`#include "gridfire/engine/GraphEngine.h` becomes `import gridfire.engine.GraphEngine` +`#include "gridfire/engine/GraphEngine.h"` becomes `import gridfire.engine.GraphEngine` All GridFire C++ types have been bound and can be passed around as one would expect.