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
Karsten Rink
ogs
Commits
666d456e
Commit
666d456e
authored
6 years ago
by
fparisio1
Committed by
Dmitri Naumov
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[PL] SDN; Damage calculations.
parent
a0fe5922
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/SmallDeformationNonlocal/Damage.h
+78
-0
78 additions, 0 deletions
ProcessLib/SmallDeformationNonlocal/Damage.h
ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h
+3
-1
3 additions, 1 deletion
...ib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h
with
81 additions
and
1 deletion
ProcessLib/SmallDeformationNonlocal/Damage.h
0 → 100644
+
78
−
0
View file @
666d456e
/**
* \file
*
* \copyright
* Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include
<Eigen/Eigenvalues>
#include
<logog/include/logog.hpp>
#include
"MaterialLib/SolidModels/Ehlers.h"
namespace
ProcessLib
{
namespace
SmallDeformationNonlocal
{
/// Computes the damage internal material variable explicitly based on the
/// results obtained from the local stress return algorithm.
inline
double
calculateDamage
(
double
const
kappa_d
,
double
const
alpha_d
,
double
const
beta_d
)
{
double
const
damage
=
(
1
-
beta_d
)
*
(
1
-
std
::
exp
(
-
kappa_d
/
alpha_d
));
if
(
damage
<
0.
||
damage
>=
1.
)
{
OGS_FATAL
(
"Damage value %g outside of [0,1) interval."
,
damage
);
}
return
damage
;
}
template
<
int
DisplacementDim
,
typename
KelvinVectorType
>
double
calculateDamageKappaD
(
double
const
eps_p_eff_diff
,
KelvinVectorType
const
&
sigma
,
double
const
kappa_d_prev
,
double
const
h_d
,
MaterialLib
::
Solids
::
Ehlers
::
MaterialProperties
const
&
mp
)
{
// Default case of the rate problem. Updated below if volumetric plastic
// strain rate is positive (dilatancy).
// non-const for Eigen solver.
auto
sigma_tensor
=
MathLib
::
KelvinVector
::
kelvinVectorToTensor
(
sigma
);
Eigen
::
EigenSolver
<
decltype
(
sigma_tensor
)
>
eigen_solver
(
sigma_tensor
);
auto
const
principal_stress
=
real
(
eigen_solver
.
eigenvalues
().
array
());
double
const
prod_stress
=
std
::
sqrt
(
principal_stress
.
square
().
sum
());
// Brittleness decrease with confinement for the nonlinear flow rule.
// ATTENTION: For linear flow rule -> constant brittleness.
double
const
tensile_strength
=
std
::
sqrt
(
3.0
)
*
mp
.
kappa
/
(
1
+
std
::
sqrt
(
3.0
)
*
mp
.
beta
);
double
const
r_s
=
prod_stress
/
tensile_strength
-
1.
;
// Compute normalizing strain.
double
const
x_s
=
[](
double
const
h_d
,
double
const
r_s
)
{
if
(
r_s
<
0
)
{
return
1.
;
}
if
(
r_s
<=
1
)
{
return
1.
+
h_d
*
r_s
*
r_s
;
}
return
1.
-
3
*
h_d
+
4
*
h_d
*
std
::
sqrt
(
r_s
);
}(
h_d
,
r_s
);
return
kappa_d_prev
+
eps_p_eff_diff
/
x_s
;
}
}
// namespace SmallDeformationNonlocal
}
// namespace ProcessLib
This diff is collapsed.
Click to expand it.
ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h
+
3
−
1
View file @
666d456e
...
@@ -362,7 +362,9 @@ public:
...
@@ -362,7 +362,9 @@ public:
// Compute sigma_eff from damage total stress sigma
// Compute sigma_eff from damage total stress sigma
using
KelvinVectorType
=
typename
BMatricesType
::
KelvinVectorType
;
using
KelvinVectorType
=
typename
BMatricesType
::
KelvinVectorType
;
KelvinVectorType
const
sigma_eff_prev
=
KelvinVectorType
const
sigma_eff_prev
=
sigma_prev
/
(
1.
-
damage_prev
);
sigma_prev
/
(
1.
-
damage_prev
);
// damage_prev is in [0,1) range. See
// calculateDamage() function.
auto
&&
solution
=
_ip_data
[
ip
].
solid_material
.
integrateStress
(
auto
&&
solution
=
_ip_data
[
ip
].
solid_material
.
integrateStress
(
t
,
x_position
,
_process_data
.
dt
,
eps_prev
,
eps
,
sigma_eff_prev
,
t
,
x_position
,
_process_data
.
dt
,
eps_prev
,
eps
,
sigma_eff_prev
,
...
...
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