22template<
class Tvec,
template<
class>
class SPHKernel>
27 pdl.
add_field<Tvec>(names::common::xyz, 1);
30 pdl.
add_field<Tvec>(names::newtonian::vxyz, 1);
33 pdl.
add_field<Tvec>(names::newtonian::axyz, 1);
36 pdl.
add_field<Tscal>(names::common::hpart, 1);
39 if (has_field_uint()) {
40 pdl.
add_field<Tscal>(names::newtonian::uint, 1);
41 pdl.
add_field<Tscal>(names::newtonian::duint, 1);
46 pdl.
add_field<Tscal>(names::newtonian::density, 1);
47 pdl.
add_field<Tscal>(names::newtonian::pressure, 1);
48 pdl.
add_field<Tscal>(names::newtonian::soundspeed, 1);
51template<
class Tvec,
template<
class>
class SPHKernel>
56 ghost_layout.
add_field<Tvec>(names::newtonian::vxyz, 1);
59 ghost_layout.
add_field<Tscal>(names::common::hpart, 1);
62 ghost_layout.
add_field<Tscal>(names::newtonian::omega, 1);
65 ghost_layout.
add_field<Tscal>(names::newtonian::density, 1);
68 if (has_field_uint()) {
69 ghost_layout.
add_field<Tscal>(names::newtonian::uint, 1);
Constants for field names in GSPH solver, organized by physics mode.
void add_field(const std::string &field_name, u32 nvar, SourceLocation loc=SourceLocation{})
add a field of type T to the layout
Configuration for the Godunov SPH (GSPH) solver.
namespace for math utility
The configuration for a GSPH solver.