CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
negativepressure.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine negativepressure (ne0, ne, mi, stx, pressureratio)
 

Function/Subroutine Documentation

◆ negativepressure()

subroutine negativepressure ( integer  ne0,
integer  ne,
integer, dimension(*)  mi,
real*8, dimension(6,mi(1),*)  stx,
real*8  pressureratio 
)
20 !
21 ! calculating the ratio of the smallest pressure to the
22 ! largest pressure for face-to-face contact
23 ! if the pressure is somewhere negative, this ratio will
24 ! be negative
25 !
26  implicit none
27 !
28  integer ne0,ne,mi(*),i
29 !
30  real*8 stx(6,mi(1),*),presmin,presmax,pressureratio
31 !
32  presmax=0.d0
33  presmin=0.d0
34 !
35  do i=ne0+1,ne
36  if(stx(4,1,i).gt.presmax) then
37  presmax=stx(4,1,i)
38  elseif(stx(4,1,i).lt.presmin) then
39  presmin=stx(4,1,i)
40  endif
41  enddo
42  pressureratio=presmin/presmax
43 !
44  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)