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.

Wall boundary mass flux ?

    • sooraj546
      Subscriber
      Suppose in a single phase problem..... some reaction are happening and the products produced needs to diffuse out through the outer wall........

      Generally in any case when we need a mass transfer across a wall when species transport is enabled....... there is an option under wall boundary condition - species- specify mass fraction or zero diffusing flux etc

      For eg if I specify 0 for a particular species A their then that means outside the wall A overall mass fraction is 0 and diffusion will happen from higher to lower concentration rt ! But my question is what is the rate at which this transport will happen ........ how does fluent determines the mass transfer coefficient for this scenario ?
    • DrAmine
      Ansys Employee
      There is no membrane like BC for species in Fluent. You need to write UDFs.
    • DrAmine
      Ansys Employee

      Looks okay but please refer to the customization manual.

    • Rob
      Forum Moderator

      You should just need to alter the above example to suit the maths and use the source in the species equation. Remember to also remove the same amount of material as a mass sink too.  Assuming "conc_co" is a species concentration, you'll need to find that macro too. 

    • sooraj546
      Subscriber

      Thanks alot for that reply as well sir,


      I am just asking if the representation in the DEFINE_SOURCE


      source = C_UDMI(F_C0(c,t),THREAD_T0(t),0);


      IS THIS CORRECT?

    • DrAmine
      Ansys Employee

      How did you get that document from technical team?

    • sooraj546
      Subscriber

      A friend who is working in in ANSYS forwarded me this AS help...................could you kindly help me out with my doubt sir as its not working


       


      I am just asking if the representation in the DEFINE_SOURCE


      source = C_UDMI(F_C0(c,t),THREAD_T0(t),0);


      IS THIS CORRECT?

    • DrAmine
      Ansys Employee

      No it is not correct. Just use what in the document. 

    • sooraj546
      Subscriber

      when i add the adjust function its working and displaying msg UDF done etc but when i add the source term..........its hows the error as shown below.

      I cant resolve it. Kindly help me out

      ================================================== ============================

      Node 0: Process 2956: Received signal SIGSEGV.

      ================================================== ============================

      ================================================== ============================

      Node 1: Process 13268: Received signal SIGSEGV.

      ================================================== ============================

      ================================================== ============================

      Node 2: Process 4248: Received signal SIGSEGV.

      ================================================== ============================

      ================================================== ============================

      Node 3: Process 3152: Received signal SIGSEGV.

      ================================================== ============================

      ================================================== ============================

    • sooraj546
      Subscriber

      Kindly reply someone......................i dnt have any other technical support 


      the F_YI(f, t, 3) is varying in an increasing pattern shown below and F_R(f, t) varying in an decreasing pattern similarly but dnt know y the overall code is not working.



      C_UDMI(F_C0(f,t),THREAD_T0(t),6)=0.0092976*F_YI(f, t, 3) its running fine

      but when i introduce C_UDMI(F_C0(f,t),THREAD_T0(t),6)=0.0092976*F_YI(f, t, 3)*F_R(f, t); still not working same error exits. what to do

    • DrAmine
      Ansys Employee

      Try using C_R of the neighboring cell.

    • sooraj546
      Subscriber

      SAME error is happening again there is a warning suggesting 


      .c(101) warning C4002: too many actual parameters for macro 'C_R'


      when i use 


      C_UDMI(C_C0(c,t),THREAD_T0(t),6)=3*0.00972*C_YI(c, t, 3)*1000*C_R(c,t)/12; line 101


      any suggestions sir?


       

    • DrAmine
      Ansys Employee
      Now your UDM access is wrong and different to what you have posted.
    • sooraj546
      Subscriber

      thanks a lot everyone.........I have solved it in a different way

    • DrAmine
      Ansys Employee

      Thanks for the update. Please mark this as is solved.

    • sooraj546
      Subscriber

      You should just need to alter the above example to suit the maths and use the source in the species equation. Remember to also remove the same amount of material as a mass sink too.  Assuming "conc_co" is a species concentration, you'll need to find that macro too. 


       


      i am not able to understand that concept completely could you kindly elaborate a bit


    • KgpNiko16
      Subscriber

      Please post here , how you solved the problem ?

    • KgpNiko16
      Subscriber

      Can you step by step tell about how to implement the wall mass flux boundary condition.

Viewing 17 reply threads
  • The topic ‘Wall boundary mass flux ?’ is closed to new replies.
[bingo_chatbox]