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

Go to the source code of this file.

Functions/Subroutines

subroutine norshell4 (xi, et, xl, xnor)
 

Function/Subroutine Documentation

◆ norshell4()

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