Injection of particles from surfaces direction

Now, if no normal is provided to an injection in the input file, the
velocity direction of the particles is chosen to be the surface normal.

This allows to inject particles from curves, corners... without having
to provide a direction or declaring multiple injections.
This commit is contained in:
Jorge Gonzalez 2023-02-03 14:03:22 +01:00
commit bc2c29092a
4 changed files with 44 additions and 20 deletions

Binary file not shown.

View file

@ -608,7 +608,8 @@ make
\item \textbf{n}: Real.
Array dimension $3$.
Direction of injection.
This vector is normalized to $1$.
If no value is provided, the normal of the edge is used as the direction of injection.
This vector is normalized to $1$ by the code.
\item \textbf{velDist}: Character.
Array dimension $3$.
Type of distribution function used to obtain injected particle velocity: