Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Yuhao Liu
ogs
Commits
2ff5a741
Commit
2ff5a741
authored
8 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[NL] added integral measure formula
parent
9897f106
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
NumLib/Fem/FiniteElement/TemplateIsoparametric.h
+25
-2
25 additions, 2 deletions
NumLib/Fem/FiniteElement/TemplateIsoparametric.h
with
25 additions
and
2 deletions
NumLib/Fem/FiniteElement/TemplateIsoparametric.h
+
25
−
2
View file @
2ff5a741
...
@@ -16,9 +16,10 @@
...
@@ -16,9 +16,10 @@
#include
<cassert>
#include
<cassert>
#include
<boost/math/constants/constants.hpp>
#include
"
..
/CoordinatesMapping/ShapeMatrices.h"
#include
"
NumLib/Fem
/CoordinatesMapping/ShapeMatrices.h"
#include
"
..
/CoordinatesMapping/NaturalCoordinatesMapping.h"
#include
"
NumLib/Fem
/CoordinatesMapping/NaturalCoordinatesMapping.h"
namespace
NumLib
namespace
NumLib
{
{
...
@@ -111,6 +112,18 @@ public:
...
@@ -111,6 +112,18 @@ public:
computeIntegralMeasure
(
is_axially_symmetric
,
shape
);
computeIntegralMeasure
(
is_axially_symmetric
,
shape
);
}
}
double
interpolateZerothCoordinate
(
typename
ShapeMatrices
::
ShapeType
const
&
N
)
const
{
auto
*
nodes
=
_ele
->
getNodes
();
typename
ShapeMatrices
::
ShapeType
rs
(
N
.
size
());
for
(
int
i
=
0
;
i
<
rs
.
size
();
++
i
)
{
rs
[
i
]
=
(
*
nodes
[
i
])[
0
];
}
auto
const
r
=
N
.
dot
(
rs
);
return
r
;
}
private
:
private
:
void
computeIntegralMeasure
(
bool
is_axially_symmetric
,
void
computeIntegralMeasure
(
bool
is_axially_symmetric
,
ShapeMatrices
&
shape
)
const
ShapeMatrices
&
shape
)
const
...
@@ -119,6 +132,16 @@ private:
...
@@ -119,6 +132,16 @@ private:
shape
.
integralMeasure
=
1.0
;
shape
.
integralMeasure
=
1.0
;
return
;
return
;
}
}
// Note: If an integration point is located at the rotation axis, r will
// be zero which might lead to problems with the assembled equation
// system.
// E.g., for triangle elements, if an integration point is
// located at edge of the unit triangle, it is possible that
// r becomes zero.
auto
const
r
=
interpolateZerothCoordinate
(
shape
.
N
);
shape
.
integralMeasure
=
boost
::
math
::
constants
::
two_pi
<
double
>
()
*
r
;
}
}
const
MeshElementType
*
_ele
;
const
MeshElementType
*
_ele
;
...
...
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