Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
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
MostafaMollaali
dynamic
Commits
6550018d
Commit
6550018d
authored
8 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[NL] added integral measure to shapematrices
parent
58f8f25c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NumLib/Fem/CoordinatesMapping/ShapeMatrices-impl.h
+1
-0
1 addition, 0 deletions
NumLib/Fem/CoordinatesMapping/ShapeMatrices-impl.h
NumLib/Fem/CoordinatesMapping/ShapeMatrices.h
+3
-1
3 additions, 1 deletion
NumLib/Fem/CoordinatesMapping/ShapeMatrices.h
with
4 additions
and
1 deletion
NumLib/Fem/CoordinatesMapping/ShapeMatrices-impl.h
+
1
−
0
View file @
6550018d
...
...
@@ -64,6 +64,7 @@ inline void setZero(ShapeMatrices<T_N, T_DNDR, T_J, T_DNDX> &shape, ShapeDataFie
setZero
(
shape
,
ShapeDataFieldType
<
ShapeMatrixType
::
DNDR
>
());
setMatrixZero
(
shape
.
J
);
shape
.
detJ
=
.0
;
shape
.
integralMeasure
=
0.0
;
}
template
<
class
T_N
,
class
T_DNDR
,
class
T_J
,
class
T_DNDX
>
...
...
This diff is collapsed.
Click to expand it.
NumLib/Fem/CoordinatesMapping/ShapeMatrices.h
+
3
−
1
View file @
6550018d
...
...
@@ -54,6 +54,7 @@ struct ShapeMatrices
double
detJ
;
///< Determinant of the Jacobian
JacobianType
invJ
;
///< Inverse matrix of the Jacobian
DxShapeType
dNdx
;
///< Matrix of gradient of shape functions in physical coordinates, dN(r)/dx
double
integralMeasure
;
/** Not default constructible, dimensions always must be given.
*
...
...
@@ -80,7 +81,8 @@ struct ShapeMatrices
J
(
local_dim
,
local_dim
),
detJ
(
.0
),
invJ
(
local_dim
,
local_dim
),
dNdx
(
global_dim
,
n_nodes
)
dNdx
(
global_dim
,
n_nodes
),
integralMeasure
(
0.0
)
{
setZero
();
}
...
...
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