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

Go to the source code of this file.

Functions/Subroutines

subroutine electricalconductivitys (inpc, textpart, alcon, nalcon, alzero, nmat, ntmat_, irstrt, istep, istat, n, iline, ipol, inl, ipoinp, inp, ipoinpc)
 

Function/Subroutine Documentation

◆ electricalconductivitys()

subroutine electricalconductivitys ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
real*8, dimension(0:6,ntmat_,*)  alcon,
integer, dimension(2,*)  nalcon,
real*8, dimension(*)  alzero,
integer  nmat,
integer  ntmat_,
integer  irstrt,
integer  istep,
integer  istat,
integer  n,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(0:*)  ipoinpc 
)
22 !
23 ! reading the input deck: *ELECTRICAL CONDUCTIVITY
24 !
25  implicit none
26 !
27  character*1 inpc(*)
28  character*132 textpart(16)
29 !
30  integer nalcon(2,*),nmat,ntmat,ntmat_,istep,istat,n,
31  & ipoinpc(0:*),
32  & i,ityp,key,irstrt,iline,ipol,inl,ipoinp(2,*),inp(3,*)
33 !
34  real*8 alcon(0:6,ntmat_,*),alzero(*)
35 !
36  ntmat=0
37  alzero(nmat)=0.d0
38 !
39  if((istep.gt.0).and.(irstrt.ge.0)) then
40  write(*,*) '*ERROR reading *ELECTRICAL CONDUCTIVITY:'
41  write(*,*) ' *ELECTRICAL CONDUCTIVITY should be placed'
42  write(*,*) ' before all step definitions'
43  call exit(201)
44  endif
45 !
46  if(nmat.eq.0) then
47  write(*,*) '*ERROR reading *ELECTRICAL CONDUCTIVITY:'
48  write(*,*) ' *ELECTRICAL CONDUCTIVITY should be preceded'
49  write(*,*) ' by a *MATERIAL card'
50  call exit(201)
51  endif
52 !
53  ityp=1
54 !
55  do i=2,n
56  if(textpart(i)(1:5).eq.'TYPE=') then
57  if(textpart(i)(6:8).eq.'ISO') then
58  ityp=1
59  endif
60  else
61  write(*,*) '*WARNING reading *ELECTRICAL CONDUCTIVITY:'
62  write(*,*) ' parameter not recognized:'
63  write(*,*) ' ',
64  & textpart(i)(1:index(textpart(i),' ')-1)
65  call inputwarning(inpc,ipoinpc,iline,
66  &"*ELECTRICAL CONDUCTIVITY%")
67  endif
68  enddo
69 !
70  nalcon(1,nmat)=ityp
71 !
72  if(ityp.eq.1) then
73  do
74  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
75  & ipoinp,inp,ipoinpc)
76  if((istat.lt.0).or.(key.eq.1)) return
77  ntmat=ntmat+1
78  nalcon(2,nmat)=ntmat
79  if(ntmat.gt.ntmat_) then
80  write(*,*) '*ERROR reading *ELECTRICAL CONDUCTIVITY:'
81  write(*,*) ' increase ntmat_'
82  call exit(201)
83  endif
84  do i=1,1
85  read(textpart(i)(1:20),'(f20.0)',iostat=istat)
86  & alcon(i,ntmat,nmat)
87  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
88  &"*ELECTRICAL CONDUCTIVITY%")
89  enddo
90  read(textpart(2)(1:20),'(f20.0)',iostat=istat)
91  & alcon(0,ntmat,nmat)
92  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
93  &"*ELECTRICAL CONDUCTIVITY%")
94  enddo
95  else
96  write(*,*) '*ERROR reading *ELECTRICAL CONDUCTIVITY:'
97  write(*,*) ' no anisotropy allowed'
98  call exit(201)
99  endif
100 !
101  return
subroutine inputwarning(inpc, ipoinpc, iline, text)
Definition: inputwarning.f:20
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21
subroutine inputerror(inpc, ipoinpc, iline, text)
Definition: inputerror.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)