Hello,
finally I have my simulation running! the mesh is not perfect: about 4000 non-orthogonal cells out of 600000. However, I want to keep the cell number "low" to understand how to set up everything properly. For the same reason, I switched the turbulence off and considered the flow as laminar. On a second step, I will apply what both suggested above for the mesh generation & the turbulence model. What I have noticed so far is that my pressure residual flattens after about 100 iterations, and at the same time the GAMG solver makes hundreds of iterations. The latter is due to the solver residual, that are quite low indeed: Code:
p Code:
smoothSolver: Solving for Ux, Initial residual = 0.00482599, Final residual = 4.45505e-07, No Iterations 8 Suggestions? mad |
Usually it is convenient to keep the pressure residual lower than the others (say p: 10^-10, U: 10^-8), and to reduce the relTol to zero.
About the non-orthogonal correctors, use a number that allows the pressure equation to converge within the iteration. Best, |
Hi Alberto,
just to understand what I am doing... Quote:
Quote:
Quote:
Thanks a lot for your suggestions. Regards, mad |
Quote:
The user guide says that relTol is the ratio of initial residual to final residual. Meaning when the residual gets below (relTol X inital residual) the solution is stopped. And if you set it to zero then the the absolute residual value u specify is used. So it doesnt take forever.;) I thinkit takes higher of the two numbers (i.e from relTol and the absolute value u specify) as stopping criteria. |
I should have checked par 4.5.1.1 of the user guide!
Summarizing:
Quote:
Quote:
Thank you! mad |
Hi maddalena,
This is the exact text from the UG: Quote:
Quote:
Quote:
Quote:
|
Quote:
Quote:
Best, |
2 Attachment(s)
Thank you to both of you for the suggestions!
Now I have this fvSolution: Code:
p Code:
SIMPLE Code:
Time = 50 Thus, I analyzed the velocity and pressure distribution on the domain. What I can see is that velocity increases locally on the small pipe, in a position where the flow is supposed to follow pipe theory strictly. What I think is that this is a consequence of the mesh, since its grading is not really nice there, see the attached picture. Am I right? I definitely should follow your advices on mesh generation... Cheers mad |
Well, yes, the mesh needs love :-)
|
1 Attachment(s)
Hi everyone,
I finally got my simulations running (including turbulence), and everything went nice with the first case that I described in the previous posts. :) Then I change geometry (refer to the new file attached)
However, what I really want to test is to keep the mass flow fixed and calculate the pressure losses on the system. So, I am thinking to change the condition on the fan. Instead of using a standard fan BC, use the following:
What do you think about this approach? Is it logical? or are there any other solution I can use to mantain flow rate constant inside the closed loop system? Regards mad |
Hi,
I don't have any experience of fan BC as such. But, when i think of such situation, when in real situation my mass flow is not enough, i would increase fan rpm. U know what i mean?? i will increase fan power and thus the pressure difference across the fan. So, how about doing this?? Increase the pressure across the fan till you get the right mass flow rate. I am sure you can estimate a rough value by simple hand calculations. Just a suggestion..:) Have fun.. Nilesh |
Hello,
Quote:
In any case... I run the simulation as described yesterday during the night. Not checked results yet, however I guess there is something wrong with this approach: Code:
Time = 500 mad |
Hi,
I opened a new thread on the subject: http://www.cfd-online.com/Forums/ope...flow-rate.html. However, you are my two gurus on the closed loop pipe flow subject ;) and your opinion is important... What do you think about the approach described there? mad |
Hello FOAMers,
I need one more suggestion on the turbulence model. As I said before, for the case I am simulating: Quote:
Code:
Patch 35 named xxx y+ : min: 0.636791 max: 4.52537 average: 1.14473 cheers, mad |
Hi everybody,
Nice thread again madalena. I'm currently working on modeling a closed loop circuit with both a fan and a porous zone (actually an heat exchanger). To do that I used simpleFoam k-omega SST model, a fan BC, and the brand new porousBafflePressure BC. This is something I used to do in Fluent, and I try to do it on OpenFOAM now. I succeeded in making the whole mesh with SHM and the createBaffle utility (and I'm quite proud of it). I have ran the simulation with only the fan, worked well except that the wake of the fan didn't converge... but still the flow looks OK. When I added the porous baffle, then it became a mess. The case explodes at the tenth iteration. From what I have read in your thread i think about many ways of improving my case: 1) maybe switch from simpleFoam to another solver, maybe a transient one like pimpleFoam (this is the solver used for the fan tutorial actually) 2) adjust schemes constants like you did, but i have to admit I'm not comfortable with that, so is it worth playing with it??? 3) maybe splitting my case in such a way that my fan is no longer a baffle but a distinct inlet and an outlet with classical inlet/outlet BCs What do you think about it? I'm wondering if those cases are naturally instables due to the closure of the circuit.... Thanks ahead for your remarks about this subject... Sylvain |
All times are GMT -4. The time now is 23:44. |