|
[Sponsors] |
How to mark the fluids from different inlets in interFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 9, 2023, 02:44 |
How to mark the fluids from different inlets in interFoam
|
#1 |
New Member
Jarvis
Join Date: Jun 2013
Posts: 14
Rep Power: 13 |
Hello foamers,
As shown in the attachment, if there is a cube cavity with air inside, and there are four inlets at the top of the cube. Then the four inlets begin to inject the same kind of liquid (e.g. water) into the cavity. How can I mark the inlet information easily? That is, the water injected into inlet1 is marked as 1 (or anything else), the water injected into inlet2 is marked as 2, and so on. (No need to consider the mixing of liquids, just simulate a short period of time and stop before mixing) Can this be accomplished by scalartransport object?(maybe more than four inlets) Thank you for any advise! |
|
February 9, 2023, 03:08 |
|
#2 |
Member
Join Date: Feb 2014
Posts: 32
Rep Power: 12 |
I think the scalar transport function object is a good start.
look here : OpenFoam - concentration - variable for specie |
|
February 9, 2023, 03:17 |
|
#3 | |
New Member
Jarvis
Join Date: Jun 2013
Posts: 14
Rep Power: 13 |
Quote:
I have another question: are there any limits to the value of scalartransport function? Can I set the initial value of the four inlets as 1,2,3 and 4? Looking forward to your reply! |
||
February 9, 2023, 04:42 |
|
#4 |
Member
Join Date: Feb 2014
Posts: 32
Rep Power: 12 |
Hi,
I never tried, but I think it should. Don't forget to add to field name like so functions { scalar1 { type scalarTransport; libs (solverFunctionObjects); resetOnStartUp no; region cabin; field H2O; fvOptions { ... } } } See https://github.com/OpenFOAM/OpenFOAM...larTransport.H or any documentation for details. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dissimilar fluids for two separate inlets in compressible flow modeling | Zahid123 | SU2 | 1 | September 1, 2022 13:04 |
interFoam with different gas and liquid inlets | phani45 | OpenFOAM Running, Solving & CFD | 0 | May 1, 2017 13:51 |
k-e & GAMG interFoam Schemitisation Stability Issue | JFM | OpenFOAM Running, Solving & CFD | 3 | December 1, 2015 06:58 |
Input 2 inlets with different fluids | keby9 | FLUENT | 0 | December 7, 2012 09:30 |
two inlets with two different fluids | discovolante | Main CFD Forum | 1 | April 13, 2009 09:27 |