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 |
|---|---|---|
|
|
position-vector of the center of the circle [length] |
|
radius of circle through which particles will be inserted [length] |
|
|
|
position-vector of the center of the ellipse [length] |
|
axis which corresponds to one of the ellipses semi-axis [length] |
|
|
radius of the ellipse on the axis defined via x_axis [length] |
|
|
radius of the ellipse normal to the x_axis |
|
|
|
position-vector of the center of the square [length] |
|
axis which corresponds to one of the squares semi-axis [length] |
|
|
side length of the square [length] |
|
|
|
position-vector of the center of the rectangle [length] |
|
axis which corresponds to one of the rectangles semi-axis [length] |
|
|
side length of the rectangle aligned with the x_axis [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:
If more complex shapes are required, please resort to using meshes instead.