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
9ae699d7
Commit
9ae699d7
authored
7 years ago
by
Ludovic Noels
Browse files
Options
Downloads
Patches
Plain Diff
add slope for p=0
parent
e76e1ff7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
NonLinearSolver/materialLaw/j2IsotropicHardening.cpp
+15
-8
15 additions, 8 deletions
NonLinearSolver/materialLaw/j2IsotropicHardening.cpp
NonLinearSolver/materialLaw/j2IsotropicHardening.h
+4
-3
4 additions, 3 deletions
NonLinearSolver/materialLaw/j2IsotropicHardening.h
with
19 additions
and
11 deletions
NonLinearSolver/materialLaw/j2IsotropicHardening.cpp
+
15
−
8
View file @
9ae699d7
...
...
@@ -78,10 +78,11 @@ J2IsotropicHardening * PerfectlyPlasticJ2IsotropicHardening::clone() const
return
new
PerfectlyPlasticJ2IsotropicHardening
(
*
this
);
}
PowerLawJ2IsotropicHardening
::
PowerLawJ2IsotropicHardening
(
const
int
num
,
double
yield0
,
double
h
,
double
hexp
,
const
bool
init
)
:
J2IsotropicHardening
(
num
,
yield0
,
init
),
_h
(
h
),
_hexp
(
hexp
)
PowerLawJ2IsotropicHardening
::
PowerLawJ2IsotropicHardening
(
const
int
num
,
double
yield0
,
double
h
,
double
hexp
,
double
pth
,
const
bool
init
)
:
J2IsotropicHardening
(
num
,
yield0
,
init
),
_h
(
h
),
_hexp
(
hexp
)
,
_pth
(
pth
)
{
if
(
_h
<
0
or
_hexp
<
0
)
Msg
::
Error
(
"PowerLawJ2IsotropicHardening: negative hardening parameters"
);
if
(
_h
<
0.
or
_hexp
<
0.
or
_pth
<
0.
)
Msg
::
Error
(
"PowerLawJ2IsotropicHardening: negative hardening parameters"
);
if
(
_pth
<
1.e-16
)
_pth
=
1.e-16
;
}
PowerLawJ2IsotropicHardening
::
PowerLawJ2IsotropicHardening
(
const
PowerLawJ2IsotropicHardening
&
source
)
:
...
...
@@ -89,6 +90,7 @@ PowerLawJ2IsotropicHardening::PowerLawJ2IsotropicHardening(const PowerLawJ2Isotr
{
_h
=
source
.
_h
;
_hexp
=
source
.
_hexp
;
_pth
=
source
.
_pth
;
}
PowerLawJ2IsotropicHardening
&
PowerLawJ2IsotropicHardening
::
operator
=
(
const
J2IsotropicHardening
&
source
)
...
...
@@ -99,6 +101,7 @@ PowerLawJ2IsotropicHardening& PowerLawJ2IsotropicHardening::operator=(const J2Is
{
_h
=
src
->
_h
;
_hexp
=
src
->
_hexp
;
_pth
=
src
->
_pth
;
}
return
*
this
;
}
...
...
@@ -111,12 +114,12 @@ void PowerLawJ2IsotropicHardening::createIPVariable(IPJ2IsotropicHardening* &ipv
void
PowerLawJ2IsotropicHardening
::
hardening
(
double
p
,
IPJ2IsotropicHardening
&
ipv
)
const
{
double
tol
=
1.e-16
;
//
double tol=1.e-16;
double
dR
=
0
,
ddR
=
0
,
intR
=
0
;
double
R
=
getYield0
();
if
(
p
<
tol
)
if
(
p
<
_pth
)
{
R
=
getYield0
();
/*
R=getYield0();
if(_h<1.)
{
dR = 1e20;
...
...
@@ -126,7 +129,11 @@ void PowerLawJ2IsotropicHardening::hardening(double p, IPJ2IsotropicHardening &i
{
dR = _h;
ddR = 0.;
}
}*/
R
=
getYield0
()
+
_h
*
pow
(
_pth
,
_hexp
)
/
_pth
*
p
;
dR
=
_h
*
pow
(
_pth
,
_hexp
)
/
_pth
;
ddR
=
0.
;
intR
=
getYield0
()
*
p
+
_h
*
pow
(
_pth
,
_hexp
)
/
_pth
*
p
*
p
/
2.
;
}
else
{
...
...
@@ -135,7 +142,7 @@ void PowerLawJ2IsotropicHardening::hardening(double p, IPJ2IsotropicHardening &i
ddR
=
dR
*
(
_hexp
-
1.
)
/
p
;
intR
=
getYield0
()
*
p
;
if
(
fabs
(
_hexp
+
1.
)
!=
0
)
intR
+=
_h
*
pow
(
p
,
_hexp
+
1.
)
/
(
_hexp
+
1.
);
intR
+=
_h
*
pow
(
_pth
,
_hexp
)
/
_pth
*
_pth
*
_pth
/
2.
+
_h
*
pow
(
p
,
_hexp
+
1.
)
/
(
_hexp
+
1.
)
-
_h
*
pow
(
_pth
,
_hexp
+
1.
)
/
(
_hexp
+
1.
);
}
ipv
.
set
(
R
,
dR
,
ddR
,
intR
);
}
...
...
This diff is collapsed.
Click to expand it.
NonLinearSolver/materialLaw/j2IsotropicHardening.h
+
4
−
3
View file @
9ae699d7
...
...
@@ -65,13 +65,14 @@ class PerfectlyPlasticJ2IsotropicHardening : public J2IsotropicHardening
class
PowerLawJ2IsotropicHardening
:
public
J2IsotropicHardening
{
// R = yield0 + h p^hexp
// R = yield0 + h p^hexp if p>pth
// R = yield0 + (h pth^hexp)/pth p if p<=pth
protected
:
double
_h
,
_hexp
;
double
_h
,
_hexp
,
_pth
;
public:
// constructor
PowerLawJ2IsotropicHardening
(
const
int
num
,
double
yield0
,
double
h
,
double
hexp
,
bool
init
=
true
);
PowerLawJ2IsotropicHardening
(
const
int
num
,
double
yield0
,
double
h
,
double
hexp
,
double
pth
=
1.e-16
,
bool
init
=
true
);
#ifndef SWIG
virtual
~
PowerLawJ2IsotropicHardening
(){}
PowerLawJ2IsotropicHardening
(
const
PowerLawJ2IsotropicHardening
&
source
);
...
...
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