A C++ wrapper for a Python problem. More...
#include <dumux/python/common/fvproblem.hh>
A C++ wrapper for a Python problem.
Public Types | |
using | GridGeometry = GridGeometry_ |
using | SpatialParams = SpatialParams_ |
using | Scalar = typename GridGeometry::GridView::ctype |
using | NumEqVector = Dune::FieldVector< Scalar, PrimaryVariables::dimension > |
using | Element = typename GridGeometry::GridView::template Codim< 0 >::Entity |
using | FVElementGeometry = typename GridGeometry::LocalView |
using | SubControlVolume = typename GridGeometry::SubControlVolume |
using | SubControlVolumeFace = typename GridGeometry::SubControlVolumeFace |
using | GlobalPosition = typename Element::Geometry::GlobalCoordinate |
using | BoundaryTypes = Dumux::BoundaryTypes< PrimaryVariables::dimension > |
Public Member Functions | |
FVProblem (std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< const SpatialParams > spatialParams, pybind11::object pyProblem) | |
FVProblem (std::shared_ptr< const GridGeometry > gridGeometry, pybind11::object pyProblem) | |
const std::string & | name () const |
const std::string & | paramGroup () const |
BoundaryTypes | boundaryTypes (const Element &element, const SubControlVolume &scv) const |
BoundaryTypes | boundaryTypes (const Element &element, const SubControlVolumeFace &scvf) const |
PrimaryVariables | dirichlet (const Element &element, const SubControlVolume &scv) const |
PrimaryVariables | dirichlet (const Element &element, const SubControlVolumeFace &scvf) const |
template<class ElementVolumeVariables , class ElementFluxVariablesCache > | |
NumEqVector | neumann (const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const |
template<class ElementVolumeVariables > | |
NumEqVector | source (const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolume &scv) const |
NumEqVector | sourceAtPos (const GlobalPosition &globalPos) const |
template<class ElementVolumeVariables > | |
NumEqVector | scvPointSources (const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolume &scv) const |
template<class Entity > | |
PrimaryVariables | initial (const Entity &entity) const |
template<class MatrixBlock , class VolumeVariables > | |
void | addSourceDerivatives (MatrixBlock &block, const Element &element, const FVElementGeometry &fvGeometry, const VolumeVariables &volVars, const SubControlVolume &scv) const |
Add source term derivative to the Jacobian. More... | |
const GridGeometry & | gridGeometry () const |
const SpatialParams & | spatialParams () const |
Return a reference to the underlying spatial parameters. More... | |
Static Public Member Functions | |
static constexpr bool | enableInternalDirichletConstraints () |
Static Public Attributes | |
static constexpr bool | isBox = GridGeometry::discMethod == DiscretizationMethods::box |
static constexpr std::size_t | numEq = static_cast<std::size_t>(PrimaryVariables::dimension) |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::BoundaryTypes = Dumux::BoundaryTypes<PrimaryVariables::dimension> |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::Element = typename GridGeometry::GridView::template Codim<0>::Entity |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::FVElementGeometry = typename GridGeometry::LocalView |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::GlobalPosition = typename Element::Geometry::GlobalCoordinate |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::GridGeometry = GridGeometry_ |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::NumEqVector = Dune::FieldVector<Scalar, PrimaryVariables::dimension> |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::Scalar = typename GridGeometry::GridView::ctype |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::SpatialParams = SpatialParams_ |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::SubControlVolume = typename GridGeometry::SubControlVolume |
using Dumux::Python::FVProblem< GridGeometry_, SpatialParams_, PrimaryVariables, enableInternalDirichletConstraints_ >::SubControlVolumeFace = typename GridGeometry::SubControlVolumeFace |
|
inline |
|
inline |
|
inline |
Add source term derivative to the Jacobian.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return a reference to the underlying spatial parameters.
|
staticconstexpr |
|
staticconstexpr |