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
daa3311d
Commit
daa3311d
authored
13 years ago
by
Dave Whipp
Browse files
Options
Downloads
Patches
Plain Diff
Removed compute_plastic_params subroutine; Placed in a separate file
parent
ea1d1481
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/vrm.f90
+1
-89
1 addition, 89 deletions
src/vrm.f90
with
1 addition
and
89 deletions
src/vrm.f90
+
1
−
89
View file @
daa3311d
...
...
@@ -349,92 +349,4 @@ end select
return
end
!-------------------------------------------------------------------------------
!-------------------------------------------------------------------------------
subroutine
compute_plastic_params
(
params
,
mat
)
use
constants
use
definitions
!use mpi
implicit
none
include
'mpif.h'
type
(
parameters
)
params
type
(
material
)
::
mat
(
0
:
params
%
nmat
)
double precision
c
,
k
,
alpha
,
phi
integer
i
,
iproc
,
nproc
,
ierr
call
mpi_comm_size
(
mpi_comm_world
,
nproc
,
ierr
)
call
mpi_comm_rank
(
mpi_comm_world
,
iproc
,
ierr
)
do
i
=
0
,
params
%
nmat
select
case
(
trim
(
mat
(
i
)
%
plasticity_type
))
case
(
'No'
)
case
(
'vM'
)
case
(
'DPI'
)
phi
=
mat
(
i
)
%
plasticity_parameters
(
1
)
*
pi
/
180.d0
c
=
mat
(
i
)
%
plasticity_parameters
(
2
)
alpha
=
(
2.d0
*
sin
(
phi
))
/(
sqrt
(
3.d0
)
*
(
3.d0
-
sin
(
phi
)))
k
=
(
6.d0
*
c
*
cos
(
phi
))/(
sqrt
(
3.d0
)
*
(
3.d0
-
sin
(
phi
)))
mat
(
i
)
%
plasticity_parameters
(
8
)
=
alpha
mat
(
i
)
%
plasticity_parameters
(
9
)
=
k
case
(
'DPII'
)
phi
=
mat
(
i
)
%
plasticity_parameters
(
1
)
*
pi
/
180.d0
c
=
mat
(
i
)
%
plasticity_parameters
(
2
)
alpha
=
(
2.d0
*
sin
(
phi
))
/(
sqrt
(
3.d0
)
*
(
3.d0
+
sin
(
phi
)))
k
=
(
6.d0
*
c
*
cos
(
phi
))/(
sqrt
(
3.d0
)
*
(
3.d0
+
sin
(
phi
)))
mat
(
i
)
%
plasticity_parameters
(
8
)
=
alpha
mat
(
i
)
%
plasticity_parameters
(
9
)
=
k
case
(
'DPIII'
)
phi
=
mat
(
i
)
%
plasticity_parameters
(
1
)
*
pi
/
180.d0
c
=
mat
(
i
)
%
plasticity_parameters
(
2
)
alpha
=
(
2.d0
*
sin
(
phi
))
/(
sqrt
(
3.d0
)
*
3.d0
)
k
=
(
6.d0
*
c
*
cos
(
phi
))/(
sqrt
(
3.d0
)
*
3.d0
)
mat
(
i
)
%
plasticity_parameters
(
8
)
=
alpha
mat
(
i
)
%
plasticity_parameters
(
9
)
=
k
case
(
'DPIV'
)
phi
=
mat
(
i
)
%
plasticity_parameters
(
1
)
*
pi
/
180.d0
c
=
mat
(
i
)
%
plasticity_parameters
(
2
)
alpha
=
tan
(
phi
)/(
sqrt
(
9.d0+12.d0
*
(
tan
(
phi
))
**
2.d0
))
k
=
(
3.d0
*
c
)/(
sqrt
(
9.d0+12.d0
*
(
tan
(
phi
))
**
2.d0
))
mat
(
i
)
%
plasticity_parameters
(
8
)
=
alpha
mat
(
i
)
%
plasticity_parameters
(
9
)
=
k
case
(
'DPV'
)
case
(
'DPVI'
)
phi
=
mat
(
i
)
%
plasticity_parameters
(
1
)
*
pi
/
180.d0
mat
(
i
)
%
plasticity_parameters
(
8
)
=
tan
(
phi
)
case
(
'DPVII'
)
phi
=
mat
(
i
)
%
plasticity_parameters
(
1
)
*
pi
/
180.d0
mat
(
i
)
%
plasticity_parameters
(
8
)
=
sin
(
phi
)
mat
(
i
)
%
plasticity_parameters
(
9
)
=
cos
(
phi
)
case
(
'MC'
)
phi
=
mat
(
i
)
%
plasticity_parameters
(
1
)
*
pi
/
180.d0
mat
(
i
)
%
plasticity_parameters
(
8
)
=
sin
(
phi
)
mat
(
i
)
%
plasticity_parameters
(
9
)
=
cos
(
phi
)
case
(
'Tresca'
)
case
default
call
stop_run
(
'error in compute_plastic_params$'
)
end
select
if
(
iproc
.eq.
0
)
then
write
(
8
,
*
)
'material '
,
i
,
'plasticity_type '
,
mat
(
i
)
%
plasticity_type
write
(
8
,
*
)
'plasticity_parameters'
,
mat
(
i
)
%
plasticity_parameters
(:)
end
if
end
do
return
end
!-------------------------------------------------------------------------------
\ 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