41 io.
dump(storage, stats);
53 simulation.
run(storage);
58 std::cout <<
"Error in simulation: " << e.
what() << std::endl;
BasicVector< Float > Vector
Output saving data to binary data without loss of precision.
virtual Expected< Path > dump(const Storage &storage, const Statistics &stats) override
Saves data from particle storage into the file.
virtual const char * what() const noexcept
virtual void tearDown(const Storage &storage, const Statistics &stats) override
Called after the run.
virtual void setUp(SharedPtr< Storage > storage) override
Prepares the run, creates logger, output, ...
Defines the interface for a run.
Statistics run(Storage &storage)
Runs the simulation.
Object for adding one or more bodies with given material into a Storage.
BodyView addMonolithicBody(Storage &storage, const BodySettings &body)
Creates a monolithic body by filling given domain with particles.
Object representing a path on a filesystem.
Settings & set(const TEnum idx, TValue &&value, std::enable_if_t<!std::is_enum< std::decay_t< TValue >>::value, int >=0)
Saves a value into the settings.
Spherical domain, defined by the center of sphere and its radius.
Object holding various statistics about current run.
Container storing all quantities used within the simulations.
@ PARTICLE_COUNT
Number of SPH particles in the body.
@ RUN_NAME
User-specified name of the run, used in some output files.