Merge branch 'issue/injectionNormal' into 'development'

The normal vector in an injection is now normalized to 1

See merge request JorgeGonz/fpakc!16
This commit is contained in:
Jorge Gonzalez 2021-04-14 19:00:08 +00:00
commit 53827ec117
3 changed files with 5 additions and 4 deletions

Binary file not shown.

View file

@ -547,13 +547,14 @@ make
\begin{itemize}
\item \textbf{A}: Ampere.
\item \textbf{sccm}: Standard cubic centimeter.
\item \textbf{part/s}: Particles (real) per second.
\end{itemize}
\item \textbf{v}: Real.
Module of velocity vector, in $\unitfrac{m}{s}$.
\item \textbf{n}: Real.
Array dimension $3$.
Direction of injection.
Norm of vector must be equal $1$.
This vector is normalized to $1$.
\item \textbf{velDist}: Character.
Array dimension $3$.
Type of distribution function used to obtain injected particle velocity:

View file

@ -89,9 +89,9 @@ MODULE moduleInject
INTEGER:: nVolColl
self%id = i
self%vMod = v/v_ref
self%n = n
self%T = T/T_ref
self%vMod = v / v_ref
self%n = n / NORM2(n)
self%T = T / T_ref
self%species => species(sp)%obj
SELECT CASE(units)
CASE ("sccm")