version 3.8
python/porousmediumflow/velocityoutput.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_PYTHON_POROUSMEDIUMFLOW_VELOCITYOUTPUT_HH
13#define DUMUX_PYTHON_POROUSMEDIUMFLOW_VELOCITYOUTPUT_HH
14
15#include <dune/python/pybind11/pybind11.h>
16#include <dune/python/common/typeregistry.hh>
18
19namespace Dumux::Python {
20
21// Python wrapper for the PorousMediumFlowVelocityOutput class
22template<class GridVariables, class FluxVariables, class... options>
23void registerPorousMediumFlowVelocityOutput(pybind11::handle scope,
25{
26 using pybind11::operator""_a;
27 using namespace Dune::Python;
29
30 cls.def(pybind11::init([](const GridVariables& gridVariables){
31 return std::make_shared<VelocityOutput>(gridVariables);
32 }));
33}
34
35} // end namespace Dumux::Python
36
37#endif
Velocity output policy for implicit (porous media) models.
Definition: porousmediumflow/velocityoutput.hh:33
Velocity output for implicit (porous media) models.
Definition: io/velocityoutput.hh:29
Definition: python/assembly/fvassembler.hh:18
void registerPorousMediumFlowVelocityOutput(pybind11::handle scope, pybind11::class_< Dumux::PorousMediumFlowVelocityOutput< GridVariables, FluxVariables >, options... > cls)
Definition: python/porousmediumflow/velocityoutput.hh:23
Velocity output for porous media models.