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

Go to the source code of this file.

Functions/Subroutines

subroutine norshell3 (xi, et, xl, xnor)
 

Function/Subroutine Documentation

◆ norshell3()

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