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

Go to the source code of this file.

Functions/Subroutines

subroutine norshell6 (xi, et, xl, xnor)
 

Function/Subroutine Documentation

◆ norshell6()

subroutine norshell6 ( real*8  xi,
real*8  et,
real*8, dimension(3,6)  xl,
real*8, dimension(3)  xnor 
)
20 !
21 ! calculates the normal on a triangular 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,6),xs(3,2),xl(3,6),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)=4.d0*(xi+et)-3.d0
39  shp(1,2)=4.d0*xi-1.d0
40  shp(1,3)=0.d0
41  shp(1,4)=4.d0*(1.d0-2.d0*xi-et)
42  shp(1,5)=4.d0*et
43  shp(1,6)=-4.d0*et
44 !
45 ! local derivatives of the shape functions: eta-derivative
46 !
47  shp(2,1)=4.d0*(xi+et)-3.d0
48  shp(2,2)=0.d0
49  shp(2,3)=4.d0*et-1.d0
50  shp(2,4)=-4.d0*xi
51  shp(2,5)=4.d0*xi
52  shp(2,6)=4.d0*(1.d0-xi-2.d0*et)
53 !
54 ! computation of the local derivative of the global coordinates
55 ! (xs)
56 !
57  do i=1,3
58  do j=1,2
59  xs(i,j)=0.d0
60  do k=1,6
61  xs(i,j)=xs(i,j)+xl(i,k)*shp(j,k)
62  enddo
63  enddo
64  enddo
65 !
66 ! computation of the jacobian determinant
67 !
68  xnor(1)=xs(2,1)*xs(3,2)-xs(3,1)*xs(2,2)
69  xnor(2)=xs(1,2)*xs(3,1)-xs(3,2)*xs(1,1)
70  xnor(3)=xs(1,1)*xs(2,2)-xs(2,1)*xs(1,2)
71 !
72  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)