Add Gas material EOS table

This commit is contained in:
Codex
2026-07-03 10:40:57 +08:00
parent d9f21a8256
commit 0eaa85196e
5 changed files with 332 additions and 57 deletions
+4 -1
View File
@@ -15,7 +15,7 @@ module sph_input_reader
sph_water_set_body_force, sph_water_apply_initial_conditions
use sph_gas, only: sph_gas_note_material, sph_gas_set_eos, &
sph_gas_set_particle_control, sph_gas_set_body_force, &
sph_gas_apply_initial_conditions
sph_gas_apply_initial_conditions, sph_gas_count_unbound_materials
use sph_neighbor, only: sph_neighbor_rebuild
use sph_inp_defs, only: SPH_INPUT_LINE_LEN, SPH_INPUT_FIELD_LEN, &
SPH_INPUT_MAX_FIELDS, SPH_KEY_NODE, SPH_KEY_ELEMENT, SPH_KEY_NSET, &
@@ -74,6 +74,7 @@ contains
subroutine sph_input_build_model(ierr)
integer, intent(out) :: ierr
integer :: gas_unbound_count
ierr = SPH_SUCCESS
if (npart <= 0) then
@@ -102,6 +103,8 @@ contains
if (ierr /= SPH_SUCCESS) return
call sph_gas_apply_initial_conditions(ierr)
if (ierr /= SPH_SUCCESS) return
call sph_gas_count_unbound_materials(gas_unbound_count)
input_warning_count = input_warning_count + gas_unbound_count
call sph_neighbor_rebuild(ierr)
end subroutine sph_input_build_model