Main Page | Class Hierarchy | Class List | File List | Class Members

RAX_Parser_SPH Class Reference

#include <rax_parser_sph.h>

Inheritance diagram for RAX_Parser_SPH:

RAX_Parser List of all members.

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)
SPHget_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)

Detailed Description

Parser for input files.

Author:
Moritz Franosch


Constructor & Destructor Documentation

RAX_Parser_SPH::RAX_Parser_SPH  ) 
 

Constructor.


Member Function Documentation

void RAX_Parser_SPH::add_box const Particle::vector_t &  p1,
const Particle::vector_t &  p2
 

Adds a box with one corner at p and the other at p2.

void RAX_Parser_SPH::add_sphere const Particle::vector_t &  p,
const double  r
 

Adds a sphere with radius r at position p.

void RAX_Parser_SPH::construct_sph const int  dimensions,
const double  xdim,
const double  ydim,
const double  zdim,
const double  h,
const double  rho
 

Constructs an sph-space with the given parameters.

void RAX_Parser_SPH::end_element const std::string &  name  )  [virtual]
 

Called whenever an end-tag is encountered and no handler is present (should never be called).

Reimplemented from RAX_Parser.

SPH & RAX_Parser_SPH::get_sph  ) 
 

Returns the class SPH that is used for the simulation.

construct_sph() was called.

bool RAX_Parser_SPH::parse const std::string &  filename  ) 
 

Parses the XML-file filename.

Executes the SPH-simulation.

Returns true if successful.

Reimplemented from RAX_Parser.

void RAX_Parser_SPH::set_c const double  c  ) 
 

Sets velocity of sound.

construct_sph() was called.

void RAX_Parser_SPH::set_dmax const double  d_max_ini  ) 
 

Sets the maximum length of the triangles when triangulating the surface.

void RAX_Parser_SPH::set_dt const double  dt  ) 
 

Sets timestep.

construct_sph() was called.

void RAX_Parser_SPH::set_dt_display const double  dt_display  ) 
 

Sets display timestep.

void RAX_Parser_SPH::set_gravity const Particle::vector_t &  g  ) 
 

Sets gravity.

construct_sph() was called.

bool RAX_Parser_SPH::set_kernel const std::string &  name  ) 
 

Sets the kernel.

Returns true if successful.

construct_sph() was called.

void RAX_Parser_SPH::set_nparticles_row const int  nparticles_row  ) 
 

Sets the number of particles in a row.

void RAX_Parser_SPH::set_nspheres const int  nspheres  ) 
 

Sets the number of spheres to approximate the fluid.

void RAX_Parser_SPH::set_nu const double  nu  ) 
 

Sets viscosity.

construct_sph() was called.

void RAX_Parser_SPH::simulate const double  duration  ) 
 

Runs simulation for this duration.

construct_sph() was called.

void RAX_Parser_SPH::start_element const std::string &  name,
AttributeList &  attributes
[virtual]
 

Called whenever a start-tag is encountered and no handler is present (should never be called).

Reimplemented from RAX_Parser.

void RAX_Parser_SPH::text const std::string &  name,
const std::string &  t
[virtual]
 

Called whenever a start- or an end-tag is encountered and no handler is present (should never be called).

Reimplemented from RAX_Parser.


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 11:06:46 2005 for partsim.kdevelop by doxygen 1.3.6