|
[Sponsors] |
October 13, 2021, 07:20 |
Using outlet value as inlet
|
#1 |
New Member
Humam
Join Date: Jan 2021
Posts: 3
Rep Power: 5 |
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 |
|
October 18, 2021, 15:25 |
|
#2 |
Member
Hussam
Join Date: Aug 2017
Location: Germany
Posts: 32
Rep Power: 9 |
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 |
|
October 19, 2021, 01:10 |
|
#3 | |
New Member
Humam
Join Date: Jan 2021
Posts: 3
Rep Power: 5 |
Quote:
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 |
||
October 28, 2021, 06:14 |
|
#4 |
Member
Join Date: May 2017
Posts: 31
Rep Power: 9 |
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; } |
|
Tags |
closed loop, heat exchanger, inlet bc temperature, loop. |
|
|
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 |