#include <rax_parser_sph.h>
Inheritance diagram for RAX_Parser_SPH:
Public Member Functions | |
RAX_Parser_SPH () | |
bool | parse (const std::string &filename) |
void | construct_sph (const int dimensions, const double xdim, const double ydim, const double zdim, const double h, const double rho) |
void | set_gravity (const Particle::vector_t &g) |
void | set_nu (const double nu) |
void | set_c (const double c) |
void | set_dt (const double dt) |
bool | set_kernel (const std::string &name) |
void | set_dt_display (const double dt_display) |
void | set_nspheres (const int nspheres) |
void | set_nparticles_row (const int nparticles_row) |
void | set_dmax (const double d_max_ini) |
void | simulate (const double duration) |
SPH & | get_sph () |
void | add_sphere (const Particle::vector_t &p, const double r) |
void | add_box (const Particle::vector_t &p1, const Particle::vector_t &p2) |
virtual void | start_element (const std::string &name, AttributeList &attributes) |
virtual void | end_element (const std::string &name) |
virtual void | text (const std::string &name, const std::string &t) |
|
Constructor. |
|
Adds a box with one corner at p and the other at p2. |
|
Adds a sphere with radius r at position p. |
|
Constructs an sph-space with the given parameters. |
|
Called whenever an end-tag is encountered and no handler is present (should never be called). Reimplemented from RAX_Parser. |
|
Returns the class SPH that is used for the simulation. construct_sph() was called. |
|
Parses the XML-file filename. Executes the SPH-simulation. Returns true if successful. Reimplemented from RAX_Parser. |
|
Sets velocity of sound. construct_sph() was called. |
|
Sets the maximum length of the triangles when triangulating the surface. |
|
Sets timestep. construct_sph() was called. |
|
Sets display timestep. |
|
Sets gravity. construct_sph() was called. |
|
Sets the kernel. Returns true if successful. construct_sph() was called. |
|
Sets the number of particles in a row. |
|
Sets the number of spheres to approximate the fluid. |
|
Sets viscosity. construct_sph() was called. |
|
Runs simulation for this duration. construct_sph() was called. |
|
Called whenever a start-tag is encountered and no handler is present (should never be called). Reimplemented from RAX_Parser. |
|
Called whenever a start- or an end-tag is encountered and no handler is present (should never be called). Reimplemented from RAX_Parser. |