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

Go to the source code of this file.

Functions/Subroutines

subroutine mafillpbc (nef, au, ad, jq, irow, b, iatleastonepressurebc, nzs)
 

Function/Subroutine Documentation

◆ mafillpbc()

subroutine mafillpbc ( integer  nef,
real*8, dimension(*)  au,
real*8, dimension(*)  ad,
integer, dimension(*)  jq,
integer, dimension(*)  irow,
real*8, dimension(*)  b,
integer  iatleastonepressurebc,
integer  nzs 
)
21 !
22 ! filling the lhs and rhs to calculate p
23 !
24  implicit none
25 !
26  integer i,nef,irow(*),jq(*),iatleastonepressurebc,nzs
27 !
28  real*8 ad(*),au(*),b(*)
29 !
30 ! at least one pressure bc is needed. If none is applied,
31 ! the last dof is set to 0
32 !
33 ! a pressure bc is only recognized if not all velocity degrees of
34 ! freedom are prescribed on the same face
35 !
36 c write(*,*) 'mafillpbc', iatleastonepressurebc
37  if(iatleastonepressurebc.eq.0) then
38  ad(nef)=1.d0
39  b(nef)=0.d0
40  do i=2,nef
41  if(jq(i)-1>0) then
42  if(irow(jq(i)-1).eq.nef) then
43  au(jq(i)-1)=0.d0
44  endif
45  endif
46  enddo
47  endif
48 !
49 c do i=1,nzs
50 c write(*,*) 'mafillp irow,au',i,au(i)
51 c enddo
52 c do i=1,nef
53 c write(*,*) 'mafillp ad b',i,ad(i),b(i)
54 c enddo
55 !
56  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)