TAGGED: udf-fluent
-
-
January 22, 2021 at 11:07 am
Jack5864
SubscriberHi there,nnI am building a model of ions and ion-exchange membranes in Fluent, using a UDS for the species, and hooking UDFs in order to impose constraints and adjust the transport equations (it gave me much more control than using the standard species transport model).n I am currently modelling the membranes as a porous zone with additional constraints (in the form of fixed value UDFs) and I need to impose an equilibrium relationship at the membrane-solution interface. I was wondering if there is a way such as using a step change or Heaviside function to impose this relationship in a UDF, or if there is a more direct way of imposing it. I've searched through the documentation and haven't been able to find anything.Without the equilibrium, the gradients at the boundary are very large, and fluent runs into trouble handling it.Thanks for your help.nJackn -
January 22, 2021 at 11:16 am
Rob
Forum ModeratorFor membranes we typically use a source+sink approach to move species from one side of the wall to the other. It's a question that keeps coming up so have a look in here. n -
January 22, 2021 at 12:39 pm
Jack5864
SubscriberThanks for your reply. I have looked at other membrane threads, and unfortunately, this approach does not work for my situation, since they're ion-exchange membranes, and there is a concentration equilibrium at the membrane-solution interface, for which I have equilibrium relations. I've tried implementing these using DEFFINE_ADJUST and DEFFINE_PROFILE macros, to specify a relationship on either side of the boundary, but like I said the steep gradients aren't handled well. Do you know of any way to implement something where I can have two concentration instances at a boundary, such as with vapour liquid equilibria? Or alternatively, make fluent ignore the transport equation at the boundary so I can specify the concentrations either side manually?n -
January 22, 2021 at 3:41 pm
Rob
Forum ModeratorI'm not sure I understand why you can't sink+source material. The concentration gradient on each side of the wall is based on the flow in that region. The concentration gradient on either side of the wall is down to the UDF: the solver shouldn't care as there's a wall in the way. n -
January 24, 2021 at 2:16 pm
Jack5864
SubscriberBecause unlike the other models discussed in this forum, I am modelling the membranes as a separate domain, not just a wall. If there is a way to do this using sink and source for a uds, then could you possibly elaborate or link to a discussion on it, since I haven't been able to find an approach which works for my situation?n -
January 25, 2021 at 2:49 pm
Rob
Forum ModeratorWhy do you need to model the thickness of the membrane? If you need to transfer from the free stream to the membrane surface to the core to the surface & finally the other side then you may still want to use walls & a cell zone (possibly solid) in the gap. The same principle applies but you'll need to calculate and keep track of the bit in the middle and any accumulation/loss of the scalar. n -
January 25, 2021 at 7:32 pm
Jack5864
SubscriberMy flow channels are very thin, so the membranes make up a non-negligible volume (about 20% of the total volume), so the thickness must be modeled. Thank you, I'll give that a go. I am wondering, would a wall and a coupled boundary condition work? There isn't much documentation on how a coupled boundary works for a UDS, but on a forum, I read that the flux is matched on either side and the values are allowed to be different. Is this correct?n -
January 26, 2021 at 10:12 am
Rob
Forum ModeratorCoupled is for energy, is heat passes through the material. Not sure about scalars as they tend to be attached to the flow so shouldn't pass through solids unless told to. n -
January 26, 2021 at 2:18 pm
Jack5864
SubscriberOk, the flux of my species scalars are in part driven by an electric field (perpendicular to the flow) as well as through diffusion and flow, so it should be able to go through the walls. Do you know if a coupled boundary would be appropriate? I'm not too sure how they work n
-
Viewing 8 reply threads
- The topic ‘Fluent UDS step function’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3572
-
1193
-
1076
-
1063
-
952
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.