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
a504e6ab
Commit
a504e6ab
authored
3 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[PL/TH2M] Rename dfW_4 to specific dfW_4_LWpG_.
Needed before adding the dfW_4_LWpC parts.
parent
7577fb89
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/ConstitutiveVariables.h
+6
-6
6 additions, 6 deletions
ProcessLib/TH2M/ConstitutiveVariables.h
ProcessLib/TH2M/TH2MFEM-impl.h
+13
-12
13 additions, 12 deletions
ProcessLib/TH2M/TH2MFEM-impl.h
with
19 additions
and
18 deletions
ProcessLib/TH2M/ConstitutiveVariables.h
+
6
−
6
View file @
a504e6ab
...
@@ -34,12 +34,12 @@ struct ConstitutiveVariables
...
@@ -34,12 +34,12 @@ struct ConstitutiveVariables
DisplacementDimVector
drho_LR_h_w_eff_dp_cap_Npart
;
DisplacementDimVector
drho_LR_h_w_eff_dp_cap_Npart
;
DisplacementDimMatrix
drho_LR_h_w_eff_dp_cap_gradNpart
;
DisplacementDimMatrix
drho_LR_h_w_eff_dp_cap_gradNpart
;
DisplacementDimVector
drho_GR_h_w_eff_dT
;
DisplacementDimVector
drho_GR_h_w_eff_dT
;
DisplacementDimMatrix
dfW_4a_dp_GR
;
DisplacementDimMatrix
dfW_4
_LWpG_
a_dp_GR
;
DisplacementDimMatrix
dfW_4a_dp_cap
;
DisplacementDimMatrix
dfW_4
_LWpG_
a_dp_cap
;
DisplacementDimMatrix
dfW_4a_dT
;
DisplacementDimMatrix
dfW_4
_LWpG_
a_dT
;
DisplacementDimMatrix
dfW_4d_dp_GR
;
DisplacementDimMatrix
dfW_4
_LWpG_
d_dp_GR
;
DisplacementDimMatrix
dfW_4d_dp_cap
;
DisplacementDimMatrix
dfW_4
_LWpG_
d_dp_cap
;
DisplacementDimMatrix
dfW_4d_dT
;
DisplacementDimMatrix
dfW_4
_LWpG_
d_dT
;
DisplacementDimMatrix
dfC_4_LCpG_dT
;
DisplacementDimMatrix
dfC_4_LCpG_dT
;
DisplacementDimMatrix
dadvection_C_dp_GR
;
DisplacementDimMatrix
dadvection_C_dp_GR
;
DisplacementDimMatrix
dk_over_mu_G_dp_cap
;
DisplacementDimMatrix
dk_over_mu_G_dp_cap
;
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/TH2M/TH2MFEM-impl.h
+
13
−
12
View file @
a504e6ab
...
@@ -650,17 +650,17 @@ TH2MLocalAssembler<ShapeFunctionDisplacement, ShapeFunctionPressure,
...
@@ -650,17 +650,17 @@ TH2MLocalAssembler<ShapeFunctionDisplacement, ShapeFunctionPressure,
ip_cv
.
ds_L_dp_cap
*
rho_W_LR_dot
-
s_L
*
c
.
drho_W_LR_dp_LR
/
dt
;
ip_cv
.
ds_L_dp_cap
*
rho_W_LR_dot
-
s_L
*
c
.
drho_W_LR_dp_LR
/
dt
;
ip_cv
.
dfW_3a_dT
=
s_G
*
c
.
drho_W_GR_dT
/
dt
+
s_L
*
c
.
drho_W_LR_dT
/
dt
;
ip_cv
.
dfW_3a_dT
=
s_G
*
c
.
drho_W_GR_dT
/
dt
+
s_L
*
c
.
drho_W_LR_dT
/
dt
;
ip_cv
.
dfW_4a_dp_GR
=
c
.
drho_W_GR_dp_GR
*
k_over_mu_G
;
ip_cv
.
dfW_4
_LWpG_
a_dp_GR
=
c
.
drho_W_GR_dp_GR
*
k_over_mu_G
;
ip_cv
.
dfW_4a_dp_cap
=
-
c
.
drho_W_LR_dp_LR
*
k_over_mu_L
;
ip_cv
.
dfW_4
_LWpG_
a_dp_cap
=
-
c
.
drho_W_LR_dp_LR
*
k_over_mu_L
;
ip_cv
.
dfW_4a_dT
=
ip_cv
.
dfW_4
_LWpG_
a_dT
=
c
.
drho_W_GR_dT
*
k_over_mu_G
+
c
.
drho_W_LR_dT
*
k_over_mu_L
;
c
.
drho_W_GR_dT
*
k_over_mu_G
+
c
.
drho_W_LR_dT
*
k_over_mu_L
;
// TODO (naumov) for dxmW*/d* != 0
// TODO (naumov) for dxmW*/d* != 0
ip_cv
.
dfW_4d_dp_GR
=
ip_cv
.
dfW_4
_LWpG_
d_dp_GR
=
Eigen
::
Matrix
<
double
,
DisplacementDim
,
DisplacementDim
>::
Zero
();
Eigen
::
Matrix
<
double
,
DisplacementDim
,
DisplacementDim
>::
Zero
();
ip_cv
.
dfW_4d_dp_cap
=
ip_cv
.
dfW_4
_LWpG_
d_dp_cap
=
Eigen
::
Matrix
<
double
,
DisplacementDim
,
DisplacementDim
>::
Zero
();
Eigen
::
Matrix
<
double
,
DisplacementDim
,
DisplacementDim
>::
Zero
();
ip_cv
.
dfW_4d_dT
=
ip_cv
.
dfW_4
_LWpG_
d_dT
=
Eigen
::
Matrix
<
double
,
DisplacementDim
,
DisplacementDim
>::
Zero
();
Eigen
::
Matrix
<
double
,
DisplacementDim
,
DisplacementDim
>::
Zero
();
}
}
...
@@ -1540,18 +1540,19 @@ void TH2MLocalAssembler<ShapeFunctionDisplacement, ShapeFunctionPressure,
...
@@ -1540,18 +1540,19 @@ void TH2MLocalAssembler<ShapeFunctionDisplacement, ShapeFunctionPressure,
// fW_4 LWpG' parts; LWpG = \int grad (a + d) grad
// fW_4 LWpG' parts; LWpG = \int grad (a + d) grad
local_Jac
.
template
block
<
W_size
,
C_size
>(
W_index
,
C_index
).
noalias
()
-=
local_Jac
.
template
block
<
W_size
,
C_size
>(
W_index
,
C_index
).
noalias
()
-=
gradNpT
*
(
ip_cv
.
dfW_4a_dp_GR
+
ip_cv
.
dfW_4d_dp_GR
)
*
gradpGR
*
Np
*
gradNpT
*
(
ip_cv
.
dfW_4
_LWpG_
a_dp_GR
+
ip_cv
.
dfW_4
_LWpG_
d_dp_GR
)
*
w
;
gradpGR
*
Np
*
w
;
local_Jac
.
template
block
<
W_size
,
W_size
>(
W_index
,
W_index
).
noalias
()
-=
local_Jac
.
template
block
<
W_size
,
W_size
>(
W_index
,
W_index
).
noalias
()
-=
gradNpT
*
(
ip_cv
.
dfW_4a_dp_cap
+
ip_cv
.
dfW_4d_dp_cap
)
*
gradpGR
*
gradNpT
*
(
ip_cv
.
dfW_4
_LWpG_
a_dp_cap
+
ip_cv
.
dfW_4
_LWpG_
d_dp_cap
)
*
Np
*
w
;
gradpGR
*
Np
*
w
;
local_Jac
local_Jac
.
template
block
<
W_size
,
temperature_size
>(
W_index
,
.
template
block
<
W_size
,
temperature_size
>(
W_index
,
temperature_index
)
temperature_index
)
.
noalias
()
-=
.
noalias
()
-=
gradNpT
*
gradNpT
*
(
ip_cv
.
dfW_4a_dT
+
ip_cv
.
dfW_4d_dT
)
*
gradpGR
*
NT
*
w
;
(
ip_cv
.
dfW_4_LWpG_a_dT
+
ip_cv
.
dfW_4_LWpG_d_dT
)
*
gradpGR
*
NT
*
w
;
LWpC
.
noalias
()
-=
LWpC
.
noalias
()
-=
gradNpT
*
(
advection_W_L
+
diffusion_W_L_p
)
*
gradNp
*
w
;
gradNpT
*
(
advection_W_L
+
diffusion_W_L_p
)
*
gradNp
*
w
;
...
...
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