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

Go to the source code of this file.

Functions/Subroutines

subroutine norshell8 (xi, et, xl, xnor)
 

Function/Subroutine Documentation

◆ norshell8()

subroutine norshell8 ( real*8  xi,
real*8  et,
real*8, dimension(3,8)  xl,
real*8, dimension(3)  xnor 
)
20 !
21 ! calculates the normal on a quadratic shell element in a point
22 ! with local coordinates xi and et. The coordinates of the nodes
23 ! belonging to the element are stored in xl
24 !
25  implicit none
26 !
27  integer i,j,k
28 !
29  real*8 shp(4,8),xs(3,2),xl(3,8),xnor(3)
30 !
31  real*8 xi,et
32 !
33 ! shape functions and their glocal derivatives for an element
34 ! described with two local parameters and three global ones.
35 !
36 ! local derivatives of the shape functions: xi-derivative
37 !
38  shp(1,1)=(1.d0-et)*(2.d0*xi+et)/4.d0
39  shp(1,2)=(1.d0-et)*(2.d0*xi-et)/4.d0
40  shp(1,3)=(1.d0+et)*(2.d0*xi+et)/4.d0
41  shp(1,4)=(1.d0+et)*(2.d0*xi-et)/4.d0
42  shp(1,5)=-xi*(1.d0-et)
43  shp(1,6)=(1.d0-et*et)/2.d0
44  shp(1,7)=-xi*(1.d0+et)
45  shp(1,8)=-(1.d0-et*et)/2.d0
46 !
47 ! local derivatives of the shape functions: eta-derivative
48 !
49  shp(2,1)=(1.d0-xi)*(2.d0*et+xi)/4.d0
50  shp(2,2)=(1.d0+xi)*(2.d0*et-xi)/4.d0
51  shp(2,3)=(1.d0+xi)*(2.d0*et+xi)/4.d0
52  shp(2,4)=(1.d0-xi)*(2.d0*et-xi)/4.d0
53  shp(2,5)=-(1.d0-xi*xi)/2.d0
54  shp(2,6)=-et*(1.d0+xi)
55  shp(2,7)=(1.d0-xi*xi)/2.d0
56  shp(2,8)=-et*(1.d0-xi)
57 !
58 ! computation of the local derivative of the global coordinates
59 ! (xs)
60 !
61  do i=1,3
62  do j=1,2
63  xs(i,j)=0.d0
64  do k=1,8
65  xs(i,j)=xs(i,j)+xl(i,k)*shp(j,k)
66  enddo
67  enddo
68  enddo
69 !
70 ! computation of the jacobian determinant
71 !
72  xnor(1)=xs(2,1)*xs(3,2)-xs(3,1)*xs(2,2)
73  xnor(2)=xs(1,2)*xs(3,1)-xs(3,2)*xs(1,1)
74  xnor(3)=xs(1,1)*xs(2,2)-xs(2,1)*xs(1,2)
75 !
76  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)