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
bfbc4c1a
Commit
bfbc4c1a
authored
6 years ago
by
Julien Leclerc
Browse files
Options
Downloads
Patches
Plain Diff
adapt coupled porous law to new selective update
parent
40907f3c
No related branches found
No related tags found
1 merge request
!152
Coal jl8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
NonLinearSolver/materialLaw/mlawNonLocalPorousCoalescence.cpp
+4
-4
4 additions, 4 deletions
...inearSolver/materialLaw/mlawNonLocalPorousCoalescence.cpp
NonLinearSolver/materialLaw/mlawNonLocalPorousCoupled.cpp
+38
-30
38 additions, 30 deletions
NonLinearSolver/materialLaw/mlawNonLocalPorousCoupled.cpp
with
42 additions
and
34 deletions
NonLinearSolver/materialLaw/mlawNonLocalPorousCoalescence.cpp
+
4
−
4
View file @
bfbc4c1a
...
@@ -130,10 +130,10 @@ double mlawNonLocalPorousThomasonLaw::yieldFunction(const double kcorEq, const d
...
@@ -130,10 +130,10 @@ double mlawNonLocalPorousThomasonLaw::yieldFunction(const double kcorEq, const d
double
Cft
=
q1
->
getConstRefToIPCoalescence
().
getConcentrationFactor
();
double
Cft
=
q1
->
getConstRefToIPCoalescence
().
getConcentrationFactor
();
double
CftOffset
=
q0
->
getConstRefToIPCoalescence
().
getCrackOffsetOnCft
();
double
CftOffset
=
q0
->
getConstRefToIPCoalescence
().
getCrackOffsetOnCft
();
if
(
_CfTOffsetMethod
==
2
){
if
(
_CfTOffsetMethod
==
2
){
if
(
!
q
0
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
if
(
!
q
1
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
}
}
else
if
(
_CfTOffsetMethod
==
3
){
else
if
(
_CfTOffsetMethod
==
3
){
if
(
!
q
0
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
if
(
!
q
1
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
}
}
double
R0
=
_j2IH
->
getYield0
();
double
R0
=
_j2IH
->
getYield0
();
...
@@ -176,10 +176,10 @@ void mlawNonLocalPorousThomasonLaw::computeYieldDerivatives( fullVector<double>&
...
@@ -176,10 +176,10 @@ void mlawNonLocalPorousThomasonLaw::computeYieldDerivatives( fullVector<double>&
double
Cft
=
q1Thom
->
getConcentrationFactor
();
double
Cft
=
q1Thom
->
getConcentrationFactor
();
double
CftOffset
=
q0Thom
->
getCrackOffsetOnCft
();
double
CftOffset
=
q0Thom
->
getCrackOffsetOnCft
();
if
(
_CfTOffsetMethod
==
2
){
if
(
_CfTOffsetMethod
==
2
){
if
(
!
q
0
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
if
(
!
q
1
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
}
}
else
if
(
_CfTOffsetMethod
==
3
){
else
if
(
_CfTOffsetMethod
==
3
){
if
(
!
q
0
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
if
(
!
q
1
->
getConstRefToIPCoalescence
().
getCoalescenceOnsetFlag
()){
CftOffset
=
1.
;};
}
}
double
DCftDChi
=
q1Thom
->
getDConcentrationFactorDLigamentRatio
();
double
DCftDChi
=
q1Thom
->
getDConcentrationFactorDLigamentRatio
();
...
...
This diff is collapsed.
Click to expand it.
NonLinearSolver/materialLaw/mlawNonLocalPorousCoupled.cpp
+
38
−
30
View file @
bfbc4c1a
...
@@ -373,7 +373,7 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
...
@@ -373,7 +373,7 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
if
(
q1
->
getLocation
()
==
IPVariable
::
INTERFACE_MINUS
or
q1
->
getLocation
()
==
IPVariable
::
INTERFACE_PLUS
){
if
(
q1
->
getLocation
()
==
IPVariable
::
INTERFACE_MINUS
or
q1
->
getLocation
()
==
IPVariable
::
INTERFACE_PLUS
){
// At the interface:
// At the interface:
// Check if transition has already occurs or not
// Check if transition has already occurs or not
if
(
!
q
0
Thom
->
getCoalescenceOnsetFlag
()){
if
(
!
q
1
Thom
->
getCoalescenceOnsetFlag
()){
// If Coalescence has not yet occured at least once
// If Coalescence has not yet occured at least once
// Check if the normal traction force is sufficient to obtain coalescence in normal direction of the interface
// Check if the normal traction force is sufficient to obtain coalescence in normal direction of the interface
...
@@ -464,7 +464,8 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
...
@@ -464,7 +464,8 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
}
}
else
{
else
{
// Coalescence has occured at least once
// Coalescence has occured at least once
q1Thom
->
getRefToCoalescenceOnsetFlag
()
=
true
;
q1Thom
->
getRefToCoalescenceOnsetFlag
()
=
true
;
// already done....
// Update onset value (yield porosity and geometrical parameters)
// Update onset value (yield porosity and geometrical parameters)
q1Thom
->
getRefToPorosityAtCoalescenceOnset
()
=
q0Thom
->
getPorosityAtCoalescenceOnset
();
q1Thom
->
getRefToPorosityAtCoalescenceOnset
()
=
q0Thom
->
getPorosityAtCoalescenceOnset
();
q1Thom
->
getRefToLigamentRatioAtCoalescenceOnset
()
=
q0Thom
->
getLigamentRatioAtCoalescenceOnset
();
q1Thom
->
getRefToLigamentRatioAtCoalescenceOnset
()
=
q0Thom
->
getLigamentRatioAtCoalescenceOnset
();
...
@@ -476,6 +477,13 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
...
@@ -476,6 +477,13 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
// Determine which mode should be used for the next time step.
// Determine which mode should be used for the next time step.
if
(
!
q0Thom
->
getCoalescenceOnsetFlag
()){
// First time that coalescence is detected : Thomason == ON
q1Thom
->
getRefToCoalescenceActiveFlag
()
=
true
;
q1Thom
->
getRefToAccelerateRate
()
=
1.0
;
}
else
{
// Not the first time that coalescence appears
if
(
q0Thom
->
getCoalescenceActiveFlag
()){
if
(
q0Thom
->
getCoalescenceActiveFlag
()){
// If Thomason is/was used for this time step : check if Gurson is more restrictive
// If Thomason is/was used for this time step : check if Gurson is more restrictive
double
yieldGurson
=
_mlawGrowth
->
yieldFunction
(
kcorEq
,
pcor
,
R
,
yieldfV
,
q0
,
q1
,
T
);
double
yieldGurson
=
_mlawGrowth
->
yieldFunction
(
kcorEq
,
pcor
,
R
,
yieldfV
,
q0
,
q1
,
T
);
...
@@ -498,11 +506,10 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
...
@@ -498,11 +506,10 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
q1Thom
->
getRefToCoalescenceActiveFlag
()
=
true
;
// Thomason will be used at the next time step
q1Thom
->
getRefToCoalescenceActiveFlag
()
=
true
;
// Thomason will be used at the next time step
q1Thom
->
getRefToAccelerateRate
()
=
1.0
;
q1Thom
->
getRefToAccelerateRate
()
=
1.0
;
if
(
_CfTOffsetMethod
==
3
){
//if (_CfTOffsetMethod == 3){
q1Thom
->
getRefToCrackOffsetOnCft
()
=
q0Thom
->
getCrackOffsetOnCft
()
+
yieldThomason
*
R0
/
(
Cft
*
R
);
// q1Thom->getRefToCrackOffsetOnCft() = q0Thom->getCrackOffsetOnCft() + yieldThomason*R0/(Cft*R);
// if (q1Thom->getRefToCrackOffsetOnCft() > 2.){Msg::Error("High predicted value of Cft Offset = %e",q1Thom->getRefToCrackOffsetOnCft());};
if
(
q1Thom
->
getRefToCrackOffsetOnCft
()
>
2.
){
Msg
::
Error
(
"High predicted value of Cft Offset = %e"
,
q1Thom
->
getRefToCrackOffsetOnCft
());};
//}
}
}
}
else
{
else
{
...
@@ -512,6 +519,7 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
...
@@ -512,6 +519,7 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
}
}
}
}
}
}
}
else
else
{
{
// In the bulk:
// In the bulk:
...
...
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