37 real(kind=kreal) :: t1, t2, t3
39 t1=0.0d0; t2=0.0d0; t3=0.0d0
44 myrank = hecmw_comm_get_rank()
45 nprocs = hecmw_comm_get_size()
52 if(
hecmesh%contact_pair%n_pair > 0 )
then
86 write(*,*)
'===================================='
87 write(*,
'(a,f10.2)')
' TOTAL TIME (sec) :', t3 - t1
88 write(*,
'(a,f10.2)')
' pre (sec) :', t2 - t1
89 write(*,
'(a,f10.2)')
' solve (sec) :', t3 - t2
90 write(*,*)
'===================================='
92 write(
imsg,*)
'===================================='
93 write(
imsg,
'(a,f10.2)')
' TOTAL TIME (sec) :', t3 - t1
94 write(
imsg,
'(a,f10.2)')
' pre (sec) :', t2 - t1
95 write(
imsg,
'(a,f10.2)')
' solve (sec) :', t3 - t2
96 write(
imsg,*)
'===================================='
105 if(
hecmesh%my_rank==0)
write(*,*)
'FrontISTR Completed !!'
117 call hecmw_nullify_matrix (
hecmat )
132 call fstr_eigen_init(
fstreig )
154 character(len=HECMW_FILENAME_LEN) :: s, r
155 character(len=HECMW_FILENAME_LEN) :: stafileNAME
156 character(len=HECMW_FILENAME_LEN) :: logfileNAME
157 character(len=HECMW_FILENAME_LEN) :: msgfileNAME
158 character(len=HECMW_FILENAME_LEN) :: dbgfileNAME
159 integer :: stat, flag, limit, irank
165 write( logfilename,
'(a,a)') trim(adjustl(s)),
'.log'
166 logfilename = adjustl(logfilename)
167 write( dbgfilename,
'(a,a)')
'FSTR.dbg.', trim(adjustl(s))
168 dbgfilename = adjustl(dbgfilename)
173 write( logfilename,
'(a,a,a,a,a)')
'LOG/TRUNK', trim(adjustl(r)),
'/', trim(adjustl(s)),
'.log'
174 logfilename = adjustl(logfilename)
176 if( stat /= 0 )
call fstr_setup_util_err_stop(
'### Cannot create directory' )
177 write( dbgfilename,
'(a,a,a,a,a)')
'DBG/TRUNK', trim(adjustl(r)),
'/',
'FSTR.dbg.', trim(adjustl(s))
178 dbgfilename = adjustl(dbgfilename)
180 if( stat /= 0 )
call fstr_setup_util_err_stop(
'### Cannot create directory' )
182 write( logfilename,
'(a,a,a)')
'LOG/', trim(adjustl(s)),
'.log'
183 logfilename = adjustl(logfilename)
185 if( stat /= 0 )
call fstr_setup_util_err_stop(
'### Cannot create directory' )
186 write( dbgfilename,
'(a,a,a)')
'DBG/',
'FSTR.dbg.', trim(adjustl(s))
187 dbgfilename = adjustl(dbgfilename)
189 if( stat /= 0 )
call fstr_setup_util_err_stop(
'### Cannot create directory' )
192 stafilename =
'FSTR.sta'
193 msgfilename =
'FSTR.msg'
198 open(
imsg, file=msgfilename, status=
'replace', iostat=stat)
200 call fstr_setup_util_err_stop(
'### Cannot open message file :'//msgfilename )
202 write(
imsg,*)
':========================================:'
203 write(
imsg,*)
':** BEGIN FSTR Structural Analysis **:'
204 write(
imsg,*)
':========================================:'
205 write(
imsg,*)
' Total no. of processors: ',
nprocs
209 write(
imsg,*)
' * STAGE Initialization and input **'
213 open (
ilog, file = logfilename, status =
'replace', iostat=stat )
215 call fstr_setup_util_err_stop(
'### Cannot open log file :'//logfilename )
219 open (
ista,file = stafilename, status =
'replace', iostat=stat )
220 write(
ista,
'(''####'',a80)') stafilename
222 call fstr_setup_util_err_stop(
'### Cannot open status file :'//stafilename )
226 open (
idbg,file = dbgfilename, status =
'replace', iostat=stat)
227 write(
idbg,
'(''####'',a80)') dbgfilename
229 call fstr_setup_util_err_stop(
'### Cannot open debug file :'//dbgfilename )
237 character(len=HECMW_FILENAME_LEN) :: cntfileNAME
240 call hecmw_ctrl_get_control_file(
name_id, cntfilename )
253 if(
myrank == 0)
write(*,*)
'fstr_setup: OK'
254 write(
ilog,*)
'fstr_setup: OK'
275 if(
myrank == 0)
write(
imsg,*)
' *** STAGE Non Linear static analysis **'
277 if(
myrank == 0 )
write(
imsg,*)
' *** STAGE Linear static analysis **'
300 write(
imsg,*)
' *** STAGE Eigenvalue analysis **'
319 write(
imsg,*)
' *** STAGE Heat analysis **'
340 write(
imsg,*)
' *** STAGE Nonlinear dynamic analysis **'
342 write(
imsg,*)
' *** STAGE Linear dynamic analysis **'
364 write(
imsg,*)
' *** STAGE Static -> Eigen analysis **'
365 write(*,*)
' *** STAGE Static -> Eigen analysis **'
367 write(
imsg,*)
' *** Stage 1: Nonlinear static analysis **'
368 write(*,*)
' *** Stage 1: Nonlinear static analysis **'
375 write(
imsg,*)
' *** Stage 2: Eigenvalue analysis **'
377 write(*,*)
' *** Stage 2: Eigenvalue analysis **'
397 write(
imsg,*)
':========================================:'
398 write(
imsg,*)
':** END of FSTR **:'
399 write(
imsg,*)
':========================================:'
int fstr_ctrl_is_inp_file(char *filename)
void hecmw_ctrl_is_subdir(int *flag, int *limit)
void hecmw_ctrl_make_subdir(char *filename, int *err, int len)
This module contains subroutines controlling dynamic calculation.
subroutine fstr_solve_dynamic(hecMESH, hecMAT, fstrSOLID, fstrEIG, fstrDYNAMIC, fstrPARAM, fstrCPL, fstrFREQ)
Master subroutine for dynamic analysis.
type(hecmwst_result_data), save fstrresult
subroutine fstr_dynamic_analysis
Master subroutine of dynamic analysis !
type(hecmwst_matrix), save hecmat
subroutine fstr_static_eigen_analysis
Master subroutine of static -> eigen analysis !
subroutine fstr_init
Initializer !
subroutine fstr_heat_analysis
Master subroutine of heat analysis !
type(fstr_param), target, save fstrparam
type(hecmwst_local_mesh), save hecmesh
subroutine fstr_init_condition
Read in control file and do all preparation.
type(fstr_solid), save fstrsolid
type(fstr_heat), save fstrheat
subroutine fstr_static_analysis
Master subroutine of linear/nonlinear static analysis !
subroutine fstr_finalize
Finalizer !
type(fstr_dynamic), save fstrdynamic
type(fstr_couple), save fstrcpl
subroutine fstr_init_file
Open all files preparing calculation.
type(fstr_freqanalysis), save fstrfreq
subroutine fstr_eigen_analysis
Master subroutine of eigen analysis !
character(len=hecmw_name_len) name_id
type(fstr_eigen), save fstreig
This module provides the entry point for ELEMCHECK (pre-analysis input validation)
subroutine fstr_input_precheck(hecMESH, hecMAT, fstrSOLID, fstrPARAM)
Main entry point (called from fistr_main)
subroutine, public fstr_rcap_finalize(fstrPARAM, fstrCPL)
subroutine, public fstr_rcap_initialize(hecMESH, fstrPARAM, fstrCPL)
This module provides functions to read in the analysis data of an inp file and do necessary preparati...
subroutine, public fstr_setup_inp(inp_filename, hecMESH, hecMAT, fstrPARAM, fstrSOLID, fstrEIG, fstrHEAT, fstrDYNAMIC, fstrCPL, fstrFREQ)
Read in and initialize the analysis data of an inp file !
This module provides functions to read in data from control file and do necessary preparation for fol...
subroutine fstr_setup(cntl_filename, hecMESH, hecMAT, fstrPARAM, fstrSOLID, fstrEIG, fstrHEAT, fstrDYNAMIC, fstrCPL, fstrFREQ)
Read in and initialize control data !
This module provides a function to control eigen analysis.
subroutine fstr_solve_eigen(hecMESH, hecMAT, fstrEIG, fstrSOLID, fstrRESULT, fstrPARAM)
solve eigenvalue probrem
This module provides a function to control heat analysis.
subroutine fstr_solve_heat(hecMESH, hecMAT, fstrSOLID, fstrRESULT, fstrPARAM, fstrHEAT)
This module provides main suboruitne for nonliear calculation.
subroutine fstr_solve_nlgeom(hecMESH, hecMAT, fstrSOLID, fstrPARAM)
This module provides main subroutine for nonlinear calculation.
This module defines common data and basic structures for analysis.
subroutine hecmat_finalize(hecMAT)
subroutine fstr_nullify_fstr_couple(C)
integer(kind=kint) myrank
PARALLEL EXECUTION.
subroutine fstr_param_init(fstrPARAM, hecMESH)
Initializer of structure fstr_param.
integer(kind=kint), parameter imsg
integer(kind=kint), parameter kstdynamic
subroutine fstr_nullify_fstr_heat(H)
integer(kind=kint), parameter idbg
subroutine fstr_mat_init(hecMAT)
Initializer of structure hecmwST_matrix.
subroutine fstr_nullify_fstr_eigen(E)
integer(kind=kint) nprocs
integer(kind=kint), parameter ilog
FILE HANDLER.
integer(kind=kint), parameter kststatic
subroutine hecmat_init(hecMAT)
integer(kind=kint), parameter kststaticeigen
integer(kind=kint), parameter kstheat
integer(kind=kint), parameter ista
subroutine fstr_nullify_fstr_param(P)
NULL POINTER SETTING TO AVOID RUNTIME ERROR.
integer(kind=kint), parameter ksteigen
subroutine fstr_nullify_fstr_solid(S)
subroutine fstr_nullify_fstr_dynamic(DY)
logical paracontactflag
PARALLEL CONTACT FLAG.
subroutine heat_echo(p, hecMESH, fstrHEAT)
HECMW to FSTR Mesh Data Converter. Converting Connectivity of Element Type 232, 342 and 352.
subroutine hecmw2fstr_mesh_conv(hecMESH)
This module provide a function to ECHO for IFSTR solver.
subroutine fstr_echo(hecMESH)
ECHO for IFSTR solver.
Data for coupling analysis.
Data for DYNAMIC ANSLYSIS (fstrDYNAMIC)
Package of data used by Lanczos eigenvalue solver.
Data for HEAT ANSLYSIS (fstrHEAT)
FSTR INNER CONTROL PARAMETERS (fstrPARAM)