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
29b62eae
Commit
29b62eae
authored
3 years ago
by
wenqing
Committed by
Dmitri Naumov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[TH2M] Enable to use pressure, strain, stress dependent permeability models
parent
e2b75f20
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/TH2M/TH2MFEM-impl.h
+34
-9
34 additions, 9 deletions
ProcessLib/TH2M/TH2MFEM-impl.h
ProcessLib/TH2M/TH2MFEM.h
+2
-0
2 additions, 0 deletions
ProcessLib/TH2M/TH2MFEM.h
with
36 additions
and
9 deletions
ProcessLib/TH2M/TH2MFEM-impl.h
+
34
−
9
View file @
29b62eae
...
...
@@ -182,7 +182,41 @@ TH2MLocalAssembler<ShapeFunctionDisplacement, ShapeFunctionPressure,
medium
.
property
(
MPL
::
PropertyType
::
permeability
)
.
value
(
vars
,
pos
,
t
,
dt
));
auto
const
Bu
=
LinearBMatrix
::
computeBMatrix
<
DisplacementDim
,
ShapeFunctionDisplacement
::
NPOINTS
,
typename
BMatricesType
::
BMatrixType
>
(
gradNu
,
Nu
,
x_coord
,
_is_axially_symmetric
);
auto
&
eps
=
ip_data
.
eps
;
eps
.
noalias
()
=
Bu
*
displacement
;
// relative permeability
// Set mechanical variables for the intrinsic permeability model
// For stress dependent permeability.
{
// Note: if Bishop model is available, ip_data.s_L in the following
// computation should be replaced with the Bishop value.
auto
const
sigma_total
=
(
_ip_data
[
ip
].
sigma_eff
-
ip_data
.
alpha_B
*
(
pGR
-
ip_data
.
s_L
*
pCap
)
*
Invariants
::
identity2
)
.
eval
();
vars
[
static_cast
<
int
>
(
MPL
::
Variable
::
total_stress
)]
.
emplace
<
SymmetricTensor
>
(
MathLib
::
KelvinVector
::
kelvinVectorToSymmetricTensor
(
sigma_total
));
}
// For strain dependent permeability
vars
[
static_cast
<
int
>
(
MPL
::
Variable
::
volumetric_strain
)]
=
Invariants
::
trace
(
eps
);
vars
[
static_cast
<
int
>
(
MPL
::
Variable
::
equivalent_plastic_strain
)]
=
_ip_data
[
ip
].
material_state_variables
->
getEquivalentPlasticStrain
();
vars
[
static_cast
<
int
>
(
MPL
::
Variable
::
mechanical_strain
)]
.
emplace
<
MathLib
::
KelvinVector
::
KelvinVectorType
<
DisplacementDim
>>
(
eps
);
ip_data
.
k_rel_G
=
medium
.
property
(
...
...
@@ -211,15 +245,6 @@ TH2MLocalAssembler<ShapeFunctionDisplacement, ShapeFunctionPressure,
MathLib
::
KelvinVector
::
KelvinVectorType
<
DisplacementDim
>
const
dthermal_strain
=
ip_data
.
alpha_T_SR
*
T_dot
*
dt
;
auto
const
Bu
=
LinearBMatrix
::
computeBMatrix
<
DisplacementDim
,
ShapeFunctionDisplacement
::
NPOINTS
,
typename
BMatricesType
::
BMatrixType
>
(
gradNu
,
Nu
,
x_coord
,
_is_axially_symmetric
);
auto
&
eps
=
ip_data
.
eps
;
eps
.
noalias
()
=
Bu
*
displacement
;
auto
&
eps_prev
=
ip_data
.
eps_prev
;
auto
&
eps_m
=
ip_data
.
eps_m
;
auto
&
eps_m_prev
=
ip_data
.
eps_m_prev
;
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/TH2M/TH2MFEM.h
+
2
−
0
View file @
29b62eae
...
...
@@ -70,6 +70,8 @@ public:
static
int
const
KelvinVectorSize
=
MathLib
::
KelvinVector
::
kelvin_vector_dimensions
(
DisplacementDim
);
using
SymmetricTensor
=
Eigen
::
Matrix
<
double
,
KelvinVectorSize
,
1
>
;
using
Invariants
=
MathLib
::
KelvinVector
::
Invariants
<
KelvinVectorSize
>
;
TH2MLocalAssembler
(
TH2MLocalAssembler
const
&
)
=
delete
;
...
...
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