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
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
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
Özgür Ozan Sen
ogs
Commits
be5899a9
Commit
be5899a9
authored
3 years ago
by
wenqing
Committed by
Dmitri Naumov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[LIE] Use ElementCoordinatesMappingLocal to compute the rotation matrix
parent
ed9ddc0f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/LIE/Common/FractureProperty.h
+14
-11
14 additions, 11 deletions
ProcessLib/LIE/Common/FractureProperty.h
ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerFracture-impl.h
+1
-0
1 addition, 0 deletions
...alAssembler/SmallDeformationLocalAssemblerFracture-impl.h
with
15 additions
and
11 deletions
ProcessLib/LIE/Common/FractureProperty.h
+
14
−
11
View file @
be5899a9
...
@@ -10,19 +10,15 @@
...
@@ -10,19 +10,15 @@
#pragma once
#pragma once
#include
<memory>
#include
<Eigen/Eigen>
#include
<Eigen/Eigen>
#include
<memory>
#include
"MaterialLib/FractureModels/Permeability/Permeability.h"
#include
"BranchProperty.h"
#include
"BranchProperty.h"
#include
"JunctionProperty.h"
#include
"JunctionProperty.h"
#include
"Utils.h"
#include
"MaterialLib/FractureModels/Permeability/Permeability.h"
#include
"MeshLib/ElementCoordinatesMappingLocal.h"
#include
"MeshLib/Elements/Element.h"
namespace
MeshLib
{
class
Element
;
}
namespace
ParameterLib
namespace
ParameterLib
{
{
template
<
typename
T
>
template
<
typename
T
>
...
@@ -87,9 +83,16 @@ inline void setFractureProperty(int const dim, MeshLib::Element const& e,
...
@@ -87,9 +83,16 @@ inline void setFractureProperty(int const dim, MeshLib::Element const& e,
{
{
frac_prop
.
point_on_fracture
[
j
]
=
getCenterOfGravity
(
e
).
getCoords
()[
j
];
frac_prop
.
point_on_fracture
[
j
]
=
getCenterOfGravity
(
e
).
getCoords
()[
j
];
}
}
computeNormalVector
(
e
,
dim
,
n
);
frac_prop
.
R
.
resize
(
dim
,
dim
);
const
MeshLib
::
ElementCoordinatesMappingLocal
ele_local_coord
(
e
,
dim
);
computeRotationMatrix
(
e
,
n
,
dim
,
frac_prop
.
R
);
// Global to local rotation matrix:
Eigen
::
MatrixXd
const
global2local_rotation
=
ele_local_coord
.
getRotationMatrixToGlobal
().
transpose
();
n
=
global2local_rotation
.
row
(
dim
-
1
);
frac_prop
.
R
=
global2local_rotation
.
topLeftCorner
(
dim
,
dim
);
DBUG
(
"Normal vector of the fracture element {:d}: [{:g}, {:g}, {:g}]"
,
DBUG
(
"Normal vector of the fracture element {:d}: [{:g}, {:g}, {:g}]"
,
e
.
getID
(),
n
[
0
],
n
[
1
],
n
[
2
]);
e
.
getID
(),
n
[
0
],
n
[
1
],
n
[
2
]);
}
}
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerFracture-impl.h
+
1
−
0
View file @
be5899a9
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include
"MathLib/LinAlg/Eigen/EigenMapTools.h"
#include
"MathLib/LinAlg/Eigen/EigenMapTools.h"
#include
"NumLib/Fem/InitShapeMatrices.h"
#include
"NumLib/Fem/InitShapeMatrices.h"
#include
"ProcessLib/LIE/Common/LevelSetFunction.h"
#include
"ProcessLib/LIE/Common/LevelSetFunction.h"
#include
"ProcessLib/LIE/Common/Utils.h"
#include
"SmallDeformationLocalAssemblerFracture.h"
#include
"SmallDeformationLocalAssemblerFracture.h"
namespace
ProcessLib
namespace
ProcessLib
...
...
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