Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-elasticity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ansgar Burchardt
dune-elasticity
Commits
888262c8
Commit
888262c8
authored
10 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Rename member from A/f to A_/f_ and make compile
parent
8ef2dcbc
Branches
Branches containing commit
Tags
0.2.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/elasticity/common/nonlinearelasticityproblem.cc
+8
-8
8 additions, 8 deletions
dune/elasticity/common/nonlinearelasticityproblem.cc
dune/elasticity/common/nonlinearelasticityproblem.hh
+2
-2
2 additions, 2 deletions
dune/elasticity/common/nonlinearelasticityproblem.hh
with
10 additions
and
10 deletions
dune/elasticity/common/nonlinearelasticityproblem.cc
+
8
−
8
View file @
888262c8
...
...
@@ -10,17 +10,17 @@ void NonlinearElasticityProblem<VectorType, MatrixType, Basis>::assembleQP(const
const
Basis
&
basis
=
material_
->
basis
();
GridFunctionPtr
displace
=
std
::
make_shared
<
BasisGridFunction
<
Basis
,
VectorType
>
>
(
basis
,
iterate
);
A
GridFunctionPtr
displace
=
std
::
make_shared
<
BasisGridFunction
<
Basis
,
VectorType
>
>
(
basis
,
iterate
);
// assemble quadratic term
OperatorAssembler
<
Basis
,
Basis
>
globalAssembler
(
basis
,
basis
);
globalAssembler
.
assemble
(
material_
->
secondDerivative
(
displace
),
A
);
globalAssembler
.
assemble
(
material_
->
secondDerivative
(
displace
),
A
_
);
// assemble linear term
FunctionalAssembler
<
Basis
>
funcAssembler
(
basis
);
funcAssembler
.
assemble
(
material_
->
firstDerivative
(
displace
),
f
);
f
-=
*
extForces_
;
f
*=
-
1
;
funcAssembler
.
assemble
(
material_
->
firstDerivative
(
displace
),
f
_
);
f
_
-=
*
extForces_
;
f
_
*=
-
1
;
}
template
<
class
VectorType
,
class
MatrixType
,
class
Basis
>
...
...
@@ -94,11 +94,11 @@ typename VectorType::field_type NonlinearElasticityProblem<VectorType,MatrixType
template
<
class
VectorType
,
class
MatrixType
,
class
Basis
>
typename
VectorType
::
field_type
NonlinearElasticityProblem
<
VectorType
,
MatrixType
,
Basis
>::
modelDecrease
(
const
VectorType
&
correction
)
const
{
// the model decrease is simply <f,corr> - 0.5 <corr, H corr>
// the model decrease is simply
-
<f,corr> - 0.5 <corr, H corr>
VectorType
tmp
(
correction
.
size
());
A
.
mv
(
correction
,
tmp
);
A
_
.
mv
(
correction
,
tmp
);
return
(
f
*
correction
)
-
0.5
*
(
correction
*
tmp
);
return
(
f
_
*
correction
)
-
0.5
*
(
correction
*
tmp
);
}
...
...
This diff is collapsed.
Click to expand it.
dune/elasticity/common/nonlinearelasticityproblem.hh
+
2
−
2
View file @
888262c8
...
...
@@ -44,9 +44,9 @@ public:
field_type
modelDecrease
(
const
VectorType
&
correction
)
const
;
//! The quadratic part
MatrixType
A
;
MatrixType
A
_
;
//! The linear functional
VectorType
f
;
VectorType
f
_
;
private
:
//! The involved materials
...
...
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