Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-microstructure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Klaus Böhnlein
dune-microstructure
Commits
b8396cc4
Commit
b8396cc4
authored
10 months ago
by
Klaus Böhnlein
Browse files
Options
Downloads
Patches
Plain Diff
test different QuadRule
parent
4d327630
No related branches found
No related tags found
No related merge requests found
Pipeline
#14988
failed
10 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/microstructure/energies/discretekirchhoffbendingenergyprestrained.hh
+11
-2
11 additions, 2 deletions
...ure/energies/discretekirchhoffbendingenergyprestrained.hh
with
11 additions
and
2 deletions
dune/microstructure/energies/discretekirchhoffbendingenergyprestrained.hh
+
11
−
2
View file @
b8396cc4
...
@@ -592,19 +592,28 @@ namespace Dune::GFE
...
@@ -592,19 +592,28 @@ namespace Dune::GFE
*/
*/
RT
harmonicEnergy
=
0
;
RT
harmonicEnergy
=
0
;
// Gauss-Quadrature:
// Gauss-
Legendre-
Quadrature
(default)
:
const
auto
&
quadRule
=
QuadratureRules
<
double
,
gridDim
>::
rule
(
lagrangeLFE_
.
type
(),
quadOrder
);
const
auto
&
quadRule
=
QuadratureRules
<
double
,
gridDim
>::
rule
(
lagrangeLFE_
.
type
(),
quadOrder
);
//TEST Gauß-Jacobi-Quadrature formula:
// const auto &quadRule = QuadratureRules<double, gridDim>::rule(lagrangeLFE_.type(), quadOrder, QuadratureType::GaussJacobi_1_0);
// Trapezoidal-rule:
// Trapezoidal-rule:
// std::vector<Dune::QuadraturePoint<double,2>> quadRule = { {{0.0,0.0}, 1.0/6.0}, {{1.0,0.0}, 1.0/6.0}, {{0.0,1.0}, 1.0/6.0} };
// std::vector<Dune::QuadraturePoint<double,2>> quadRule = { {{0.0,0.0}, 1.0/6.0}, {{1.0,0.0}, 1.0/6.0}, {{0.0,1.0}, 1.0/6.0} };
// Trapezoidal-rule + evaluation on edge centers (only for testing purposes):
// Trapezoidal-rule + evaluation on edge centers (only for testing purposes):
// std::vector<Dune::QuadraturePoint<double,2>> quadRule = { {{0.0,0.0}, 1.0/6.0}, {{0.5,0.0}, 1.0/6.0}, {{1.0,0.0}, 1.0/6.0}, {{0.0,0.5}, 1.0/6.0}, {{0.5,0.5}, 1.0/6.0}, {{0.0,1.0}, 1.0/6.0} };
// std::vector<Dune::QuadraturePoint<double,2>> quadRule = { {{0.0,0.0}, 1.0/6.0}, {{0.5,0.0}, 1.0/6.0}, {{1.0,0.0}, 1.0/6.0}, {{0.0,0.5}, 1.0/6.0}, {{0.5,0.5}, 1.0/6.0}, {{0.0,1.0}, 1.0/6.0} };
// int count = 0;
// int count = 0;
// std::cout << "Number of quadrature points: " << quadRule.size() << std::endl;
std
::
cout
<<
"Number of quadrature points: "
<<
quadRule
.
size
()
<<
std
::
endl
;
for
(
auto
&&
quadPoint
:
quadRule
)
for
(
auto
&&
quadPoint
:
quadRule
)
{
{
const
auto
&
quadPos
=
quadPoint
.
position
();
const
auto
&
quadPos
=
quadPoint
.
position
();
const
auto
integrationElement
=
geometry
.
integrationElement
(
quadPos
);
const
auto
integrationElement
=
geometry
.
integrationElement
(
quadPos
);
std
::
cout
<<
"quadPos:"
<<
quadPos
<<
std
::
endl
;
// exit(0);
// exit(0);
...
...
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