Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DOUAR WSMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
HUGG
DOUAR WSMP
Commits
6c027b02
Commit
6c027b02
authored
12 years ago
by
Dave Whipp
Browse files
Options
Downloads
Patches
Plain Diff
Renamed module_ss module_strain_soften to avoid name conflict
parent
cf6e351b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/module_ss.f90
+0
-76
0 additions, 76 deletions
src/module_ss.f90
with
0 additions
and
76 deletions
src/module_ss.f90
deleted
100644 → 0
+
0
−
76
View file @
cf6e351b
module
ss
implicit
none
contains
function
ss_new
(
ss_cur
,
ss_type
,
ss_onset
,
ss_end
,
ss_final
,
straintot
,
e2d
,
e2dprev
,&
error_flag
)
!------------------------------------------------------------------------------|
!(((((((((((((((( Purpose of the function )))))))))))))))))))))))))))))))))))))
!------------------------------------------------------------------------------|
! This function calculates strain softened values of either the angle of
! internal friction, cohesion/yield strength or viscosity as a function of
! total strain or strain rate
use
constants
!------------------------------------------------------------------------------|
!(((((((((((((((( declaration of the subroutine arguments ))))))))))))))))))))
!------------------------------------------------------------------------------|
implicit
none
double precision
::
ss_new
,
ss_cur
,
ss_onset
,
ss_end
,
ss_final
,
straintot
,
e2d
double precision
::
e2dprev
character
(
len
=
16
)
::
ss_type
logical
::
error_flag
!------------------------------------------------------------------------------|
!(((((((((((((((( declaration of the subroutine internal variables )))))))))))))
!------------------------------------------------------------------------------|
double precision
::
fact
! Apply strain softening/weakening if onset value is positive
if
(
ss_onset
.gt.
0.d0
)
then
! Set type of strain softening/weakening
select
case
(
trim
(
ss_type
))
case
(
'tot_strain'
)
! Soften if beyond onset value
if
(
straintot
.gt.
ss_onset
)
then
fact
=
(
straintot
-
ss_onset
)/(
ss_end
-
ss_onset
)
fact
=
min
(
fact
,
1.d0
)
ss_new
=
ss_cur
+
(
ss_final
-
ss_cur
)
*
fact
endif
case
(
'strain_rate'
)
! Soften cohesion if beyond onset value
if
(
e2d
.gt.
ss_onset
)
then
fact
=
(
e2d
-
ss_onset
)/(
ss_end
-
ss_onset
)
fact
=
min
(
fact
,
1.d0
)
ss_new
=
ss_cur
+
(
ss_final
-
ss_cur
)
*
fact
endif
case
(
'step_strain_rate'
)
! Soften cohesion if beyond onset value
if
(
e2dprev
.gt.
ss_onset
)
then
fact
=
(
e2dprev
-
ss_onset
)/(
ss_end
-
ss_onset
)
fact
=
min
(
fact
,
1.d0
)
ss_new
=
ss_cur
+
(
ss_final
-
ss_cur
)
*
fact
endif
case
(
'log_step_s_rate'
)
! Soften cohesion if beyond onset value
if
(
e2dprev
.gt.
ss_onset
)
then
fact
=
(
log10
(
e2dprev
)
-
log10
(
ss_onset
))/(
log10
(
ss_final
)
-
log10
(
ss_onset
))
fact
=
min
(
fact
,
1.d0
)
ss_new
=
ss_cur
+
(
ss_final
-
ss_cur
)
*
fact
endif
case
default
write
(
*
,
*
)
'ss_type: '
,
ss_type
call
stop_run
(
'error in strain_soften$'
)
error_flag
=
.true.
end
select
endif
end
function
ss_new
end
module
ss
\ No newline at end of file
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