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
58349ccc
Commit
58349ccc
authored
2 years ago
by
Ujwal Kishore Jinaga
Browse files
Options
Downloads
Patches
Plain Diff
Revert "minorAdds"
This reverts commit
ca7355c2
parent
ca7355c2
No related branches found
No related tags found
1 merge request
!375
Revert "minorAdds"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
NonLinearSolver/materialLaw/mlawNonLinearTVE.cpp
+2
-2
2 additions, 2 deletions
NonLinearSolver/materialLaw/mlawNonLinearTVE.cpp
NonLinearSolver/materialLaw/mlawNonLinearTVP.cpp
+13
-13
13 additions, 13 deletions
NonLinearSolver/materialLaw/mlawNonLinearTVP.cpp
with
15 additions
and
15 deletions
NonLinearSolver/materialLaw/mlawNonLinearTVE.cpp
+
2
−
2
View file @
58349ccc
...
@@ -274,7 +274,7 @@ void mlawNonLinearTVE::setViscoElasticData_Bulk(const int i, const double Ki, co
...
@@ -274,7 +274,7 @@ void mlawNonLinearTVE::setViscoElasticData_Bulk(const int i, const double Ki, co
_temFunc_Ki
[
i
-
1
]
=
new
constantScalarFunction
(
1.
);
_temFunc_Ki
[
i
-
1
]
=
new
constantScalarFunction
(
1.
);
//
Msg::Info("setting: element=%d Ki = %e ki = %e, ",i-1,Ki,ki);
Msg
::
Info
(
"setting: element=%d Ki = %e ki = %e, "
,
i
-
1
,
Ki
,
ki
);
}
}
};
};
...
@@ -289,7 +289,7 @@ void mlawNonLinearTVE::setViscoElasticData_Shear(const int i, const double Gi, c
...
@@ -289,7 +289,7 @@ void mlawNonLinearTVE::setViscoElasticData_Shear(const int i, const double Gi, c
_temFunc_Gi
[
i
-
1
]
=
new
constantScalarFunction
(
1.
);
_temFunc_Gi
[
i
-
1
]
=
new
constantScalarFunction
(
1.
);
_temFunc_Alphai
[
i
-
1
]
=
new
constantScalarFunction
(
1.
);
_temFunc_Alphai
[
i
-
1
]
=
new
constantScalarFunction
(
1.
);
//
Msg::Info("setting: element=%d Gi = %e gi = %e, ",i-1,Gi,gi);
Msg
::
Info
(
"setting: element=%d Gi = %e gi = %e, "
,
i
-
1
,
Gi
,
gi
);
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
NonLinearSolver/materialLaw/mlawNonLinearTVP.cpp
+
13
−
13
View file @
58349ccc
...
@@ -1113,7 +1113,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -1113,7 +1113,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
double
kk
=
1.
/
sqrt
(
1.
+
2.
*
q1
->
_nup
*
q1
->
_nup
);
double
kk
=
1.
/
sqrt
(
1.
+
2.
*
q1
->
_nup
*
q1
->
_nup
);
// double Gamma = 0.; // flow rule parameter
// double Gamma = 0.; // flow rule parameter
double
&
Gamma
=
q1
->
_Gamma
;
// flow rule parameter
// still initialised to zero
double
&
Gamma
=
q1
->
_Gamma
;
// flow rule parameter
double
PhiEq
=
PhiEqpr
;
// current effective deviator
double
PhiEq
=
PhiEqpr
;
// current effective deviator
...
@@ -1122,21 +1122,13 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -1122,21 +1122,13 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
static
fullVector
<
double
>
a
(
3
),
Da
(
3
);
// yield coefficients and derivatives in respect to plastic deformation
static
fullVector
<
double
>
a
(
3
),
Da
(
3
);
// yield coefficients and derivatives in respect to plastic deformation
this
->
getYieldCoefficients
(
q1
,
a
);
this
->
getYieldCoefficients
(
q1
,
a
);
double
Hb
(
0.
),
dHb
(
0.
),
dHbdT
(
0.
),
ddHbddT
(
0.
);
double
Hb
(
0.
),
dHbdT
(
0.
),
ddHbddT
(
0.
);
if
(
q1
->
_ipKinematic
!=
NULL
){
if
(
q1
->
_ipKinematic
!=
NULL
){
Hb
=
q1
->
_ipKinematic
->
getDR
();
// kinematic hardening parameter
Hb
=
q1
->
_ipKinematic
->
getDR
();
// kinematic hardening parameter
dHb
=
q1
->
_ipKinematic
->
getDDR
();
// kinematic hardening parameter
dHbdT
=
Hb
*
q1
->
_ipKinematic
->
getDRDT
();
// make sure to normalise DRDT while defining in python file //NEW
dHbdT
=
Hb
*
q1
->
_ipKinematic
->
getDRDT
();
// make sure to normalise DRDT while defining in python file //NEW
ddHbddT
=
Hb
*
q1
->
_ipKinematic
->
getDDRDDT
();
ddHbddT
=
Hb
*
q1
->
_ipKinematic
->
getDDRDDT
();
}
}
static
fullVector
<
double
>
m
(
2
);
getChabocheCoeffs
(
m
,
0
,
q1
);
double
Cx
(
0.
),
Px
(
0.
);
getPlasticPotential
(
ptilde
,
PhiEq
,
Px
);
// CHANGET
double
Gt
=
Ge
+
pow
(
kk
,
1
)
*
Hb
/
(
2
*
Cx
);
// pow(kk,2) CHANGE
double
Kt
=
Ke
+
pow
(
kk
,
1
)
*
Hb
/
(
3
*
Cx
);
// pow(kk,2) CHANGE
//a.print("a init");
//a.print("a init");
static
STensor3
devN
;
// dev part of yield normal
static
STensor3
devN
;
// dev part of yield normal
...
@@ -1156,7 +1148,14 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -1156,7 +1148,14 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
double
dDgammaDGamma
=
0.
;
double
dDgammaDGamma
=
0.
;
double
Dgamma
=
0.
;
// eqplastic strain
double
Dgamma
=
0.
;
// eqplastic strain
Cx
=
m
(
0
)
*
Dgamma
+
m
(
1
)
*
Px
-
1
/
Hb
*
dHbdT
*
(
T
-
T0
)
+
1
;
// CHECK -> CHANGED m(0)*(q0->_epsbarre + Dgamma) and no del
static
fullVector
<
double
>
m
(
2
);
getChabocheCoeffs
(
m
,
0
,
q1
);
double
Cx
(
0.
),
Px
(
0.
);
getPlasticPotential
(
ptilde
,
PhiEq
,
Px
);
Cx
=
m
(
0
)
*
(
q0
->
_epspbarre
+
Dgamma
)
+
m
(
1
)
*
Px
-
1
/
Hb
*
dHbdT
+
1
;
double
Gt
=
Ge
+
pow
(
kk
,
1
)
*
Hb
/
(
2
*
Cx
);
// pow(kk,2) CHANGE
double
Kt
=
Ke
+
pow
(
kk
,
1
)
*
Hb
/
(
3
*
Cx
);
// pow(kk,2) CHANGE
if
(
q1
->
dissipationIsBlocked
()){
if
(
q1
->
dissipationIsBlocked
()){
q1
->
getRefToDissipationActive
()
=
false
;
q1
->
getRefToDissipationActive
()
=
false
;
...
@@ -1187,8 +1186,8 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -1187,8 +1186,8 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
double
dCxdDgamma
=
m
(
0
);
double
dCxdDgamma
=
m
(
0
);
double
Stemp
=
STensorOperation
::
doubledot
(
devPhi
,
devXn
);
double
Stemp
=
STensorOperation
::
doubledot
(
devPhi
,
devXn
);
double
He
=
(
PhiEq
*
6
*
Gamma
*
kk
*
kk
*
Hb
-
Stemp
*
3.
*
1.
/
PhiEq
)
/
(
2
*
Cx
*
Cx
*
u
)
*
dCxdDgamma
;
// CHECK -> CHANGE
double
He
=
(
PhiEq
*
6
*
Gamma
*
kk
*
kk
*
Hb
-
Stemp
*
3.
*
1.
/
PhiEq
)
/
(
2
*
Cx
*
Cx
*
u
)
*
dCxdDgamma
;
double
Hp
=
ptilde
*
(
2
*
_b
*
Gamma
*
kk
*
kk
*
Hb
-
trXn
)
/
(
3
*
Cx
*
Cx
*
v
)
*
dCxdDgamma
;
// CHECK
double
Hp
=
ptilde
*
(
2
*
_b
*
Gamma
*
kk
*
kk
*
Hb
-
trXn
)
/
(
3
*
Cx
*
Cx
*
v
)
*
dCxdDgamma
;
dfdDgamma
+=
a
(
2
)
*
_n
*
pow
(
PhiEq
,(
_n
-
1
))
*
He
-
a
(
1
)
*
Hp
;
dfdDgamma
+=
a
(
2
)
*
_n
*
pow
(
PhiEq
,(
_n
-
1
))
*
He
-
a
(
1
)
*
Hp
;
if
(
Gamma
>
0
and
etaOverDt
>
0
)
if
(
Gamma
>
0
and
etaOverDt
>
0
)
...
@@ -1404,6 +1403,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
...
@@ -1404,6 +1403,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
//2. get DCeprDCepr and DCeinvprDCepr
//2. get DCeprDCepr and DCeinvprDCepr
static
STensor43
DCeprDCepr
,
DCeinvprDCepr
;
static
STensor43
DCeprDCepr
,
DCeinvprDCepr
;
DCeprDCepr
=
_I4
;
DCeprDCepr
=
_I4
;
for
(
int
i
=
0
;
i
<
3
;
i
++
)
for
(
int
i
=
0
;
i
<
3
;
i
++
)
for
(
int
s
=
0
;
s
<
3
;
s
++
)
for
(
int
s
=
0
;
s
<
3
;
s
++
)
for
(
int
k
=
0
;
k
<
3
;
k
++
)
for
(
int
k
=
0
;
k
<
3
;
k
++
)
...
...
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