Generic 2D shapes

Purpose

Generic 2D shapes can be used for particle insertion and for massflow measurements (examples).

Syntax

The following generic 2D shapes are available:

Shape

Keyword

Description

circle

center

position-vector of the center of the circle [length]

radius

radius of circle through which particles will be inserted [length]

ellipse

center

position-vector of the center of the ellipse [length]

x_axis

axis which corresponds to one of the ellipses semi-axis [length]

x_radius

radius of the ellipse on the axis defined via x_axis [length]

y_radius

radius of the ellipse normal to the x_axis

square

center

position-vector of the center of the square [length]

x_axis

axis which corresponds to one of the squares semi-axis [length]

length

side length of the square [length]

rectangle

center

position-vector of the center of the rectangle [length]

x_axis

axis which corresponds to one of the rectangles semi-axis [length]

x_length

side length of the rectangle aligned with the x_axis [length]

y_length

side length of the rectangle normal to the x_axis [length]

All shape keywords are mandatory.

Examples

insertion mode stream particle_distribution pdd1 massrate 0.1 velocity constant (0, 0, -1) &
   insertion_shape circle center (0, 0, 0.5) radius 0.1

calculate massflow outlet_shape ellipse center (0.05,0.05,0) x_axis (1,0,0) x_radius 0.05 y_radius 0.1 &
   outward_vector (0, 0, -1)

calculate massflow outlet_shape square center (0.05,0.05,0) x_axis (1,0,0) length 0.05 &
   outward_vector (0, 0, -1)

insertion mode stream particle_distribution pdd1 massrate 30 velocity constant (0, 0, -1) &
   insertion_shape rectangle center (0, 0.1, 0.3) x_axis (1, 1, 0) x_length 0.1 y_length 0.05

Description

All generic 2D shapes require a directional vector that functions as normal vector. In case of the insertion this is the velocity vector, for the calculate massflow command this is the outward_vector.

Some example top (upper image) and side (lower image) views for different shapes and orientations:

_images/insertion_shape_top.png _images/insertion_shape_side.png

If more complex shapes are required, please resort to using meshes instead.