Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
9eb9fa35
Commit
9eb9fa35
authored
Jan 25, 2018
by
Timo Koch
Browse files
[assembly][analytic] Get source derivative per default from problem
parent
9b307303
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/common/fvproblem.hh
View file @
9eb9fa35
...
...
@@ -62,6 +62,7 @@ class FVProblem
using
PointSourceHelper
=
typename
GET_PROP_TYPE
(
TypeTag
,
PointSourceHelper
);
using
SolutionVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
SolutionVector
);
using
ElementSolutionVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementSolutionVector
);
using
VolumeVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
VolumeVariables
);
using
ElementVolumeVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementVolumeVariables
);
enum
{
...
...
@@ -378,6 +379,17 @@ public:
void
pointSourceAtPos
(
PointSource
&
pointSource
,
const
GlobalPosition
&
globalPos
)
const
{}
/*!
* \brief Add source term derivative to the Jacobian
* \note Only needed in case of analytic differentiation and solution dependent sources
*/
template
<
class
MatrixBlock
>
void
addSourceDerivatives
(
MatrixBlock
&
block
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
VolumeVariables
&
volVars
,
const
SubControlVolume
&
scv
)
const
{}
/*!
* \brief Adds contribution of point sources for a specific sub control volume
* to the values.
...
...
dumux/porousmediumflow/1p/incompressiblelocalresidual.hh
View file @
9eb9fa35
...
...
@@ -74,7 +74,10 @@ public:
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
VolumeVariables
&
curVolVars
,
const
SubControlVolume
&
scv
)
const
{}
const
SubControlVolume
&
scv
)
const
{
problem
.
addSourceDerivatives
(
partialDerivatives
,
element
,
fvGeometry
,
curVolVars
,
scv
);
}
//! flux derivatives for the cell-centered tpfa scheme
template
<
class
PartialDerivativeMatrices
,
class
T
=
TypeTag
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment