CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to mark the fluids from different inlets in interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2023, 01:44
Smile How to mark the fluids from different inlets in interFoam
  #1
New Member
 
Jarvis
Join Date: Jun 2013
Posts: 14
Rep Power: 12
nbyjn is on a distinguished road
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!
Attached Images
File Type: jpg 000.jpg (57.0 KB, 3 views)
nbyjn is offline   Reply With Quote

Old   February 9, 2023, 02:08
Default
  #2
Member
 
Join Date: Feb 2014
Posts: 32
Rep Power: 12
yeharav is on a distinguished road
I think the scalar transport function object is a good start.

look here :
OpenFoam - concentration - variable for specie
yeharav is offline   Reply With Quote

Old   February 9, 2023, 02:17
Default
  #3
New Member
 
Jarvis
Join Date: Jun 2013
Posts: 14
Rep Power: 12
nbyjn is on a distinguished road
Quote:
Originally Posted by yeharav View Post
I think the scalar transport function object is a good start.

look here :
OpenFoam - concentration - variable for specie
Hi yeharav, thank you so much! I will try the scalartransport function.

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!
nbyjn is offline   Reply With Quote

Old   February 9, 2023, 03:42
Default
  #4
Member
 
Join Date: Feb 2014
Posts: 32
Rep Power: 12
yeharav is on a distinguished road
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.
yeharav is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 12:04
interFoam with different gas and liquid inlets phani45 OpenFOAM Running, Solving & CFD 0 May 1, 2017 12:51
k-e & GAMG interFoam Schemitisation Stability Issue JFM OpenFOAM Running, Solving & CFD 3 December 1, 2015 05:58
Input 2 inlets with different fluids keby9 FLUENT 0 December 7, 2012 08:30
two inlets with two different fluids discovolante Main CFD Forum 1 April 13, 2009 08:27


All times are GMT -4. The time now is 04:14.