|
[Sponsors] |
tutorial for rhoPorousSimpleFoam doesn't make sense |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 4, 2024, 13:40 |
tutorial for rhoPorousSimpleFoam doesn't make sense
|
#1 |
Senior Member
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6 |
Hello,
In OpenFoam-8, when I go to tutorials/compressible/rhoPorousSimpleFoam, there are two cases: angledDuctExplicit and angledDuctImplicit. In both of them, when I go to 0/U, it shows the internalField value as 'uniform (0 0 0)' and the inlet BC as: Code:
inlet { type flowRateInletVelocity; massFlowRate constant 0.1; value uniform (0 0 0); } But when I run the case for either of them, the U field looks great with a definite non-zero value (see image). What is going on here? |
|
June 4, 2024, 14:14 |
follow-up; still doesn't make sense
|
#2 |
Senior Member
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6 |
In this website it describes the two angledDuct cases.
https://www.tfd.chalmers.se/~hani/ku...ukurReport.pdf It says that for the angledDuctImplict case the solver for the velocity does not need to be defined (I don't get it), while for the Explicit case it does, by putting this in system/fvSolution: Code:
solver { U smoothSolver { smoother GaussSeidel; nSweeps 2; tolerance 1e-06; relTol 0.1; }; ... |
|
June 5, 2024, 04:19 |
|
#3 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello Alan,
Code:
inlet { type flowRateInletVelocity; massFlowRate constant 0.1; value uniform (0 0 0); } Have a look here, this is the same reason: What is the difference between the parameters 'value' and 'p0' in totalPressure BC? Yann |
|
June 6, 2024, 15:23 |
Then how is the direction of flow determined?
|
#4 |
Senior Member
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6 |
Yann, Thank you for your response!
If the flow velocity is to be set by the mass flow rate, then by using dimensional analysis, I concluded that it might be: U = MFR/(rho*A) where MFR = mass flow rate, rho = air density, and A = inlet area of the domain or MFR = U*rho*A For my simulation, MFR =(59.16 msec-1)(1.293 kgm-3)(98 m2) = 7496 kgsec-1 But I still don't see how this determines the direction of flow. I tried putting this value for MFR into the U boundary condition, and also 1.0. Attached is an image showing the results in paraView: For an MFR of 7496, I get psychedelic results for p and T, whereas U does nothing. But for an MFR of 1.0, the results are telling: It shows a reduction of pressure in front of the radiator, which is the opposite of what one would expect. The temperature heats up on both sides of the radiator, but that should only happen on the exit side. Again, U does nothing. Could this be because somehow OpenFoam does not know which way the flow is going? At any rate, my BCs are obviously wrong. Attached is a text file showing the key ones, as well as a file showing my fvSchemes and fvSolution. I kind of need some help, and at this point am despairing if I ever will get this simulation sorted out. |
|
June 7, 2024, 04:42 |
|
#5 | ||
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello Alan,
Instead of trying to guess how it works, I suggest to read the header of the boundary condition, it will answer your question: https://github.com/OpenFOAM/OpenFOAM...hVectorField.H Quote:
Regarding your boundary conditions, p_rgh is useless as it is not solved by rhoPorousSimpleFoam. The other BCs look fine to me. Quote:
For MFR=1, you are basically setting an inlet velocity of 0.008m/s, so the temperature increasing on both sides of the radiator is not a big surprise since you have almost no velocity. The velocity picture still shows a color bar going up to 170 m/s, which does not make sense with such a low inlet velocity. It would be again interesting to know where this is happening, and if the location is the same as your other case with higher flowrate. |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Force on linearSpring seems to make no sense | marxioxyz | OpenFOAM Running, Solving & CFD | 0 | March 23, 2024 17:52 |
simpleFoam tutorial PitzDaily using Reynolds stress tensor (LRR RASModel) | dlahaye | OpenFOAM Running, Solving & CFD | 24 | August 4, 2023 15:29 |
CFD Fluent tutorial - Shell and tube heat exchanger - PROBLEM | tom96 | FLUENT | 1 | May 21, 2018 01:24 |
Periodic Fully Developed Pipe Flow - Results dont make sense | twolf59 | FLUENT | 1 | March 6, 2015 00:54 |
a way to make lots of money quick and easy no lies | Dob | Main CFD Forum | 0 | October 10, 2006 17:45 |