Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
9624cf0d
Commit
9624cf0d
authored
8 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[mixedDimension] Work on assemble_() for box
* still incomplete
parent
f4f7be78
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/mixeddimension/subproblemlocaljacobian.hh
+58
-1
58 additions, 1 deletion
dumux/mixeddimension/subproblemlocaljacobian.hh
with
58 additions
and
1 deletion
dumux/mixeddimension/subproblemlocaljacobian.hh
+
58
−
1
View file @
9624cf0d
...
@@ -234,7 +234,64 @@ protected:
...
@@ -234,7 +234,64 @@ protected:
JacobianMatrix
&
matrix
,
JacobianMatrix
&
matrix
,
JacobianMatrixCoupling
&
couplingMatrix
,
JacobianMatrixCoupling
&
couplingMatrix
,
SolutionVector
&
residual
)
SolutionVector
&
residual
)
{}
{
constexpr
auto
numEq
=
GET_PROP_VALUE
(
T
,
NumEq
);
// the element solution
auto
curElemSol
=
this
->
problem_
().
model
().
elementSolution
(
element
,
this
->
problem_
().
model
().
curSol
());
// calculate the actual element residual
this
->
localResidual
().
eval
(
element
,
fvGeometry
,
prevElemVolVars
,
curElemVolVars
,
elemBcTypes
,
elemFluxVarsCache
);
this
->
residual_
=
this
->
localResidual
().
residual
();
// residual[this->globalI_] = this->localResidual().residual(0);
this
->
problem_
().
model
().
updatePVWeights
(
fvGeometry
);
// calculation of the derivatives
for
(
auto
&&
scv
:
scvs
(
fvGeometry
))
{
// dof index and corresponding actual pri vars
const
auto
dofIdx
=
scv
.
dofIndex
();
auto
&
curVolVars
=
this
->
getCurVolVars
(
curElemVolVars
,
scv
);
VolumeVariables
origVolVars
(
curVolVars
);
// add precalculated residual for this scv into the global container
residual
[
dofIdx
]
+=
this
->
residual_
[
scv
.
index
()];
// calculate derivatives w.r.t to the privars at the dof at hand
for
(
int
pvIdx
=
0
;
pvIdx
<
numEq
;
pvIdx
++
)
{
this
->
evalPartialDerivative_
(
matrix
,
element
,
fvGeometry
,
prevElemVolVars
,
curElemVolVars
,
curElemSol
,
scv
,
elemBcTypes
,
elemFluxVarsCache
,
pvIdx
);
// restore the original state of the scv's volume variables
curVolVars
=
origVolVars
;
// restore the original element solution
curElemSol
[
scv
.
index
()][
pvIdx
]
=
this
->
problem_
().
model
().
curSol
()[
scv
.
dofIndex
()][
pvIdx
];
}
// TODO: what if we have an extended source stencil????
//TODO: is otherElement in this method required? is otherResidual correct?
// evalPartialDerivativeCoupling_(element,
// fvGeometry,
// curElemVolVars,
// elemFluxVarsCache,
// elemBcTypes,
// couplingMatrix,
// residual);
}
}
/*!
/*!
* \brief Returns a reference to the problem.
* \brief Returns a reference to the problem.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment