el_cal = 21 ns_cal = 400 set_id_cal = 'calRpc' el_val = 21 ns_val = 190 set_id_val = 'valRpc' wrt_file = 'log_order%s_%s%s_%s%s_%s.txt' % (order, ns_cal, set_id_cal, ns_val, set_id_val, time.strftime("%Y-%m-%d_h%Hm%M")) ### TOTAL CALIBRATION PROCEDURE ### ## Read the calibration microstructures and build the microstructure function msf.msf(el_cal, ns_cal, Hi, H, order, set_id_cal, wrt_file) ## Read the responses from the FE .dat files and perform the fftn for the calibration fegrab.fegrab(el_cal, ns_cal, set_id_cal, wrt_file) ## Perform the calibration calibration.calibration_procedure(el_cal, ns_cal, H, set_id_cal, wrt_file) ### TOTAL VALIDATION PROCEDURE ### ## Read the validation microstructures and build the microstructure function msf.msf(el_val, ns_val, Hi, H, order, set_id_val, wrt_file) ## Read the responses from the FE .dat files and perform the fftn for the validation fegrab.fegrab(el_val, ns_val, set_id_val, wrt_file)
ns_cal = 50 set_id_cal = 'cal' ### Read the calibration microstructures and build the microstructure function #msf.msf(el_cal,ns_cal,H,set_id_cal,wrt_file) # ### Read the responses from the FE .dat files and perform the fftn for the calibration #fegrab.fegrab(el_cal,ns_cal,set_id_cal,wrt_file) # ### Perform the calibration #calibration.calibration_procedure(el_cal,ns_cal,H,set_id_cal,wrt_file) ### TOTAL VALIDATION PROCEDURE ### el_val = 21 ns_val = 10 set_id_val = 'val_highVF' ## Read the validation microstructures and build the microstructure function msf.msf(el_val, ns_val, H, set_id_val, wrt_file) ## Read the responses from the FE .dat files and perform the fftn for the validation fegrab.fegrab(el_val, ns_val, set_id_val, wrt_file) ## Perform the validation validation_viz.validation_zero_pad(el_cal, el_val, ns_cal, ns_val, H, set_id_cal, set_id_val, wrt_file) ## Calculate the results of the validation results.results(el_val, ns_val, set_id_val, 'epsilon', wrt_file)
setsz = 50. doplt = 0 # if plotting of results desired set doplt = 1 # if doplt == 1: # plt.close('all') wrt_file = 'log_order%s_%s%s_%s%s_%s.txt' % \ (order, ns_cal, set_id_cal, ns_val, set_id_val, time.strftime("%Y-%m-%d_h%Hm%M")) # TOTAL CALIBRATION PROCEDURE # Read the calibration microstructures and build the microstructure function H = msf.msf(el_cal, ns_cal, Hi, order, set_id_cal, setsz, wrt_file) # Read the responses from the FE .dat files and perform the fftn for the # calibration fegrab.fegrab(el_cal, ns_cal, set_id_cal, dir_cal, wrt_file) # Perform the calibration calibration.calibration_main(el_cal, ns_cal, H, set_id_cal, setsz, wrt_file) # # TOTAL VALIDATION PROCEDURE # Read the validation microstructures and build the microstructure function H = msf.msf(el_val, ns_val, Hi, order, set_id_val, setsz, wrt_file) # Read the responses from the FE .dat files and perform the fftn for the # validation
plt.close('all') H = 15 wrt_file = 'log_%s.txt' %(time.strftime("%Y-%m-%d_h%Hm%M")) ### TOTAL CALIBRATION PROCEDURE ### el_cal = 21 ns_cal = 100 set_id_cal = 'cal_Priddy' ## Read the calibration microstructures and build the microstructure function msf.msf(el_cal,ns_cal,H,set_id_cal,wrt_file) ## Read the responses from the FE .dat files and perform the fftn for the calibration fegrab.fegrab(el_cal,ns_cal,set_id_cal,wrt_file) ## Perform the calibration calibration.calibration_procedure(el_cal,ns_cal,H,set_id_cal,wrt_file) ### TOTAL VALIDATION PROCEDURE ### el_val = 21 ns_val = 47 set_id_val = 'val_Priddy' ## Read the validation microstructures and build the microstructure function
ns_val = 190 # total number of samples in validation dataset set_id_val = 'valRpc' # set ID for validation dataset dir_val = 'val' # directory name for .dat files Mdir = 'M' doplt = 1 # if plotting of results desired set doplt = 1 wrt_file = 'log_order%s_%s%s_%s%s_%s.txt' % \ (order, ns_cal, set_id_cal, ns_val, set_id_val, time.strftime("%Y-%m-%d_h%Hm%M")) # TOTAL CALIBRATION PROCEDURE # Read the calibration microstructures and build the microstructure function H = msf.msf(el_cal, ns_cal, Hi, order, set_id_cal, Mdir, wrt_file) # Read the responses from the FE .dat files and perform the fftn for the # calibration fegrab.fegrab(el_cal, ns_cal, set_id_cal, dir_cal, wrt_file) # Perform the calibration calibration.calibration_main(el_cal, ns_cal, H, set_id_cal, wrt_file) # # TOTAL VALIDATION PROCEDURE # # Read the validation microstructures and build the microstructure function # msf.msf(el_val, ns_val, Hi, order, set_id_val, wrt_file) # # Read the responses from the FE .dat files and perform the fftn for the # # validation
time.strftime("%Y-%m-%d_h%Hm%M")) # TOTAL CALIBRATION PROCEDURE # Read the calibration microstructures and build the microstructure function # H = msf.msf(el_cal, ns_cal, Hi, order, set_id_cal, wrt_file) # Read the responses from the FE .dat files and perform the fftn for the # calibration # fegrab.fegrab(el_cal, ns_cal, set_id_cal, dir_cal, wrt_file) # Perform the calibration H = 12 calibration.calibration_main(el_cal, ns_cal, H, set_id_cal, wrt_file) # # TOTAL VALIDATION PROCEDURE # Read the validation microstructures and build the microstructure function H = msf.msf(el_val, ns_val, Hi, order, set_id_val, wrt_file) # Read the responses from the FE .dat files and perform the fftn for the # validation fegrab.fegrab(el_val, ns_val, set_id_val, dir_val, wrt_file) # Perform the validation validation_viz.validation_zero_pad(el_cal, el_val, ns_cal, ns_val, H, set_id_cal, set_id_val, wrt_file) # Calculate the results of the validation results.results(el_val, ns_val, set_id_val, 'epsilon', doplt, wrt_file)