|
[Sponsors] |
April 5, 2011, 11:38 |
Memory leak due to source term???
|
#1 |
New Member
Roland Engberg
Join Date: Jan 2011
Posts: 14
Rep Power: 15 |
Hi!
Simulating a rising bubble I've implemented a moving reference frame similar to the approach outlined in Henrik Rusche's PhD thesis. To take the moving reference frame into account, I've added a "source" term to the UEqn: rhoaF = rho*aF; // density*acceleration (vector) fvVectorMatrix UEqn ( fvm::ddt(rho, U) + rhoaF //---------------------------acceleration term! + fvm::div(rhoPhi, U) - fvm::laplacian(eta, U) - (fvc::grad(U) & fvc::grad(eta)) ); rhoaF is a volVectorField. I've also tried adding rho*aF directly to the UEqn, which seems to make no difference. At the begining of a simulation a bool is read from the solution dictionary to decide whether the reference frame has to be moved. If the reference frame is static, aF is set to (0 0 0) so UEqn remains unchanged. Now if I simulate with a static frame, everything is fine. When I change to the moving reference frame mode, the results are reasonable, but working memory rises constantly. I've run my code with valgrind but couldn't find any errors. Moreover, there are no additional variables declared when I run the code with moving reference frame. At the moment I'm pretty perplexed... Any advice would be welcome! Thanks! Roland |
|
January 10, 2012, 01:37 |
OpenFOAM Memory Leak?
|
#2 |
New Member
Jie (Jay) Zhang
Join Date: Sep 2010
Location: Phoenix, AZ, U.S.
Posts: 28
Rep Power: 16 |
I'm simulating a LES case using pisoFoam with a source term added. The memory requirement increased constantly from 2G to 8G after I ran 4E4 steps. I don't know what is the reason. May I have some advice from you?
Appreciate your help in advance. Jie |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem of SOURCE term gradient in UDS | wind | Fluent UDF and Scheme Programming | 6 | December 1, 2022 15:21 |
transient source term | strakakl | OpenFOAM | 38 | November 19, 2013 02:18 |
How to write source term into scalar Fiel | JimKnopf | OpenFOAM Programming & Development | 0 | March 23, 2011 06:59 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
Adding a momentum source term | segersson | OpenFOAM Running, Solving & CFD | 5 | March 3, 2006 00:06 |