Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion applications/solvers/df0DFoam/Make/options
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

EXE_INC = -std=c++14 \
$(PFLAGS) $(PINC) \
$(if $(LIBTORCH_ROOT),-DUSE_LIBTORCH,) \
$(if $(PYTHON_INC_DIR),-DUSE_PYTORCH,) \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
Expand All @@ -18,7 +20,9 @@ EXE_INC = -std=c++14 \
$(if $(LIBTORCH_ROOT),-I$(LIBTORCH_ROOT)/include/torch/csrc/api/include,) \
$(if $(BOOST_ARCH_PATH),-I$(BOOST_ARCH_PATH),) \
$(if $(BOOST_ARCH_PATH),-DBOOST_ARCH_PATH_FOUNDD,) \
$(PYTHON_INC_DIR)
$(PYTHON_INC_DIR)



EXE_LIBS = \
-lcompressibleTransportModels \
Expand Down
4 changes: 2 additions & 2 deletions applications/solvers/df0DFoam/df0DFoam.C
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Description
#include "CanteraMixture.H"
#include "hePsiThermo.H"

#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
#include <pybind11/embed.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h> //used to convert
Expand All @@ -50,7 +50,7 @@ Description

int main(int argc, char *argv[])
{
#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
pybind11::scoped_interpreter guard{};//start python interpreter
#endif

Expand Down
2 changes: 2 additions & 0 deletions applications/solvers/dfHighSpeedFoam/Make/options
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

EXE_INC = -std=c++14 \
$(PFLAGS) $(PINC) \
$(if $(LIBTORCH_ROOT),-DUSE_LIBTORCH,) \
$(if $(PYTHON_INC_DIR),-DUSE_PYTORCH,) \
-I$(FOAM_APP)/solvers/compressible/rhoCentralFoam/BCs/lnInclude \
-I$(LIB_SRC)/finiteVolume/cfdTools \
-I$(LIB_SRC)/finiteVolume/lnInclude \
Expand Down
4 changes: 2 additions & 2 deletions applications/solvers/dfHighSpeedFoam/dfHighSpeedFoam.C
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Description
#include "CanteraMixture.H"
#include "hePsiThermo.H"

#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
#include <pybind11/embed.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h> //used to convert
Expand All @@ -55,7 +55,7 @@ Description

int main(int argc, char *argv[])
{
#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
pybind11::scoped_interpreter guard{};//start python interpreter
#endif
#define NO_CONTROL
Expand Down
2 changes: 2 additions & 0 deletions applications/solvers/dfLowMachFoam/Make/options
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

EXE_INC = -std=c++14 \
$(PFLAGS) $(PINC) \
$(if $(LIBTORCH_ROOT),-DUSE_LIBTORCH,) \
$(if $(PYTHON_INC_DIR),-DUSE_PYTORCH,) \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
Expand Down
4 changes: 2 additions & 2 deletions applications/solvers/dfLowMachFoam/dfLowMachFoam.C
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Description
#include "CanteraMixture.H"
#include "hePsiThermo.H"

#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
#include <pybind11/embed.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h> //used to convert
Expand All @@ -59,7 +59,7 @@ Description

int main(int argc, char *argv[])
{
#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
pybind11::scoped_interpreter guard{};//start python interpreter
#endif
#include "postProcess.H"
Expand Down
2 changes: 2 additions & 0 deletions applications/solvers/dfSprayFoam/Make/options
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ EXE_INC = -std=c++14 \
-I$(CANTERA_ROOT)/include \
$(if $(LIBTORCH_ROOT),-I$(LIBTORCH_ROOT)/include,) \
$(if $(LIBTORCH_ROOT),-I$(LIBTORCH_ROOT)/include/torch/csrc/api/include,) \
$(if $(LIBTORCH_ROOT),-DUSE_LIBTORCH,) \
$(if $(PYTHON_INC_DIR),-DUSE_PYTORCH,) \
$(PYTHON_INC_DIR)

EXE_LIBS = \
Expand Down
4 changes: 2 additions & 2 deletions applications/solvers/dfSprayFoam/dfSprayFoam.C
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Description
#include "hePsiThermo.H"
#include "turbulentFluidThermoModel.H"

#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
#include <pybind11/embed.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h> //used to convert
Expand All @@ -57,7 +57,7 @@ Description

int main(int argc, char *argv[])
{
#ifdef USE_LIBTORCH
#ifdef USE_PYTORCH
pybind11::scoped_interpreter guard{};//start python interpreter
#endif
#include "postProcess.H"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/quickstart/cvode.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CVODE Solver
CVODE Intergrator
===================

Follow the steps below to run an example of CVODE. Examples are stored in the directory:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/quickstart/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Quick Examples for Each Integrator
========================================
Examples for Each Chemistry Integrator
=========================================

DeepFlame provides users with three avaiblable integrators: CVODE, LibTorch, and PyTorch. CVODE integraotr does not include any machine learning capability, while the other two use different APIs to make computation with neural neworks on different platforms possible.
To get a quick start with all three integrators, there are several examples stored in ``/deepflame-dev/examples/`` that can be run. More details regarding each integrator can be found in the following sections.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/quickstart/libtorch.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Libtorch Solver
Libtorch Integrator
===================

To get a quick start with DeepFlame, there are several examples for each solver stored in the following directory that can be run.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/quickstart/pytorch.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PyTorch Solver
PyTorch Integrator
===================

To get a quick start with DeepFlame, there are several examples for each solver stored in the following directory that can be run.
Expand Down