Add coupling output restart and APIs
This commit is contained in:
@@ -82,8 +82,11 @@ contains
|
||||
real(rk) :: strain_rate_eq
|
||||
real(rk) :: acceleration_norm
|
||||
real(rk) :: blast_force_values(9)
|
||||
real(rk) :: coupling_force_values(3)
|
||||
integer :: reference_neighbors
|
||||
integer :: correction_status
|
||||
integer :: motion_flag
|
||||
integer :: region_id
|
||||
|
||||
unit = 84
|
||||
open(unit=unit, file=trim(filename), status='old', action='read', iostat=ios)
|
||||
@@ -100,14 +103,16 @@ contains
|
||||
'blast_solid_fx,blast_solid_fy,blast_solid_fz,' // &
|
||||
'blast_shell_fx,blast_shell_fy,blast_shell_fz,' // &
|
||||
'blast_shell_mx,blast_shell_my,blast_shell_mz,' // &
|
||||
'coupling_force_x,coupling_force_y,coupling_force_z,' // &
|
||||
'solid_failure_status,solid_reference_neighbor_count,' // &
|
||||
'solid_correction_status') then
|
||||
'solid_correction_status,coupling_motion_flag,coupling_region_id') then
|
||||
call fail('Solid particle CSV header mismatch')
|
||||
end if
|
||||
read(unit, *, iostat=ios) id, phase, status, mat, sec, pos, vel, &
|
||||
scalar_values, explosive_values, stress_values, plastic, damage, &
|
||||
softening, strain_rate_eq, acceleration_norm, blast_force_values, failure, &
|
||||
reference_neighbors, correction_status
|
||||
softening, strain_rate_eq, acceleration_norm, blast_force_values, &
|
||||
coupling_force_values, failure, reference_neighbors, correction_status, &
|
||||
motion_flag, region_id
|
||||
close(unit=unit)
|
||||
if (ios /= 0) call fail('Solid particle CSV row read failed')
|
||||
if (id /= 1) call fail('Solid particle CSV id mismatch')
|
||||
@@ -135,6 +140,9 @@ contains
|
||||
if (maxval(abs(blast_force_values)) > 1.0e-12_rk) then
|
||||
call fail('Solid particle CSV Blast load pollution')
|
||||
end if
|
||||
if (maxval(abs(coupling_force_values)) > 1.0e-12_rk) then
|
||||
call fail('Solid particle CSV coupling load pollution')
|
||||
end if
|
||||
if (failure /= solid_failure_status(1)) call fail('Solid particle CSV failure mismatch')
|
||||
if (reference_neighbors /= solid_reference_neighbor_count(1)) then
|
||||
call fail('Solid particle CSV reference neighbor mismatch')
|
||||
@@ -142,6 +150,9 @@ contains
|
||||
if (correction_status /= solid_correction_status(1)) then
|
||||
call fail('Solid particle CSV correction status mismatch')
|
||||
end if
|
||||
if (motion_flag /= 0 .or. region_id /= 0) then
|
||||
call fail('Solid particle CSV coupling defaults mismatch')
|
||||
end if
|
||||
end subroutine check_particle_csv
|
||||
|
||||
subroutine check_summary_csv(filename)
|
||||
|
||||
Reference in New Issue
Block a user