Tagged: Fluent-boundary-conditions, multiphase, vof
-
-
March 7, 2022 at 7:32 am
prebenjs
SubscriberI'm using VOF and want to model a outlet where only one of the phases is allowed to exit the domain. The phase exiting is a gas while the phase being held in the domain is a liquid. How do i model this in Fluent ? Is it possible?
March 7, 2022 at 10:20 amaitor.amatriain
SubscriberWhat are you modeling?
March 7, 2022 at 11:01 amprebenjs
SubscriberI'm doing some simulations where I want to remove air, while allowing for the liquid to stay inside the domain. This means that if water is on the outlet, it should not be "drawn" out of the domain. This might also be able to implement via a reaction ? Whats your though on this?
March 7, 2022 at 11:04 amDrAmine
Ansys EmployeeBest to achieve that through the deployment of source terms. You define your outlet as wall and you just remove the phase of interest (including the secondary fluxes) out of the domain via an UDF or Expressions ( better to use UDF to be able to provide source term linearization). Another alternative is to create surface reactions but this is bit complex.
If you guarantee that the outlet is only covered by the phase you want to remove then a velocity outlet can be used.
Cheers!
March 7, 2022 at 11:09 amMurari Iyengar
Ansys EmployeeHi prebenjs To do this, you can edit the phase option under the outlet boundary condition. For more information on VOF, please refer the link below.
14.3. Volume of Fluid (VOF) Model Theory (ansys.com)
March 9, 2022 at 8:09 amprebenjs
Subscriber
Interesting options. The outlets will be at some point be covering the outlets so velocity is not an option. How do you implement this through expressions ? I've actually thought about implementing as an expression but I couldn't figure out how to remove the one phase by doing this ?
Regarding the UDF option. How would this best be implemented ? Through the mass transfer UDF ? Would this only be hooked through the "source term" in the cell zone conditions ?
Surface reactions is another option I've thought about but i couldn't really figure out how to do this. My thoughts was that this needed to be defined as a heterogeneous reaction (since gas to liquid), and then i need to assign the specific wall in the UDF as well, but it stopped there.
March 9, 2022 at 8:11 amprebenjs
SubscriberWhat outlets are you specifically referring to here ? I have not seen anything like what you're talking about ?
March 9, 2022 at 9:51 amDrAmine
Ansys EmployeeUDF: is not a phase change so you require DEFINE_SOURCE to extract the phasic mass and bulk mass. Same can be done with expressions if you can separate some cell layers towards the boundary of interest or by just using cell register which will make the cells where you want to add a sink.
I prefer UDF as it allows for linearization (if you can linearize your sink)
March 9, 2022 at 11:15 amprebenjs
SubscriberThank you for quick response. I don't know how your knowledge is within UDF and expressions in Fluent, but would it be possible to get a short example ? (of a UDF and an expression)
I thought that the easiest way would be to define it via expression and cell registers, but I'm struggling with how this should be implemented and how to write this in the expressions language.
How would such a DEFINE_SOURCE to extract these masses be set up ? I've seen an example of a degassing source (in the manual) which is almost the same principle. But since i'm using VOF i won't need all of the secondary _recoil terms ? (opposed to if using eulerian). Would be really nice with a little example here if you have the knowledge.
March 9, 2022 at 12:01 pmDrAmine
Ansys EmployeeExamples are available in Fluent User's guide for Expressions and Customization manual for UDF. That example for degassing is good one. But you just need to provide a sink term when cell register is True (cell register are boolean).
March 9, 2022 at 12:33 pmprebenjs
SubscriberYes i've seen what is in the User's guide and customization manual but i feel like they lack quite some bit on sink terms and for my application.
That example for degassing must be for eulerian since there are functions for both phases, while in VOF this should be coupled ? or should it be the same ? Could you also explain what is the recoil functions that's in the example ? are these momentum sinks ?
My second question would be how to formulate the right syntax for the expressions since if implemented by expressions would be something similar to:
IF (outlet_cells, IF(volume_fraction="gas-phase", sink term, nothing happens), nothing happens)
But the IF condition should only take a vector so I'm uncertain if this actually would work ? How would a sink-term be formulated in expressions (not any examples of this) ? How do i formulate that nothing should happen? Any other comments on this expression is really appreciated.
March 9, 2022 at 1:56 pmDrAmine
Ansys EmployeeYou require a sink term for secondary phase and bulk. So that should be similar. For momentum you require just one sink term as you just solve for bulk momentum.
With the expressions: is not so correct. You need to tell that if you are in the outlet cells and that volume fraction of gas phase is larger than 0.95 (or something) then you apply a sink term otherwise nothing. Why vector if you can define the losses component wise?
March 9, 2022 at 2:20 pmprebenjs
SubscriberHmm okay. And to implement this at a surface I need to create a user defined memory of cells that is set before the sink (when looking at the degassing example) ? Or is it possible to assign this to a surface in the GUI after interpretation or compilation ? I've just seen that source terms needs to be hooked in the cell boundaries but is it possible to connect to surface ?
I'm just struggling with how to define at location in the expression. So take an example:
IF(Outletcells AND ((Volumefraction = gas-phase)@wall > 0.95, sink term, nothing happens)
How do i define that the volumefraction should be at this location in Expression syntax ? And how do i define that nothign happens ? There isn't really any good examples of this in the user guide.
Viewing 12 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceEarth 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.
Trending discussions- 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
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Contributors-
2508
-
2064
-
1277
-
1088
-
456
Top Rated Tags© 2023 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.
-