Particles: continuous injection during time step
Posted: Wed Jun 08, 2011 7:26 pm
Hello,
in USLAG1() the parameter INJCON enables the continuous injection of particles during a lagrangian time step.
This is done by shifting the position of new particles in the grid by alpha*timestep*velocity, where alpha is a random number in the range 0 ..1.
This approach is fine. But I doubt it really works, because I can't find the code line where the velocities are initialized correctly.
The sequence of subroutine calls and actions in LAGENT():
As far as I understand the code the call to lagnwc() must be placed after the velocity initialization and after the call to uslapr() with idvar = 1.
Kind regards,
Ralf Becker
in USLAG1() the parameter INJCON enables the continuous injection of particles during a lagrangian time step.
This is done by shifting the position of new particles in the grid by alpha*timestep*velocity, where alpha is a random number in the range 0 ..1.
This approach is fine. But I doubt it really works, because I can't find the code line where the velocities are initialized correctly.
The sequence of subroutine calls and actions in LAGENT():
- - USLAG2() -> setting of boundary conditions
- call either LAGNEW() or LAGNPR() -> determination of the face/cell where the particles are created
- INJCON .eq. 1 then LAGNWC() -> shift positions of particles
- initialize particle velocity (array ETTP) with the values from the array RUSLAG
- USLAPR() -> setting of velocity/diameter/weight profiles by the user
As far as I understand the code the call to lagnwc() must be placed after the velocity initialization and after the call to uslapr() with idvar = 1.
Kind regards,
Ralf Becker