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
e1b2d564
Commit
e1b2d564
authored
14 years ago
by
Dave Whipp
Browse files
Options
Downloads
Patches
Plain Diff
Edited subroutine names to not conflict with make_cut.f90
parent
9a38e06f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pressure_cut.f90
+12
-12
12 additions, 12 deletions
src/pressure_cut.f90
with
12 additions
and
12 deletions
src/pressure_cut.f90
+
12
−
12
View file @
e1b2d564
...
@@ -98,19 +98,19 @@ do i=1,nlsf
...
@@ -98,19 +98,19 @@ do i=1,nlsf
if
(
prod
*
lsf
(
k
,
i
)
.le.
0.d0
.and.
icut
.eq.
0
)
then
if
(
prod
*
lsf
(
k
,
i
)
.le.
0.d0
.and.
icut
.eq.
0
)
then
icut
=
1
icut
=
1
allocate
(
vol_lsf
(
nlsf
),
stat
=
err
)
;
if
(
err
.ne.
0
)
call
stop_run
(
'Error alloc vol_lsf in make_cut$'
)
allocate
(
vol_lsf
(
nlsf
),
stat
=
err
)
;
if
(
err
.ne.
0
)
call
stop_run
(
'Error alloc vol_lsf in make_cut$'
)
call
get_mat_volume
(
params
,
nlsf
,
lsf
,
vol_lsf
,
vol_lsf0
)
call
get_mat_volume
_pc
(
params
,
nlsf
,
lsf
,
vol_lsf
,
vol_lsf0
)
if
(
vol_lsf0
.gt.
eps
.or.
level
.gt.
0
)
matrule
=
0
if
(
vol_lsf0
.gt.
eps
.or.
level
.gt.
0
)
matrule
=
0
if
(
matrule
.eq.
1
.or.
matrule
.eq.
2
)
then
! Use majority or minority rule
if
(
matrule
.eq.
1
.or.
matrule
.eq.
2
)
then
! Use majority or minority rule
call
set_elem_props
(
params
,
mat
,
matrule
,
nlsf
,
nnode
,
icon
,
level
,
&
call
set_elem_props
_pc
(
params
,
mat
,
matrule
,
nlsf
,
nnode
,
icon
,
level
,
&
materialn
,
vol_lsf
,
vol_lsf0
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
&
materialn
,
vol_lsf
,
vol_lsf0
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
&
pressure
,
strain
,
r0
,
s0
,
t0
,
rst
,
eviscosity
)
pressure
,
strain
,
r0
,
s0
,
t0
,
rst
,
eviscosity
)
else
! Use divFEM
else
! Use divFEM
if
(
level
.eq.
levelmax
)
then
if
(
level
.eq.
levelmax
)
then
call
set_elem_props
(
params
,
mat
,
matrule
,
nlsf
,
nnode
,
icon
,
level
,
&
call
set_elem_props
_pc
(
params
,
mat
,
matrule
,
nlsf
,
nnode
,
icon
,
level
,
&
materialn
,
vol_lsf
,
vol_lsf0
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
&
materialn
,
vol_lsf
,
vol_lsf0
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
&
pressure
,
strain
,
r0
,
s0
,
t0
,
rst
,
eviscosity
)
pressure
,
strain
,
r0
,
s0
,
t0
,
rst
,
eviscosity
)
else
else
call
divide_element
(
params
,
mat
,
level
,
levelmax
,
nlsf
,
nnode
,
icon
,
&
call
divide_element
_pc
(
params
,
mat
,
level
,
levelmax
,
nlsf
,
nnode
,
icon
,
&
ileaves
,
materialn
,
lsf
,
r0
,
s0
,
t0
,
rst
,
x
,
y
,
z
,
u
,
v
,
w
,
&
ileaves
,
materialn
,
lsf
,
r0
,
s0
,
t0
,
rst
,
x
,
y
,
z
,
u
,
v
,
w
,
&
temp
,
pressure
,
strain
,
eviscosity
)
temp
,
pressure
,
strain
,
eviscosity
)
endif
endif
...
@@ -136,7 +136,7 @@ end subroutine pressure_cut
...
@@ -136,7 +136,7 @@ end subroutine pressure_cut
!-------------------------------------------------------------------------------
!-------------------------------------------------------------------------------
subroutine
get_mat_volume
(
params
,
nlsf
,
lsf
,
vol_lsf
,
vol_lsf0
)
subroutine
get_mat_volume
_pc
(
params
,
nlsf
,
lsf
,
vol_lsf
,
vol_lsf0
)
use
definitions
use
definitions
...
@@ -177,13 +177,13 @@ do i=1,nlsf
...
@@ -177,13 +177,13 @@ do i=1,nlsf
enddo
enddo
vol_lsf0
=
1.d0
-
sum
(
vol_lsf
)
vol_lsf0
=
1.d0
-
sum
(
vol_lsf
)
end
subroutine
get_mat_volume
end
subroutine
get_mat_volume
_pc
!-------------------------------------------------------------------------------
!-------------------------------------------------------------------------------
subroutine
set_elem_props
(
params
,
mat
,
matrule
,
nlsf
,
nnode
,
icon
,
level
,
materialn
,
&
subroutine
set_elem_props
_pc
(
params
,
mat
,
matrule
,
nlsf
,
nnode
,
icon
,
level
,
&
vol_lsf
,
vol_lsf0
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
pressure
,
strain
,
r0
,
&
materialn
,
vol_lsf
,
vol_lsf0
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
&
s0
,
t0
,
rst
,
eviscosity
)
pressure
,
strain
,
r0
,
s0
,
t0
,
rst
,
eviscosity
)
use
definitions
use
definitions
...
@@ -271,11 +271,11 @@ call make_pressure (params,icon,x,y,z,viscosity,penal,expon,u,v,w,temp, &
...
@@ -271,11 +271,11 @@ call make_pressure (params,icon,x,y,z,viscosity,penal,expon,u,v,w,temp, &
pressure
=
pressure
+
pressurep
/(
8.d0
**
level
)
pressure
=
pressure
+
pressurep
/(
8.d0
**
level
)
end
subroutine
set_elem_props
end
subroutine
set_elem_props
_pc
!-------------------------------------------------------------------------------
!-------------------------------------------------------------------------------
subroutine
divide_element
(
params
,
mat
,
level
,
levelmax
,
nlsf
,
nnode
,
icon
,
ileaves
,
&
subroutine
divide_element
_pc
(
params
,
mat
,
level
,
levelmax
,
nlsf
,
nnode
,
icon
,
ileaves
,&
materialn
,
lsf
,
r0
,
s0
,
t0
,
rst
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
pressure
,
&
materialn
,
lsf
,
r0
,
s0
,
t0
,
rst
,
x
,
y
,
z
,
u
,
v
,
w
,
temp
,
pressure
,
&
strain
,
eviscosity
)
strain
,
eviscosity
)
...
@@ -363,7 +363,7 @@ enddo
...
@@ -363,7 +363,7 @@ enddo
deallocate
(
lsfp
)
deallocate
(
lsfp
)
end
subroutine
divide_element
end
subroutine
divide_element
_pc
!-------------------------------------------------------------------------------
!-------------------------------------------------------------------------------
!-------------------------------------------------------------------------------
!-------------------------------------------------------------------------------
\ 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