Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
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
Container registry
Model registry
Operate
Environments
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
Show more breadcrumbs
akbib
dune-fufem
Commits
88ace340
Commit
88ace340
authored
11 years ago
by
Elias Pipping
Committed by
pipping
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow StrainProductAssembler to have variable coefficients
[[Imported from SVN: r12872]]
parent
42b68c59
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem/assemblers/localassemblers/strainproductassembler.hh
+14
-2
14 additions, 2 deletions
...ufem/assemblers/localassemblers/strainproductassembler.hh
with
14 additions
and
2 deletions
dune/fufem/assemblers/localassemblers/strainproductassembler.hh
+
14
−
2
View file @
88ace340
...
@@ -18,6 +18,14 @@ class StrainProductAssembler
...
@@ -18,6 +18,14 @@ class StrainProductAssembler
static
const
int
dim
=
GridType
::
dimension
;
static
const
int
dim
=
GridType
::
dimension
;
typedef
typename
GridType
::
ctype
ctype
;
typedef
typename
GridType
::
ctype
ctype
;
StrainProductAssembler
()
:
coefficientQuadKey_
(
dim
,
0
)
{}
StrainProductAssembler
(
QuadratureRuleKey
const
&
coefficientQuadKey
)
:
coefficientQuadKey_
(
coefficientQuadKey
)
{}
public
:
public
:
typedef
typename
Dune
::
FieldMatrix
<
ctype
,
GridType
::
dimension
,
GridType
::
dimension
>
T
;
typedef
typename
Dune
::
FieldMatrix
<
ctype
,
GridType
::
dimension
,
GridType
::
dimension
>
T
;
...
@@ -43,7 +51,8 @@ class StrainProductAssembler
...
@@ -43,7 +51,8 @@ class StrainProductAssembler
localMatrix
.
setSize
(
rows
,
cols
);
localMatrix
.
setSize
(
rows
,
cols
);
localMatrix
=
0.0
;
localMatrix
=
0.0
;
QuadratureRuleKey
quadKey
=
QuadratureRuleKey
(
tFE
).
derivative
()
QuadratureRuleKey
quadKey
=
coefficientQuadKey_
.
product
(
QuadratureRuleKey
(
tFE
).
derivative
())
.
product
(
QuadratureRuleKey
(
aFE
).
derivative
());
.
product
(
QuadratureRuleKey
(
aFE
).
derivative
());
const
Dune
::
template
QuadratureRule
<
ctype
,
dim
>
&
quad
const
Dune
::
template
QuadratureRule
<
ctype
,
dim
>
&
quad
=
QuadratureRuleCache
<
ctype
,
dim
>::
rule
(
quadKey
);
=
QuadratureRuleCache
<
ctype
,
dim
>::
rule
(
quadKey
);
...
@@ -142,6 +151,9 @@ class StrainProductAssembler
...
@@ -142,6 +151,9 @@ class StrainProductAssembler
const
Dune
::
FieldVector
<
ctype
,
dim
>&
position
)
const
{
const
Dune
::
FieldVector
<
ctype
,
dim
>&
position
)
const
{
return
static_cast
<
const
A
*>
(
this
)
->
strainToStress
(
strain
,
element
,
position
);
return
static_cast
<
const
A
*>
(
this
)
->
strainToStress
(
strain
,
element
,
position
);
}
}
private
:
const
QuadratureRuleKey
coefficientQuadKey_
;
};
};
...
...
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