|
Bemsolver 2.0
|
#include <bem.h>


Public Member Functions | |
| D3tube (double r_, double r2_, 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 tube with outer radius r_, inner radius r2_ and length l_. | |
| ~D3tube () | |
Protected Attributes | |
| double | r |
| double | r2 |
| double | l |
| double | sectors |
| D3tube::D3tube | ( | double | r_, |
| double | r2_, | ||
| 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 tube with outer radius r_, inner radius r2_ and length l_.
r2_ should be smaller than r_ for the correct norm.
The bottom of the tube 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 tube 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.
| D3tube::~D3tube | ( | ) | [inline] |
double D3tube::l [protected] |
double D3tube::r [protected] |
double D3tube::r2 [protected] |
double D3tube::sectors [protected] |
1.7.3