12 integer,
parameter,
private :: MAXOUT = 256
13 integer,
parameter,
private :: MAXNAMELEN = 24
14 character(len=20),
parameter,
private :: OUTFILENAME =
"ifstr.out"
19 character(len=MAXNAMELEN) :: keyword(maxout)
20 integer :: vtype(maxout)
23 character(HECMW_NAME_LEN) :: grp_id_name
31 character(len=HECMW_NAME_LEN) :: filename
43 outinfo%grp_id_name =
"ALL"
45 outinfo%grp_elem = .false.
47 outinfo%on(:) = .false.
48 outinfo%num_items = 46
50 outinfo%keyWord(1) =
"DISP"
52 outinfo%on(1) = .true.
54 outinfo%keyWord(2) =
"REACTION"
57 outinfo%keyWord(3) =
"NSTRAIN"
60 outinfo%keyWord(4) =
"NSTRESS"
62 outinfo%on(4) = .true.
64 outinfo%keyWord(5) =
"NMISES"
66 outinfo%on(5) = .true.
68 outinfo%keyWord(6) =
"ESTRAIN"
71 outinfo%keyWord(7) =
"ESTRESS"
74 outinfo%keyWord(8) =
"EMISES"
77 outinfo%keyWord(9) =
"ISTRAIN"
80 outinfo%keyWord(10) =
"ISTRESS"
81 outinfo%vtype(10) = -3
83 outinfo%keyWord(11) =
"PL_ISTRAIN"
84 outinfo%vtype(11) = -1
86 outinfo%keyWord(12) =
"TH_NSTRAIN"
87 outinfo%vtype(12) = -3
89 outinfo%keyWord(13) =
"TH_ESTRAIN"
90 outinfo%vtype(13) = -3
92 outinfo%keyWord(14) =
"TH_ISTRAIN"
93 outinfo%vtype(14) = -3
95 outinfo%keyWord(15) =
"VEL"
96 outinfo%vtype(15) = -2
98 outinfo%keyWord(16) =
"ACC"
99 outinfo%vtype(16) = -2
101 outinfo%keyWord(17) =
"TEMP"
102 outinfo%vtype(17) = -1
104 outinfo%keyWord(18) =
"ROT"
105 outinfo%vtype(18) = -2
106 outinfo%on(18) = .true.
108 outinfo%keyWord(19) =
"PRINC_NSTRESS"
109 outinfo%vtype(19) = -2
111 outinfo%keyWord(20) =
"PRINC_ESTRESS"
112 outinfo%vtype(20) = -2
114 outinfo%keyWord(21) =
"PRINC_NSTRAIN"
115 outinfo%vtype(21) = -2
117 outinfo%keyWord(22) =
"PRINC_ESTRAIN"
118 outinfo%vtype(22) = -2
120 outinfo%keyWord(23) =
"PRINCV_NSTRESS"
121 outinfo%vtype(23) = -2
123 outinfo%keyWord(24) =
"PRINCV_ESTRESS"
124 outinfo%vtype(24) = -2
126 outinfo%keyWord(25) =
"PRINCV_NSTRAIN"
127 outinfo%vtype(25) = -2
129 outinfo%keyWord(26) =
"PRINCV_ESTRAIN"
130 outinfo%vtype(26) = -2
132 outinfo%keyWord(27) =
"SHELL_LAYER"
133 outinfo%vtype(27) = -1
135 outinfo%keyWord(28) =
"SHELL_SURFACE"
136 outinfo%vtype(28) = -1
138 outinfo%keyWord(29) =
"YIELD_RATIO"
139 outinfo%vtype(29) = -1
141 outinfo%keyWord(30) =
"CONTACT_NFORCE"
142 outinfo%vtype(30) = -2
144 outinfo%keyWord(31) =
"CONTACT_FRICTION"
145 outinfo%vtype(31) = -2
147 outinfo%keyWord(32) =
"CONTACT_RELVEL"
148 outinfo%vtype(32) = -2
150 outinfo%keyWord(33) =
"CONTACT_STATE"
151 outinfo%vtype(33) = -1
153 outinfo%keyWord(34) =
"MATERIAL_ID"
154 outinfo%vtype(34) = -1
156 outinfo%keyWord(35) =
"BEAM_NQM"
157 outinfo%vtype(35) = -5
159 outinfo%keyWord(36) =
"CONTACT_NTRACTION"
160 outinfo%vtype(36) = -2
162 outinfo%keyWord(37) =
"CONTACT_FTRACTION"
163 outinfo%vtype(37) = -2
165 outinfo%keyWord(38) =
"NODE_ID"
166 outinfo%vtype(38) = -1
168 outinfo%keyWord(39) =
"ELEM_ID"
169 outinfo%vtype(39) = -1
171 outinfo%keyWord(40) =
"SECTION_ID"
172 outinfo%vtype(40) = -1
174 outinfo%keyWord(41) =
"NOT ASSIGNED"
175 outinfo%vtype(41) = -1
177 outinfo%keyWord(42) =
"ORIENTATION"
178 outinfo%vtype(42) = -2
180 outinfo%keyWord(43) =
"PL_ESTRAIN"
181 outinfo%vtype(43) = -1
183 outinfo%keyWord(44) =
"ELEMACT"
184 outinfo%vtype(44) = -1
186 outinfo%keyWord(45) =
"NCURE_DEGREE"
187 outinfo%vtype(45) = -1
189 outinfo%keyWord(46) =
"ECURE_DEGREE"
190 outinfo%vtype(46) = -1
195 integer,
intent(in) :: fnum
196 integer,
intent(in) :: nitem
198 real(kind=kreal),
intent(in) :: outdata(:,:)
200 integer :: i, j, nsize, ncomp
201 if( nitem>outinfo%num_items )
return
202 if( .not. outinfo%on(nitem) )
return
203 nsize =
size( outdata, 1 )
204 ncomp =
size( outdata, 2 )
205 write( fnum,
'(a)' ) trim(outinfo%keyWord(nitem))
207 write( fnum, * ) (outdata(i,j),j=1,ncomp)
213 integer,
intent(in) :: vtype
214 integer,
intent(in) :: ndim
218 else if( vtype==-1 )
then
220 else if( vtype==-2 )
then
222 else if( vtype==-3 )
then
225 else if( vtype==-4 )
then
227 else if( vtype==-5 )
then
238 outctrl%filename= trim(outfilename)
248 outctrl1%filename = outctrl2%filename
249 outctrl1%filenum = outctrl2%filenum
250 outctrl1%frequency = outctrl2%frequency
254 integer,
intent(in) :: cstep
261 integer(kind=kint),
intent(in) :: ctrl
263 integer(kind=kint),
intent(out) :: islog, res, visual, femap
264 integer(kind=kint) :: rcode, n
266 islog=0; res=0; visual=0; femap=0
273 outctrl%frequency = 1
276 if( rcode /= 0 )
return
277 if( n>0 ) outctrl%frequency = n
280 if( rcode /= 0 )
return
int fstr_ctrl_get_param_ex(int *ctrl, const char *param_name, const char *value_list, int *necessity, char *type, void *val)
This module manages step information.
integer(kind=kint) function fstr_ctrl_get_output(ctrl, outctrl, islog, res, visual, femap)
subroutine fstr_init_outctrl(outctrl)
subroutine initoutinfo(outinfo)
integer function n_comp_valtype(vtype, ndim)
subroutine fstr_copy_outctrl(outctrl1, outctrl2)
Copy output control except outinfo, which may already hold !OUTPUT_RES / !OUTPUT_VIS settings.
subroutine write_outinfo(fnum, nitem, outinfo, outdata)
logical function fstr_output_active(cstep, outctrl)
output control such as output filename, output frequency etc.