26 #ifndef CHUTEWITHHOPPERANDINSET_H
27 #define CHUTEWITHHOPPERANDINSET_H
65 void set_Inset(
double height,
double width,
double angle){
66 if (width>=0.0) {
insetWidth = width;}
else std::cerr <<
"WARNING : Inset width must be greater than or equal to zero" << std::endl;
67 if (height>=0.0) {
insetHeight = height;}
else std::cerr <<
"WARNING : Inset height must be greater than or equal to zero" << std::endl;
68 if (angle>0.0&&angle<90.0) {
insetAngle = angle*
constants::pi/180.0;}
else std::cerr <<
"WARNING : Inset angle must be widthin (0,90)" << std::endl;
90 Vec3D A, B, C, temp, normal;
98 C =
Vec3D(0.0, 0.0, 0.0);
128 Walls[n].add_finite_wall(normal, Dot(normal,A));
131 Walls[n].add_finite_wall(normal, Dot(normal,B));
134 Walls[n].add_finite_wall(normal,Dot(normal,C));
141 B =
Vec3D(0.0, 0.0, 0.0);
152 Walls[n+1].add_finite_wall(normal, Dot(normal,A));
155 Walls[n+1].add_finite_wall(normal, Dot(normal,B));
158 Walls[n+1].add_finite_wall(normal,Dot(normal,C));
162 virtual void print(std::ostream& os,
bool print_all) {
double get_InsetHeight()
get function for insetHeight, insetWidth, insetAngle
friend Mdouble GetLength2(const Vec3D &A)
void constructor()
The actually constructor.
virtual void setup_particles_initial_conditions()
initialize particle position, velocity, radius
double shift
The x position where the Chute starts (defined as the beginning of the hopper)
ChuteWithHopperAndInset has a hopper as inflow.
void set_Inset(double height, double width, double angle)
todo check wether the inset and hopper are colliding todo check wether the resulting opening between ...
ChuteWithHopperAndInset()
public variables
ChuteWithHopper has a hopper as inflow.
Mdouble insetWidth
The width of the inset.
Mdouble insetHeight
protected variables
Implementation of a 3D vector (by Vitaliy).
virtual void print(std::ostream &os)
virtual void print(std::ostream &os, bool print_all)
This function std::couts all chute data.
virtual void setup_particles_initial_conditions()
initialize particle position, velocity, radius
Mdouble get_ChuteAngle()
Gets chute angle (in radians)
Mdouble insetAngle
The angle of the inset (input in degrees, usage in radians)