Add Explosive interfaces and restart
This commit is contained in:
@@ -78,5 +78,21 @@ int main()
|
||||
}
|
||||
gas_session.close();
|
||||
|
||||
sphlite::Session explosive_session;
|
||||
std::string explosive_input =
|
||||
std::string(SPHLITE_TEST_DATA_DIR) + "/explosive_conversion_phase_040.inp";
|
||||
sphlite::read_inp(explosive_input);
|
||||
sphlite::set_ignition_point(0.0, 0.0, 0.0, 0.0);
|
||||
sphlite::build_model();
|
||||
sphlite::run_explicit();
|
||||
sphlite::ExplosiveSummary explosive = sphlite::explosive_summary();
|
||||
if (explosive.particle_count <= 0 || explosive.reacted_count <= 0) {
|
||||
return 1;
|
||||
}
|
||||
if (explosive.lambda_range[1] <= 0.0 || explosive.released_totals[1] <= 0.0) {
|
||||
return 1;
|
||||
}
|
||||
explosive_session.close();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user