Skip to content

Commit

Permalink
Fix metadata option for TLSPH system (trixi-framework#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber authored Mar 12, 2024
1 parent 01e4c9a commit 95f9edc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/visualization/write2vtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,15 @@ function write2vtk!(vtk, v, u, t, system::TotalLagrangianSPHSystem; write_meta_d
end

vtk["material_density"] = system.material_density
vtk["young_modulus"] = system.young_modulus
vtk["poisson_ratio"] = system.poisson_ratio
vtk["lame_lambda"] = system.lame_lambda
vtk["lame_mu"] = system.lame_mu
vtk["smoothing_kernel"] = type2string(system.smoothing_kernel)
vtk["smoothing_length"] = system.smoothing_length

if write_meta_data
vtk["young_modulus"] = system.young_modulus
vtk["poisson_ratio"] = system.poisson_ratio
vtk["lame_lambda"] = system.lame_lambda
vtk["lame_mu"] = system.lame_mu
vtk["smoothing_kernel"] = type2string(system.smoothing_kernel)
vtk["smoothing_length"] = system.smoothing_length
end

write2vtk!(vtk, v, u, t, system.boundary_model, system, write_meta_data=write_meta_data)
end
Expand Down

0 comments on commit 95f9edc

Please sign in to comment.