Bemsolver 2.0
Public Member Functions | Protected Attributes

D3cylinder Class Reference

#include <bem.h>

Inheritance diagram for D3cylinder:
Inheritance graph
[legend]
Collaboration diagram for D3cylinder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 D3cylinder (double r_, double l_, double x, double y, double z, double phi_, double theta_, double psi_, int sectors_=12, bool subdivide=true, bool inversenorm=false, PD3element parent=NULL)
 Creates a cylinder with radius r_ and length l_.
 ~D3cylinder ()

Protected Attributes

double r
double l
double sectors

Constructor & Destructor Documentation

D3cylinder::D3cylinder ( double  r_,
double  l_,
double  x,
double  y,
double  z,
double  phi_,
double  theta_,
double  psi_,
int  sectors_ = 12,
bool  subdivide = true,
bool  inversenorm = false,
PD3element  parent = NULL 
) [inline]

Creates a cylinder with radius r_ and length l_.

The bottom of the cylinder is centered at (x,y,z).

The angles phi_, theta_ and psi_ can be declared in degrees and represent Euler-angles.

The Center (x,y,z) specifies the center of the Euler-rotations

The Euler-rotations occur in the following order:

phi_:..........Rotation around z-axis...................................x -> x'......y -> y'.......z -> z
theta_:......Rotation around the rotated x-axis (x'):.........x'-> x'......y' -> y''......z -> z'
psi_:..........Rotation around z'-axis:.................................x'-> x''......y''-> y'''.....z'-> z'


For phi_ = theta_ = psi_ = 0, the bottom of the cylinder lies in the x,y-plane and the z-extension correspond to the length l_.

The parameter sectors_ provides an option for refinement. It is set to 12 by initialization but can also be set manually. A value of sectors_ = 8 creates a cylinder with 8 edges on the bottom for example. sectors_ is not limited to powers of two or even numbers!! 5 or 11 works as well.

D3cylinder::~D3cylinder ( ) [inline]

Member Data Documentation

double D3cylinder::l [protected]
double D3cylinder::r [protected]
double D3cylinder::sectors [protected]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Friends Defines