CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Using outlet value as inlet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tobiasS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2021, 07:20
Default Using outlet value as inlet
  #1
New Member
 
Humam
Join Date: Jan 2021
Posts: 3
Rep Power: 5
Humam121 is on a distinguished road
Hello, I am new to OpenFOAM and I'm trying to simulate a simple closed loop heat exchanger system with pseudo pump inside using the buoyant solver. Previously I used buoyantSimpleFoam for the closed loop analysis with zero initial velocity. I have looked around and figured out that I need to break the loop and then insert an inlet patch with a velocity value (and I think I will have to use buoyantPimpleFoam for this?).

Now I need to find a way to use the temperature value (and possibly velocity too) from the outlet patch as value for the inlet patch to retain the model of a closed loop system. I found this thread (Inlet temperature = outlet temperature + offset?) but they used groovyBC and I couldn't find one that's compatible with OF8. How should I approach this?

Thank you for taking your time reading this question
Humam121 is offline   Reply With Quote

Old   October 18, 2021, 15:25
Default
  #2
Member
 
tobiasS's Avatar
 
Hussam
Join Date: Aug 2017
Location: Germany
Posts: 32
Rep Power: 9
tobiasS is on a distinguished road
Hi Humam,
Don't break the loop and you don't need groovy bcs. If I understood the problem correctly, you need to do this:
Keep the closed loop and create cellZone containing the cells which has to represent the pump. The apply the fvOptions ( fvModels as for OF9) entry meanVelocityForce on this cellZone using the desired velocity vector. There is some tutorials about meanVelocityForce in the official OF tutorials.
Regards
Hussam
Humam121 likes this.
tobiasS is offline   Reply With Quote

Old   October 19, 2021, 01:10
Default
  #3
New Member
 
Humam
Join Date: Jan 2021
Posts: 3
Rep Power: 5
Humam121 is on a distinguished road
Quote:
Originally Posted by tobiasS View Post
Hi Humam,
Don't break the loop and you don't need groovy bcs. If I understood the problem correctly, you need to do this:
Keep the closed loop and create cellZone containing the cells which has to represent the pump. The apply the fvOptions ( fvModels as for OF9) entry meanVelocityForce on this cellZone using the desired velocity vector. There is some tutorials about meanVelocityForce in the official OF tutorials.
Regards
Hussam
Hello Hussam, thank you for replying to my question.

I didn't know that I don't have to break the loop and I'm glad there was an easier way to do this! I followed your advice and it works exactly as I hoped it to be. Thank you very much, I'll come again if I encounter any problems.

Regards,
Humam
Humam121 is offline   Reply With Quote

Old   October 28, 2021, 06:14
Default
  #4
Member
 
Join Date: May 2017
Posts: 31
Rep Power: 9
sqek is on a distinguished road
For anyone in the future who finds this thread: there is also an easy way to use an outlet value for an inlet

There's a patch type called outletMappedUniformInlet
You set the outlet patch as normal to zeroGradient or similar, then set the inlet patch to
Code:
<inletPatch>
    {
        type            outletMappedUniformInlet;
        outletPatchName aPatch;
        phi             phi;
        value           uniform 0;
    }
The inlet patch will find the patch named aPatch, calculate the average value, and set the inlet patch's value to that average everywhere
sqek is offline   Reply With Quote

Reply

Tags
closed loop, heat exchanger, inlet bc temperature, loop.


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
Calculate Mass Flowrate and Mass Flow Averaged Total Pressure at inlet and outlet coolcrasher OpenFOAM Post-Processing 7 November 4, 2021 05:57
Reversed flow using pressure inlet and outlet? here_for_help FLUENT 0 September 28, 2018 16:20
massflow of inlet and outlet are not equal knoedl1 OpenFOAM Running, Solving & CFD 11 July 3, 2018 15:00
UDF profile: Fluent method for coupling inlet and outlet I-mech Fluent UDF and Scheme Programming 0 May 10, 2014 11:36
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45


All times are GMT -4. The time now is 11:50.