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
Ansys EmployeeFor 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
Ansys EmployeeI'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
Ansys EmployeeWhy 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
Ansys EmployeeCoupled 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
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5268
-
3299
-
2469
-
1308
-
1000
© 2023 Copyright ANSYS, Inc. All rights reserved.