2016-01-17 20:33:54 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @author Franz Roters, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @author Philip Eisenlohr, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @brief needs a good name and description
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
module CPFEM2
|
2019-06-06 17:29:16 +05:30
|
|
|
use prec
|
|
|
|
use config
|
|
|
|
use FEsolving
|
|
|
|
use math
|
2019-09-22 19:23:03 +05:30
|
|
|
use rotations
|
2020-04-28 13:59:13 +05:30
|
|
|
use YAML_types
|
2020-05-22 00:11:40 +05:30
|
|
|
use YAML_parse
|
2019-06-06 17:29:16 +05:30
|
|
|
use material
|
|
|
|
use lattice
|
|
|
|
use IO
|
2020-09-06 21:08:30 +05:30
|
|
|
use base64
|
2019-06-06 17:29:16 +05:30
|
|
|
use DAMASK_interface
|
|
|
|
use results
|
|
|
|
use discretization
|
|
|
|
use HDF5_utilities
|
|
|
|
use homogenization
|
|
|
|
use constitutive
|
|
|
|
use crystallite
|
2020-04-28 14:05:43 +05:30
|
|
|
#if defined(Mesh)
|
2020-03-20 19:25:10 +05:30
|
|
|
use FEM_quadrature
|
2020-03-20 19:38:07 +05:30
|
|
|
use discretization_mesh
|
2020-03-20 11:28:55 +05:30
|
|
|
#elif defined(Grid)
|
|
|
|
use discretization_grid
|
2019-06-11 19:46:10 +05:30
|
|
|
#endif
|
2019-06-06 17:29:16 +05:30
|
|
|
|
|
|
|
implicit none
|
2020-01-27 01:45:21 +05:30
|
|
|
public
|
2019-05-15 02:42:32 +05:30
|
|
|
|
2016-01-17 20:33:54 +05:30
|
|
|
contains
|
|
|
|
|
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
2019-12-07 19:50:04 +05:30
|
|
|
!> @brief call all module initializations
|
2016-01-17 20:33:54 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2019-06-11 19:46:10 +05:30
|
|
|
subroutine CPFEM_initAll
|
2016-01-17 20:33:54 +05:30
|
|
|
|
2019-06-15 19:18:47 +05:30
|
|
|
call DAMASK_interface_init ! Spectral and FEM interface to commandline
|
2019-06-11 19:46:10 +05:30
|
|
|
call prec_init
|
|
|
|
call IO_init
|
2020-09-06 21:08:30 +05:30
|
|
|
call base64_init
|
2020-04-28 14:05:43 +05:30
|
|
|
#ifdef Mesh
|
2020-03-20 19:25:10 +05:30
|
|
|
call FEM_quadrature_init
|
2016-01-17 20:33:54 +05:30
|
|
|
#endif
|
2019-06-11 19:46:10 +05:30
|
|
|
call config_init
|
|
|
|
call math_init
|
2019-09-22 19:23:03 +05:30
|
|
|
call rotations_init
|
2020-04-28 13:59:13 +05:30
|
|
|
call YAML_types_init
|
2020-05-22 00:11:40 +05:30
|
|
|
call YAML_init
|
2019-06-11 19:46:10 +05:30
|
|
|
call lattice_init
|
|
|
|
call HDF5_utilities_init
|
2020-05-06 21:20:59 +05:30
|
|
|
call results_init(restart=interface_restartInc>0)
|
2020-04-28 14:05:43 +05:30
|
|
|
#if defined(Mesh)
|
2020-05-06 21:20:59 +05:30
|
|
|
call discretization_mesh_init(restart=interface_restartInc>0)
|
2020-03-20 11:28:55 +05:30
|
|
|
#elif defined(Grid)
|
2020-05-06 21:20:59 +05:30
|
|
|
call discretization_grid_init(restart=interface_restartInc>0)
|
2020-03-20 11:28:55 +05:30
|
|
|
#endif
|
2020-05-06 21:20:59 +05:30
|
|
|
call material_init(restart=interface_restartInc>0)
|
2019-06-11 19:46:10 +05:30
|
|
|
call constitutive_init
|
|
|
|
call crystallite_init
|
|
|
|
call homogenization_init
|
|
|
|
call CPFEM_init
|
2020-08-15 19:32:10 +05:30
|
|
|
call config_deallocate
|
2016-01-17 20:33:54 +05:30
|
|
|
|
|
|
|
end subroutine CPFEM_initAll
|
|
|
|
|
2019-12-07 19:50:04 +05:30
|
|
|
|
2016-01-17 20:33:54 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-02-25 22:23:15 +05:30
|
|
|
!> @brief Read restart information if needed.
|
2016-01-17 20:33:54 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
subroutine CPFEM_init
|
2019-06-11 19:46:10 +05:30
|
|
|
|
2020-03-20 11:28:55 +05:30
|
|
|
write(6,'(/,a)') ' <<<+- CPFEM init -+>>>'; flush(6)
|
2019-06-11 19:46:10 +05:30
|
|
|
|
2020-02-25 22:23:15 +05:30
|
|
|
if (interface_restartInc > 0) call crystallite_restartRead
|
|
|
|
|
2016-01-17 20:33:54 +05:30
|
|
|
end subroutine CPFEM_init
|
|
|
|
|
2018-12-05 04:25:39 +05:30
|
|
|
|
2020-02-25 22:23:15 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief Write restart information.
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
subroutine CPFEM_restartWrite
|
|
|
|
|
|
|
|
call crystallite_restartWrite
|
|
|
|
|
|
|
|
end subroutine CPFEM_restartWrite
|
|
|
|
|
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief Forward data for new time increment.
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
subroutine CPFEM_forward
|
|
|
|
|
|
|
|
call crystallite_forward
|
|
|
|
|
|
|
|
end subroutine CPFEM_forward
|
2016-01-17 20:33:54 +05:30
|
|
|
|
2019-05-05 15:36:55 +05:30
|
|
|
|
2018-12-05 04:25:39 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2019-10-24 09:46:42 +05:30
|
|
|
!> @brief Trigger writing of results.
|
2018-12-05 04:25:39 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2018-12-17 20:45:16 +05:30
|
|
|
subroutine CPFEM_results(inc,time)
|
2020-02-25 14:10:38 +05:30
|
|
|
|
2019-06-15 19:18:47 +05:30
|
|
|
integer, intent(in) :: inc
|
|
|
|
real(pReal), intent(in) :: time
|
2020-02-25 14:10:38 +05:30
|
|
|
|
2019-06-11 19:46:10 +05:30
|
|
|
call results_openJobFile
|
|
|
|
call results_addIncrement(inc,time)
|
|
|
|
call constitutive_results
|
|
|
|
call crystallite_results
|
|
|
|
call homogenization_results
|
|
|
|
call discretization_results
|
2020-01-10 06:15:00 +05:30
|
|
|
call results_finalizeIncrement
|
2019-06-11 19:46:10 +05:30
|
|
|
call results_closeJobFile
|
2018-12-05 04:25:39 +05:30
|
|
|
|
|
|
|
end subroutine CPFEM_results
|
|
|
|
|
2016-01-17 20:33:54 +05:30
|
|
|
end module CPFEM2
|