Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Transient Particle Tracking in CFX

    • jianan.zhao
      Subscriber

      Hi everyone,


       


      I am trying to simulate particle transport in a pipe using transient analysis due to the transient velocity profile at the pipe inlet. A certain amount of particles needs to be injected at time zero (or first time step) at the pipe inlet. However, under transient analysis, the particle injection method has to be mass flow rate or number rate. Can particles be injected using total number under transient analysis in CFX?


       


      I have tried to use variable expressions to define particle mass flow rate which depends on flow time. For exampel, if time step was 0.001 s,


      define


      swtich = if(t < 0.002,1,0)


      and in particle mass flow section I entered


      mdot * swtich 


      where mdot represents the mass flow rate.


      However this method does not work as it reports an error after the simulation has been run.


       


      Any help is appreciated. Thank you.


      Jianan

    • DrAmine
      Ansys Employee
      In CFX number of positions or number of injected particles per unit time can be specified. Total number is only for steady state. Trý using very small number at first instead of zero.
    • jianan.zhao
      Subscriber

      Hi Amine,


      Thank you for your answer. 


      For the problem I am trying to simulate, the particles are injected only at the inital time step. Because the velocity boundary condition at the inlet is time dependent, transient analysis must be used. Is there a way to release particles only at the beginning of the simulation in CFX?

    • DrAmine
      Ansys Employee

      As far as I know not directly. But you can just use adjust the number of positions to be dependent on time and just set to zero after the first time step. Do not set the mass flow rate to zero.

    • DrAmine
      Ansys Employee

      Or set the flow rate to zero but the number of positions proportional to it.

    • jianan.zhao
      Subscriber

      Thank you so much for the advice. The method works!

    • sasingeniero
      Subscriber

       


      Hello,


      I have the same difficulty as you, could you please provide more details about the expressions that worked for you, for both Number Rate and Mass flow rate?


       


      Thank you,


       


      Sebastian

    • jianan.zhao
      Subscriber

      Hi Sebastian,


       


      Please see if following steps is helpful to you. I solve my problem using CCL expression.




      - Enable transient statistics.


      - Define following expressions of the form:


       


      switch = if(t < tinjection,1,0)


      tinjection = 0.010


      Mpdot = 9.41e-4 [kg/s]


       


      where tinjection is the particle injection interval and Mpdot is the required mass flow rate.


       


      - Define the Particle Mass Flow Rate using an expression:


       


      Mpdot*switch


       


      - Choose “Proportional to Mass Flow Rate” for “Number of Positions” and define particle number Np.


       


      Based on this setup, after starting simulation, N particles are injected every time step until flow time >= tinjection


       


      N = time step size * Mpdot * Np




      Jianan

    • DrAmine
      Ansys Employee
      Thanks Jianan.
Viewing 8 reply threads
  • The topic ‘Transient Particle Tracking in CFX’ is closed to new replies.
[bingo_chatbox]