-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an optional temperature field to the umat wrapper
- Loading branch information
Showing
3 changed files
with
281 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
...oon-python-builder/include/simcoon/python_wrappers/Libraries/Continuum_mechanics/umat.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#pragma once | ||
#include <pybind11/pybind11.h> | ||
#include <pybind11/numpy.h> | ||
namespace py=pybind11; | ||
using namespace std; | ||
|
||
namespace simpy { | ||
pybind11::tuple launch_umat(const std::string& umat_name_py, const pybind11::array_t<double> &etot_py, const pybind11::array_t<double> &Detot_py, const pybind11::array_t<double> &sigma_py, const pybind11::array_t<double> &DR_py, const pybind11::array_t<double> &props_py, const pybind11::array_t<double> &statev_py, const float Time, const float DTime, const pybind11::array_t<double> &Wm_py); | ||
py::tuple launch_umat(const std::string& umat_name_py, const py::array_t<double> &etot_py, const py::array_t<double> &Detot_py, const py::array_t<double> &sigma_py, const py::array_t<double> &DR_py, const py::array_t<double> &props_py, const py::array_t<double> &statev_py, const float Time, const float DTime, const py::array_t<double> &Wm_py, const std::optional<py::array_t<double>> &T_py); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters