Пример #1
0
    for comp in compl:
        vtk.read_meas(ns_val, set_id_val, step, comp, vtk_filename, tensor_ID,
                      dir_val, wrt_file, 1)

#    ## Convert the orientations from the calibration datasets from bunge euler angles
#    ## to GSH coefficients
#    gsh.euler_to_gsh(ns_cal,set_id_cal,step,wrt_file)

## Convert the orientations from the validation datasets from bunge euler angles
## to GSH coefficients
    gsh.euler_to_gsh(ns_val, set_id_val, step, wrt_file)

    #    ## Generate the fftn of the calibration microstructure function
    #    msf.micr_func(ns_cal,set_id_cal,step,wrt_file)

    ## Generate the fftn of the validation microstructure function
    msf.micr_func(ns_val, set_id_val, step, wrt_file)

    #    ## Perform the calibration
    #    for comp in compl:
    #        calibration.calibration_procedure(ns_cal,set_id_cal,step,comp,wrt_file)

    ## Perform the validation
    for comp in compl:
        validation.validation_procedure(ns_cal, ns_val, set_id_cal, set_id_val,
                                        step, comp, wrt_file)

    comp_app = 1

    results.results_all(ns_val, set_id_val, step, 'sigma', compl, comp_app)
Пример #2
0
    vtk.read_euler(el, ns_val, set_id_val, step, dir_val, wrt_file, 0)

    for comp in compl:
        vtk.read_meas(el, ns_val, set_id_val, step, comp, tensor_ID, dir_val,
                      wrt_file)

    ## Convert the orientations from the calibration datasets from bunge euler angles
    ## to GSH coefficients
    gsh.euler_to_gsh(el, H, ns_cal, set_id_cal, step, wrt_file)

    ## Convert the orientations from the validation datasets from bunge euler angles
    ## to GSH coefficients
    gsh.euler_to_gsh(el, H, ns_val, set_id_val, step, wrt_file)

    ## Generate the fftn of the calibration microstructure function
    msf.micr_func(el, H, ns_cal, set_id_cal, step, wrt_file)

    ## Generate the fftn of the validation microstructure function
    msf.micr_func(el, H, ns_val, set_id_val, step, wrt_file)

    ## Perform the calibration
    for comp in compl:
        calibration.calibration_procedure(el, H, ns_cal, set_id_cal, step,
                                          comp, wrt_file)

    ## Perform the validation
    for comp in compl:
        validation.validation(el, H, ns_cal, ns_val, set_id_cal, set_id_val,
                              step, comp, wrt_file)

    comp_app = 0
vtk.read_euler(ns_val, set_id_val, vtk_filename, dir_val, wrt_file)

for comp in xrange(9):
    vtk.read_meas(ns_val, set_id_val, comp, vtk_filename, tensor_ID, dir_val,
                  wrt_file)

## Convert the orientations from the calibration datasets from bunge euler angles
## to GSH coefficients
gsh.euler_to_gsh(ns_cal, set_id_cal, wrt_file)

## Convert the orientations from the validation datasets from bunge euler angles
## to GSH coefficients
gsh.euler_to_gsh(ns_val, set_id_val, wrt_file)

## Generate the fftn of the calibration microstructure function
msf.micr_func(ns_cal, set_id_cal, wrt_file)

## Generate the fftn of the validation microstructure function
msf.micr_func(ns_val, set_id_val, wrt_file)

## Perform the calibration
for comp in xrange(9):
    calibration.calibration_procedure(ns_cal, set_id_cal, comp, wrt_file)

## Perform the validation
for comp in xrange(9):
    validation.validation_procedure(ns_cal, ns_val, set_id_cal, set_id_val,
                                    comp, wrt_file)

results.results_all(ns_val, set_id_val, 'sigma')