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

Go to the source code of this file.

Functions/Subroutines

subroutine writeobj (objectset, iobject, g0)
 

Function/Subroutine Documentation

◆ writeobj()

subroutine writeobj ( character*81, dimension(4,*)  objectset,
integer  iobject,
real*8, dimension(*)  g0 
)
20 !
21 ! writes the results of the objective function in the .dat file
22 !
23  implicit none
24 !
25  character*81 objectset(4,*)
26  integer iobject,i
27  real*8 g0(*)
28 !
29  i=iobject+1
30 !
31  if(objectset(1,i)(1:12).eq.'DISPLACEMENT') then
32  write(5,*)
33  write(5,*)'OBJECTIVE: DISPLACEMENT'
34  write(5,*)
35  write(5,'(7x,e14.7)') g0(i)
36 !
37  elseif(objectset(1,i)(1:14).eq.'EIGENFREQUENCY') then
38  write(5,*)
39  write(5,*)'OBJECTIVE: EIGENFREQUENCY'
40  write(5,*)
41  write(5,'(7x,e14.7)') g0(i)
42 !
43  elseif(objectset(1,i)(1:4).eq.'MASS') then
44  write(5,*)
45  write(5,*)'OBJECTIVE: MASS'
46  write(5,*)
47  write(5,'(7x,e14.7)') g0(i)
48 !
49  elseif(objectset(1,i)(1:11).eq.'SHAPEENERGY') then
50  write(5,*)
51  write(5,*)'OBJECTIVE: SHAPE ENERGY'
52  write(5,*)
53  write(5,'(7x,e14.7)') g0(i)
54 !
55  elseif(objectset(1,i)(1:6).eq.'STRESS') then
56  write(5,*)
57  write(5,*)'OBJECTIVE: STRESS'
58  write(5,*)
59  write(5,'(7x,e14.7)') g0(i)
60 !
61  elseif(objectset(1,i)(1:9).eq.'THICKNESS') then
62  write(5,*)
63  write(5,*)'OBJECTIVE: THICKNESS'
64  write(5,*)
65  write(5,'(7x,e14.7)') g0(i)
66 !
67  endif
68 !
69  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)