Fluids

Fluids

Simulation sorption with UDF file

    • Trailer
      Subscriber

      Hello everyone,

      I am trying to simulate sorption with ANSYS Fluent. There for I have an L-Solid with an inlet, outlet and a wall.

      In the L-Solid a small stream of N2 goes from inlet to outlet, from this stream I want an adsorption on the wall.

      There for I worte following UDF file:

      #include "udf.h"

      DEFINE_ADJUST(remove_N2,domain)
      {
          real vol_N2;
          Thread *t, *t0;
          face_t f;            /*Face thread*/
          cell_t c;            /*Cell thread*/
          domain = Get_Domain(1);
          t = Lookup_Thread(domain,8);    /* Surface thread ID from Wall */
          begin_f_loop(f,t)
              {
              c = F_C0(f,t);
              t0 = THREAD_T0(t);
              C_YI(c,t0,0)=C_YI(c,t0,0)-0.4;
              vol_N2=C_YI(c,t0,0);
              }
          end_f_loop(f,t)
      }

      It works that there is less N2 at the outlet than at the inlet but no N2 is accumulated at the wall, instead the other walls of the component have an N2 uptake.

      I have checked the net, components name and ID without success.

      Does someone maybe know were the problem is?

      Thank you very much.

       

    • DrAmine
      Ansys Employee

      At the wall we can now in this actual release provide a Flux for specie for removal or addition. The current BC at the wall is just zero flux.

      A removal won't lead to accumulation: I think you require a sort of deposition. Check Wall Surface Reactionin the Guides.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.