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
cefc765c
Commit
cefc765c
authored
6 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Adjust quadrature rule
parent
bd9b581f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/elasticity/materials/neohookeanmaterial.hh
+4
-5
4 additions, 5 deletions
dune/elasticity/materials/neohookeanmaterial.hh
with
4 additions
and
5 deletions
dune/elasticity/materials/neohookeanmaterial.hh
+
4
−
5
View file @
cefc765c
...
@@ -92,15 +92,14 @@ public:
...
@@ -92,15 +92,14 @@ public:
for
(
const
auto
&
e
:
elements
(
leafView
))
{
for
(
const
auto
&
e
:
elements
(
leafView
))
{
//
get
quadrature rule
//
TODO Get proper
quadrature rule
QuadratureRuleKey
feKey
(
this
->
basis_
->
getLocalFiniteElement
(
e
));
//
QuadratureRuleKey feKey(this->basis_->getLocalFiniteElement(e));
// the determinant involves derivative^dim
// the determinant involves derivative^dim
// further use 2nd order to approximate the logarithm
// further use 2nd order to approximate the logarithm
//feKey.setOrder(std::pow(feKey.derivative().order(),2*dim));
//feKey.setOrder(std::pow(feKey.derivative().order(),2*dim));
const
int
order
=
(
e
.
type
().
isSimplex
())
?
5
:
4
*
dim
;
const
int
order
=
(
e
.
type
().
isSimplex
())
?
6
:
4
*
dim
;
const
auto
&
quad
=
QuadratureRuleCache
<
typename
GridType
::
ctype
,
dim
>::
rule
(
e
.
type
(),
order
,
0
);
const
auto
&
quad
=
QuadratureRuleCache
<
ctype
,
dim
>::
rule
(
e
.
type
(),
order
,
0
);
//const auto& quad = QuadratureRuleCache<ctype, dim>::rule(feKey);
const
auto
&
geometry
=
e
.
geometry
();
const
auto
&
geometry
=
e
.
geometry
();
...
...
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