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

Go to the source code of this file.

Functions/Subroutines

subroutine equcons (inpc, textpart, istep, istat, n, iline, ipol, inl, ipoinp, inp, ipoinpc, equcon, equbou)
 

Function/Subroutine Documentation

◆ equcons()

subroutine equcons ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
integer  istep,
integer  istat,
integer  n,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(0:*)  ipoinpc,
character*81, dimension(2)  equcon,
real*8  equbou 
)
21 !
22 ! reading the input deck: *EQUALITY CONSTRAINTS
23 !
24 ! criteria: MASS
25 ! STRESS
26 ! DISPLACEMENT
27 !
28  implicit none
29 !
30  character*1 inpc(*)
31  character*132 textpart(16)
32  character*81 equcon(2)
33 !
34  integer istep,istat,n,key,i,iline,ipol,inl,ipoinp(2,*),
35  & inp(3,*),ipoinpc(0:*)
36 !
37  real*8 equbou
38 !
39  if(istep.lt.1) then
40  write(*,*) '*ERROR reading *EQUALITY CONSTRAINTS:
41  &*EQUALITY CONSTRAINTS can only be used within a SENSITIVITY STEP'
42  call exit(201)
43  endif
44 !
45  do i=2,n
46  if(textpart(i)(1:9).eq.'CRITERIA=') then
47  read(textpart(i)(10:85),'(a80)',iostat=istat)
48  & equcon(1)(1:80)
49  elseif(textpart(i)(1:7).eq.'ENTITY=') then
50  read(textpart(i)(8:85),'(a80)',iostat=istat)
51  & equcon(2)(1:80)
52  endif
53  enddo
54 !
55  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
56  & ipoinp,inp,ipoinpc)
57 !
58  read(textpart(1)(1:20),'(f20.0)',iostat=istat) equbou
59 !
60  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
61  & ipoinp,inp,ipoinpc)
62 !
63  return
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21
Hosted by OpenAircraft.com, (Michigan UAV, LLC)