Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cm3Libraries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm3
cm3Libraries
Commits
974113c9
Commit
974113c9
authored
2 years ago
by
Ujwal Kishore Jinaga
Browse files
Options
Downloads
Patches
Plain Diff
commented the numerical Derivatives for mechSrc
parent
a9106e21
Branches
Branches containing commit
No related tags found
1 merge request
!390
AddedNumericalTangentstoCheck_dGamma_dDgamma_dCepr_dT_derivatives___PLEASEcomm...
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
NonLinearSolver/materialLaw/mlawNonLinearTVP.cpp
+6
-5
6 additions, 5 deletions
NonLinearSolver/materialLaw/mlawNonLinearTVP.cpp
with
6 additions
and
5 deletions
NonLinearSolver/materialLaw/mlawNonLinearTVP.cpp
+
6
−
5
View file @
974113c9
...
@@ -1394,7 +1394,7 @@ void mlawNonLinearTVP::plasticCorrector_TVP(const STensor3& F0, const STensor3&
...
@@ -1394,7 +1394,7 @@ void mlawNonLinearTVP::plasticCorrector_TVP(const STensor3& F0, const STensor3&
corKir_e
=
q1
->
_kirchhoff
;
corKir_e
=
q1
->
_kirchhoff
;
const
STensor3
&
KS
=
q1
->
_kirchhoff
;
const
STensor3
&
KS
=
q1
->
_kirchhoff
;
const
STensor3
&
DcorKirDT_TVEcorrection
=
q1
->
_DcorKirDT
;
// Get the corrected value directly from TVE
//
const STensor3& DcorKirDT_TVEcorrection = q1->_DcorKirDT; // Get the corrected value directly from TVE
getModifiedMandel
(
Ce
,
q0
,
q1
);
// update Mandel
getModifiedMandel
(
Ce
,
q0
,
q1
);
// update Mandel
const
STensor3
&
MS
=
q1
->
_ModMandel
;
const
STensor3
&
MS
=
q1
->
_ModMandel
;
...
@@ -2289,13 +2289,14 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -2289,13 +2289,14 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
this
->
getYieldCoefficientDerivatives
(
q1
,
q1
->
_nup
,
Da
);
this
->
getYieldCoefficientDerivatives
(
q1
,
q1
->
_nup
,
Da
);
/*
// DEBUG FLE
// DEBUG FLE
double a0 = a(0);
double a0 = a(0);
double a1 = a(1);
double a1 = a(1);
double a2 = a(2);
double a2 = a(2);
double da0 = Da(0);
double da0 = Da(0);
double da1 = Da(1);
double da1 = Da(1);
double
da2
=
Da
(
2
);
double da2 = Da(2);
*/
dfdDgamma
=
Da
(
2
)
*
pow
(
PhiEq
,
_n
)
-
Da
(
1
)
*
ptilde
-
Da
(
0
);
dfdDgamma
=
Da
(
2
)
*
pow
(
PhiEq
,
_n
)
-
Da
(
1
)
*
ptilde
-
Da
(
0
);
dfdDgamma
+=
a
(
2
)
*
_n
*
pow
(
PhiEq
,(
_n
-
1.
))
*
He
-
a
(
1
)
*
Hp
;
dfdDgamma
+=
a
(
2
)
*
_n
*
pow
(
PhiEq
,(
_n
-
1.
))
*
He
-
a
(
1
)
*
Hp
;
...
@@ -3311,7 +3312,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -3311,7 +3312,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
// mechSourceTVP derivatives
// mechSourceTVP derivatives
/*
// Numerical Derivatives
// Numerical Derivatives
double T_plus(0.), Wm_TVE_plus(0.), Wm_TVP_plus(0.), dWm_TVEdT_plus(0.), dWm_TVPdT_plus(0.), DKDTsum_plus(0.), DGDTsum_plus(0.);
double T_plus(0.), Wm_TVE_plus(0.), Wm_TVP_plus(0.), dWm_TVEdT_plus(0.), dWm_TVPdT_plus(0.), DKDTsum_plus(0.), DGDTsum_plus(0.);
static STensor3 F_plus, Kepr_plus, Mepr_plus, Ke_plus, Me_plus, N_plus, P_plus, DphiPDF_plus, dWm_TVEdF_plus, dWm_TVPdF_plus;
static STensor3 F_plus, Kepr_plus, Mepr_plus, Ke_plus, Me_plus, N_plus, P_plus, DphiPDF_plus, dWm_TVEdF_plus, dWm_TVPdF_plus;
...
@@ -3342,7 +3343,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -3342,7 +3343,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
dWm_TVEdF_plus(i,j) = (Wm_TVE_plus - Wm_TVE)/_perturbationfactor;
dWm_TVEdF_plus(i,j) = (Wm_TVE_plus - Wm_TVE)/_perturbationfactor;
dWm_TVPdF_plus(i,j) = (Wm_TVP_plus - Wm_TVP)/_perturbationfactor;
dWm_TVPdF_plus(i,j) = (Wm_TVP_plus - Wm_TVP)/_perturbationfactor;
}
}
}
}
*/
// conversion tensor for mechSourceTVE Terms
// conversion tensor for mechSourceTVE Terms
static
STensor43
DCeDFe
,
DEeDFe
;
static
STensor43
DCeDFe
,
DEeDFe
;
...
...
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