Difference between revisions of "Surface types"

From Serpent Wiki
Jump to: navigation, search
(Cylinders)
(Cylinders)
Line 70: Line 70:
 
| <tt>cylv</tt>
 
| <tt>cylv</tt>
 
| ''x<sub>0</sub>, y<sub>0</sub>,  z<sub>0</sub>, u<sub>0</sub>, v<sub>0</sub>,  w<sub>0</sub>, r''
 
| ''x<sub>0</sub>, y<sub>0</sub>,  z<sub>0</sub>, u<sub>0</sub>, v<sub>0</sub>,  w<sub>0</sub>, r''
| <math>S(x,y) =  (x - x_0)^2 + (y - y_0)^2 + (z - z_0)^2 (u_0(x - x_0) + v_0(y - y_0) + w_0(z - z_0))^2 - r^2</math>
+
| <math>S(x,y) =  (x - x_0)^2 + (y - y_0)^2 + (z - z_0)^2 - \left(u_0(x - x_0) + v_0(y - y_0) + w_0(z - z_0)\right)^2 - r^2</math>
 
| Infinite cylinder parallel to z-axis, centred at (''x<sub>0</sub>,y<sub>0</sub>''), radius ''r''
 
| Infinite cylinder parallel to z-axis, centred at (''x<sub>0</sub>,y<sub>0</sub>''), radius ''r''
 
|-  
 
|-  

Revision as of 11:48, 23 February 2016

Elementary surfaces

Planes

Notes:

  • Parametric form of the general plane is assumed if four values are provided in the surface card. With six values the plane is assumed to be defined by three points.
Surface name Parameters Surface equation Description
py x0 S(x) = x - x_0 Plane perpendicular to x-axis at x = x0
pz y0 S(y) = y - y_0 Plane perpendicular to y-axis at y = y0
px z0 S(z) = z - z_0 Plane perpendicular to z-axis at z = z0
plane A, B, C, D S(x,y,z) = Ax+ By + Cz - D General plane in parametric form
plane x1, y1, y1, x2, y2, y2, x3, y3, y3 General plane defined by three points

Cylinders

Notes:

  • cyl is a shorthand notation for cylz
Surface name Parameters Surface equation Description
cylx y0, z0, r S(y,z) = (y - y_0)^2 + (z - z_0)^2 - r^2 Infinite cylinder parallel to x-axis, centred at (y0,z0), radius r
cyly x0, z0, r S(x,z) = (x - x_0)^2 + (z - z_0)^2 - r^2 Infinite cylinder parallel to y-axis, centred at (x0,z0), radius r
cylz, cyl x0, y0, r S(x,y) = (x - x_0)^2 + (y - y_0)^2 - r^2 Infinite cylinder parallel to z-axis, centred at (x0,y0), radius r
cylv x0, y0, z0, u0, v0, w0, r S(x,y) =  (x - x_0)^2 + (y - y_0)^2 + (z - z_0)^2 - \left(u_0(x - x_0) + v_0(y - y_0) + w_0(z - z_0)\right)^2 - r^2 Infinite cylinder parallel to z-axis, centred at (x0,y0), radius r

Derived surface types

Prisms