Add blast diagnostics output boundary
This commit is contained in:
@@ -62,7 +62,7 @@ contains
|
||||
|
||||
subroutine check_particle_csv(filename)
|
||||
character(len=*), intent(in) :: filename
|
||||
character(len=512) :: header
|
||||
character(len=1024) :: header
|
||||
integer :: unit
|
||||
integer :: ios
|
||||
integer :: id
|
||||
@@ -81,6 +81,7 @@ contains
|
||||
real(rk) :: softening
|
||||
real(rk) :: strain_rate_eq
|
||||
real(rk) :: acceleration_norm
|
||||
real(rk) :: blast_force_values(9)
|
||||
integer :: reference_neighbors
|
||||
integer :: correction_status
|
||||
|
||||
@@ -96,13 +97,16 @@ contains
|
||||
'solid_stress_xx,solid_stress_yy,solid_stress_zz,solid_stress_xy,' // &
|
||||
'solid_stress_yz,solid_stress_zx,solid_plastic_strain,solid_damage,' // &
|
||||
'solid_softening,solid_strain_rate_eq,solid_acceleration_norm,' // &
|
||||
'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,' // &
|
||||
'solid_failure_status,solid_reference_neighbor_count,' // &
|
||||
'solid_correction_status') 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, failure, &
|
||||
softening, strain_rate_eq, acceleration_norm, blast_force_values, failure, &
|
||||
reference_neighbors, correction_status
|
||||
close(unit=unit)
|
||||
if (ios /= 0) call fail('Solid particle CSV row read failed')
|
||||
@@ -128,6 +132,9 @@ contains
|
||||
if (abs(acceleration_norm - sqrt(sum(a(:,1) * a(:,1)))) > 1.0e-12_rk) then
|
||||
call fail('Solid particle CSV acceleration mismatch')
|
||||
end if
|
||||
if (maxval(abs(blast_force_values)) > 1.0e-12_rk) then
|
||||
call fail('Solid particle CSV Blast 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')
|
||||
|
||||
Reference in New Issue
Block a user