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
814b75e6
Commit
814b75e6
authored
14 years ago
by
Dave Whipp
Browse files
Options
Downloads
Patches
Plain Diff
Added option of using 2D strain rate invariants and removed some commented lines
parent
52b5ef57
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/improve_osolve.f90
+15
-21
15 additions, 21 deletions
src/improve_osolve.f90
with
15 additions
and
21 deletions
src/improve_osolve.f90
+
15
−
21
View file @
814b75e6
...
@@ -16,27 +16,24 @@
...
@@ -16,27 +16,24 @@
!------------------------------------------------------------------------------|
!------------------------------------------------------------------------------|
!------------------------------------------------------------------------------|
!------------------------------------------------------------------------------|
subroutine
improve_osolve
(
osolve
,
ov
,
params
,
threadinfo
,
istep
,
iter
,
total
,
step
,
&
subroutine
improve_osolve
(
osolve
,
ov
,
params
,
threadinfo
,
istep
,
iter
,
total
,
step
,
&
inc
,
refine_level
,
&
inc
,
refine_level
,
boxes
,
cube_faces
,
&
boxes
,
cube_faces
,
increase_current_level
)
increase_current_level
)
!------------------------------------------------------------------------------|
!------------------------------------------------------------------------------|
!(((((((((((((((( Purpose of the routine ))))))))))))))))))))))))))))))))))))))
!(((((((((((((((( Purpose of the routine ))))))))))))))))))))))))))))))))))))))
!------------------------------------------------------------------------------|
!------------------------------------------------------------------------------|
! this routine calculates the second invariant of the strain rate,
! this routine calculates the second invariant of the strain rate, and a value
! and a value for the criterion used by the improve_octree subroutine,
! for the criterion used by the improve_octree subroutine, inside each element
! inside each element by using the velocity information at the nodes.
! by using the velocity information at the nodes. Then, the routine improves the
! Then, the routine improves the osolve on which the solution is calculated
! osolve on which the solution is calculated. Also, it refines the octree if the
! Also, it refines the octree if the user has defined a box (or several boxes) in which the
! user has defined a box (or several boxes) in which the octree is artificially
! octree is artificially refined to a desired level. boxes and nboxes are read
! refined to a desired level. boxes and nboxes are read from the input file.
! from the input file.
! The routine then refines user supplied rectangular areas of each of the six
! The routine then refines user supplied rectangular areas of each of the six
! faces of the cubic simulation domain. The information are stored in
! faces of the cubic simulation domain. The information are stored in cube_faces
! cube_faces read from the input file.
! read from the input file. Finally, the octree is smoothed and super-smoothed
! Finally, the octree is smoothed
! if the user has set ismooth to 1
! and super-smoothed if the user has set ismooth to 1
!
! ov is the velocity octree containing the velocity solution
! ov is the velocity octree containing the velocity solution
! osolve is the octree to be improved
! osolve is the octree to be improved
! refine_ratio is a parameter read in input.txt. When multiplied by the
! refine_ratio is a parameter read in input.txt. When multiplied by the
...
@@ -151,12 +148,9 @@ do i=1+iproc,ov%nleaves,nproc
...
@@ -151,12 +148,9 @@ do i=1+iproc,ov%nleaves,nproc
exy
=
exy
+
(
dhdx
(
k
)
*
vy
(
k
)
+
dhdy
(
k
)
*
vx
(
k
))/
2.d0
exy
=
exy
+
(
dhdx
(
k
)
*
vy
(
k
)
+
dhdy
(
k
)
*
vx
(
k
))/
2.d0
eyz
=
eyz
+
(
dhdy
(
k
)
*
vz
(
k
)
+
dhdz
(
k
)
*
vy
(
k
))/
2.d0
eyz
=
eyz
+
(
dhdy
(
k
)
*
vz
(
k
)
+
dhdz
(
k
)
*
vy
(
k
))/
2.d0
ezx
=
ezx
+
(
dhdz
(
k
)
*
vx
(
k
)
+
dhdx
(
k
)
*
vz
(
k
))/
2.d0
ezx
=
ezx
+
(
dhdz
(
k
)
*
vx
(
k
)
+
dhdx
(
k
)
*
vz
(
k
))/
2.d0
! exy=exy+(dhdx(k)*vy(k)-dhdy(k)*vx(k))/2.d0
! eyz=eyz+(dhdy(k)*vz(k)-dhdz(k)*vy(k))/2.d0
! ezx=ezx+(dhdz(k)*vx(k)-dhdx(k)*vz(k))/2.d0
enddo
enddo
call
deviatoric
(
exx
,
eyy
,
ezz
,
exy
,
eyz
,
ezx
)
call
deviatoric
(
params
%
invariants_2d
,
exx
,
eyy
,
ezz
,
exy
,
eyz
,
ezx
)
E2d
=
second_invariant
(
exx
,
eyy
,
ezz
,
exy
,
eyz
,
ezx
)
E2d
=
second_invariant
(
exx
,
eyy
,
ezz
,
exy
,
eyz
,
ezx
)
...
@@ -258,7 +252,7 @@ if (params%nboxes.gt.0) then
...
@@ -258,7 +252,7 @@ if (params%nboxes.gt.0) then
if
(
.not.
((
xxx
>=
x0
)
.and.
(
xxx
<=
x1
)
.and.
&
if
(
.not.
((
xxx
>=
x0
)
.and.
(
xxx
<=
x1
)
.and.
&
(
yyy
>=
y0
)
.and.
(
yyy
<=
y1
)
.and.
&
(
yyy
>=
y0
)
.and.
(
yyy
<=
y1
)
.and.
&
(
zzz
>=
z0
)
.and.
(
zzz
<=
z1
)))
call
stop_run
(
'pb with box cloud$'
)
(
zzz
>=
z0
)
.and.
(
zzz
<=
z1
)))
call
stop_run
(
'pb with box cloud$'
)
! if (iproc.eq.0) print*,i,j,k
! if (iproc.eq.0) print*,i,j,k
call
octree_create_from_particle
(
osolve
%
octree
,
osolve
%
noctree
,
xxx
,
yyy
,
zzz
,
1
,
level_box
)
call
octree_create_from_particle
(
osolve
%
octree
,
osolve
%
noctree
,
xxx
,
yyy
,
zzz
,
1
,
level_box
)
enddo
enddo
enddo
enddo
...
...
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