
[Sponsors] 
February 11, 2009, 06:38 
Dear all,
I tried to run LES

#1 
Member
Ivan Lau
Join Date: Mar 2009
Location: Hong Kong
Posts: 56
Rep Power: 16 
Dear all,
I tried to run LES with timeVaryingMappedPatch However, I got the following error Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status'  I found some information from the website: Step 1: Find out the current limit To find out the current file descripter limit for a given use, log in as the particular user and run the following command. $ ulimit n By default on Debian it would be 1024. Step 2: Increase the limit You would have to edit /etc/security/limits.conf. You will find details on how to setup different limits in limits.conf itself. The record that you have to put in should look like the following. username hard nofile 2048 Step 3: Log out and Log back in You would have to log out and log back in as the user that we updated the file descripter limit. Then run the following command. $ ulimit n You should see the updated file descripter limit.  However, the solution above is for general Linux case. Now, it is related to OpenFOAM. Does anyone what happen to this? Can I continue? Regards, Ivan 

February 11, 2009, 08:56 
Hi Ivan!

#2 
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 50 
Hi Ivan!
<bernhard> Are you using by any chance PyFoam to run your solver? Because the error and the message looks suspiciously like something PyFoam would say when it has to open a huge lot of files in the analyzed directory. Usually because it can't tell one timestep from the next and therefor opens a new file for (for instance) for every solver call. So it might be a PyFoam problem. If so: could you tell me which solver it is (some have a different format for "Time = 3.45" and then PyFoam can't distinguish timesteps) and could you check whether for consecutive timesteps the "Time = " LEXICALLY differs (for instance with "Time = 1.000456" and a timestep of 10^7 the next timestep might print "Time = 1.000456" too) Bernhard
__________________
Note: I don't use "Friend"feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request 

February 11, 2009, 11:17 
Hi, Bernhard,
You are so ri

#3 
Member
Ivan Lau
Join Date: Mar 2009
Location: Hong Kong
Posts: 56
Rep Power: 16 
Hi, Bernhard,
You are so right! I use your pyFoamPlotRunner.py script to run LES (solver = oodles). My time step = 0.0005s and write interval = 0.005s This error start to around 1.2s (I resume the run from 0.5s). The consecutive time step should be ok as I allow enough significant number. Anyway, I hope this is helpful. Thanks for your quick reply. Please advise what I should do as I plan to stop the solver and run from the previous steps. Should I restart from the "first" time step that has this error? Or, can I let it continue from last time step? Regards, Ivan  A sample log is as the follow:  Time = 1.2735 Courant Number mean: 0.00055676365 max: 0.65250404 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Updating boundary gradient of U::outlet by CrankNicholson and normal schemes Saving oldtime boundary values of U::outlet Boundary gradient of U::outlet has already been updated Boundary gradient of U::outlet has already been updated DILUPBiCG: Solving for Ux, Initial residual = 0.00022111803, Final residual = 3.7128709e09, No Iterations 1 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' DILUPBiCG: Solving for Uy, Initial residual = 0.003009986, Final residual = 6.0641951e08, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 0.0021211077, Final residual = 3.167597e08, No Iterations 1 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' GAMG: Solving for p, Initial residual = 0.067676383, Final residual = 9.03386e07, No Iterations 94 GAMG: Solving for p, Initial residual = 8.6775994e07, Final residual = 8.6775994e07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.6775994e07, Final residual = 8.6775994e07, No Iterations 0 time step continuity errors : sum local = 1.1017799e12, global = 1.3554078e13, cumulative = 5.9256848e12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes GAMG: Solving for p, Initial residual = 9.1227694e05, Final residual = 9.7391603e07, No Iterations 9 GAMG: Solving for p, Initial residual = 9.7391419e07, Final residual = 9.7391419e07, No Iterations 0 GAMG: Solving for p, Initial residual = 9.7391419e07, Final residual = 9.7391419e07, No Iterations 0 time step continuity errors : sum local = 1.2365641e12, global = 2.2237115e13, cumulative = 6.148056e12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes ExecutionTime = 103027.35 s ClockTime = 105399 s Calculating averages Time = 1.274 Courant Number mean: 0.00055674882 max: 0.65367521 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes Saving oldtime boundary values of U::outlet Boundary gradient of U::outlet has already been updated Boundary gradient of U::outlet has already been updated DILUPBiCG: Solving for Ux, Initial residual = 0.00023278593, Final residual = 3.8494851e09, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 0.0030740255, Final residual = 6.0290512e08, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 0.002194585, Final residual = 3.2188904e08, No Iterations 1 GAMG: Solving for p, Initial residual = 0.058895772, Final residual = 8.8040836e07, No Iterations 86 GAMG: Solving for p, Initial residual = 8.6251892e07, Final residual = 8.6251892e07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.6251892e07, Final residual = 8.6251892e07, No Iterations 0 time step continuity errors : sum local = 1.1464957e12, global = 1.298191e13, cumulative = 6.2778751e12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes GAMG: Solving for p, Initial residual = 8.5971209e05, Final residual = 8.7121062e07, No Iterations 10 GAMG: Solving for p, Initial residual = 8.7121287e07, Final residual = 8.7121287e07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.7121287e07, Final residual = 8.7121287e07, No Iterations 0 time step continuity errors : sum local = 1.1580491e12, global = 2.3653425e13, cumulative = 6.5144093e12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes ExecutionTime = 103084.46 s ClockTime = 105456 s Calculating averages Time = 1.2745 Courant Number mean: 0.00055674721 max: 0.65478406 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes Saving oldtime boundary values of U::outlet Boundary gradient of U::outlet has already been updated Boundary gradient of U::outlet has already been updated Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' DILUPBiCG: Solving for Ux, Initial residual = 0.0002272263, Final residual = 3.7851613e09, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 0.0030371887, Final residual = 5.9868971e08, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 0.002188867, Final residual = 3.1912482e08, No Iterations 1 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' GAMG: Solving for p, Initial residual = 0.053964779, Final residual = 9.4404547e07, No Iterations 76 GAMG: Solving for p, Initial residual = 9.215077e07, Final residual = 9.215077e07, No Iterations 0 GAMG: Solving for p, Initial residual = 9.215077e07, Final residual = 9.215077e07, No Iterations 0 time step continuity errors : sum local = 1.2835445e12, global = 1.4119057e13, cumulative = 6.3732188e12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes GAMG: Solving for p, Initial residual = 8.0300075e05, Final residual = 8.6677323e07, No Iterations 10 GAMG: Solving for p, Initial residual = 8.6677062e07, Final residual = 8.6677062e07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.6677062e07, Final residual = 8.6677062e07, No Iterations 0 time step continuity errors : sum local = 1.2073061e12, global = 2.3840291e13, cumulative = 6.1348159e12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes ExecutionTime = 103137.21 s ClockTime = 105509 s 

February 11, 2009, 12:57 
Hi Ivan!
Restart shouldn't

#4 
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 50 
Hi Ivan!
Restart shouldn't be a problem. Could you check the PyFoamRunner.oodles.analyzeddirectory (name may be slightly different depending on the PyFoamVersion) how many files are there (my suspcion is it should be hundreds for that error to occur). Which options are you using for the Runner? Are you using a customRegexpfile? Does the same error occur when you do "pyFoamPlotWatcher.py PyFoamRunner.oodles.logfile" (again: fileame may be slightly different) Strange. Bernhard
__________________
Note: I don't use "Friend"feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request 

February 19, 2009, 02:43 
Hi Bernhard,
Sorry, I didn'

#5 
Member
Ivan Lau
Join Date: Mar 2009
Location: Hong Kong
Posts: 56
Rep Power: 16 
Hi Bernhard,
Sorry, I didn't notice your reply and I was working on something else during this period. I restarted it too without using pyFoamPlotRunner.py! ulimit n gives me 1024 which is default. Yes, it is over 1024, and this is the error. I didn't set any option, I just do pyFoamPlotRunner.py (not pyFoamPlotWatcher.py) mpirun hostfile ... oodles parallel Oops! As my harddrive was full, I cleaned up and lost that folder. Sorry. Regards, ivan 

July 1, 2009, 04:31 

#6 
Member
JeanPeer Lorenz
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 33
Rep Power: 16 
Hi Bernhard,
I just stumbled over the problems mentioned above. The PyFoamRunner crashed with error "IOError: [Errno 24] Too many open files". Here are the last log lines. Code:
Time = 1.99539 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.29231e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.29182e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.29134e20 Max(gamma) = 1.00028 DICPCG: Solving for pd, Initial residual = 0.0113928, Final residual = 0.00010687, No Iterations 19 DICPCG: Solving for pd, Initial residual = 0.00249276, Final residual = 2.2737e05, No Iterations 36 DICPCG: Solving for pd, Initial residual = 0.003959, Final residual = 3.87538e05, No Iterations 23 DICPCG: Solving for pd, Initial residual = 0.00119743, Final residual = 9.91234e08, No Iterations 101 time step continuity errors : sum local = 1.82447e15, global = 1.24033e16, cumulative = 3.29632e06 ExecutionTime = 61591 s ClockTime = 61681 s Courant Number mean: 1.54139e06 max: 0.284435 deltaT = 1.58918e07 forces output: forces(pressure, viscous)((32447.5 308193 103836) (8.14909 2.4303 21.7292)) moment(pressure, viscous)((21540.8 126202 407786) (1.72709 28.5359 1.59926)) Time = 1.99539 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.29083e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.29032e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28981e20 Max(gamma) = 1.00028 DICPCG: Solving for pd, Initial residual = 0.0108749, Final residual = 0.000104919, No Iterations 29 DICPCG: Solving for pd, Initial residual = 0.0029968, Final residual = 2.83445e05, No Iterations 28 DICPCG: Solving for pd, Initial residual = 0.00395811, Final residual = 3.72463e05, No Iterations 25 DICPCG: Solving for pd, Initial residual = 0.00122734, Final residual = 9.73827e08, No Iterations 102 time step continuity errors : sum local = 1.9901e15, global = 1.28899e16, cumulative = 3.29632e06 ExecutionTime = 61601.5 s ClockTime = 61691 s Courant Number mean: 1.62088e06 max: 0.283189 deltaT = 1.68352e07 forces output: forces(pressure, viscous)((33706.2 320823 107013) (8.01442 2.15802 21.6129)) moment(pressure, viscous)((21981.8 129859 422299) (1.72472 28.3819 1.2422)) Time = 1.99539 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28927e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28873e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28818e20 Max(gamma) = 1.00028 DICPCG: Solving for pd, Initial residual = 0.0109102, Final residual = 9.56347e05, No Iterations 18 DICPCG: Solving for pd, Initial residual = 0.00239302, Final residual = 2.372e05, No Iterations 35 DICPCG: Solving for pd, Initial residual = 0.00372946, Final residual = 3.34371e05, No Iterations 25 DICPCG: Solving for pd, Initial residual = 0.00118738, Final residual = 9.95898e08, No Iterations 100 time step continuity errors : sum local = 2.27052e15, global = 3.92834e17, cumulative = 3.29632e06 ExecutionTime = 61611.7 s ClockTime = 61701 s Courant Number mean: 1.71202e06 max: 0.286551 deltaT = 1.7625e07 forces output: forces(pressure, viscous)((34023.9 324833 109190) (7.86349 1.81874 21.5097)) moment(pressure, viscous)((22450.6 132479 427404) (1.72513 28.2456 0.797366)) Time = 1.99539 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28761e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28704e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28647e20 Max(gamma) = 1.00028 DICPCG: Solving for pd, Initial residual = 0.0117827, Final residual = 0.000109719, No Iterations 31 DICPCG: Solving for pd, Initial residual = 0.00365853, Final residual = 3.65785e05, No Iterations 32 DICPCG: Solving for pd, Initial residual = 0.00400006, Final residual = 3.46489e05, No Iterations 28 DICPCG: Solving for pd, Initial residual = 0.00122108, Final residual = 9.59937e08, No Iterations 110 time step continuity errors : sum local = 2.37101e15, global = 9.83986e17, cumulative = 3.29632e06 ExecutionTime = 61622.7 s ClockTime = 61712 s Courant Number mean: 1.78704e06 max: 0.297048 deltaT = 1.78001e07 forces output: forces(pressure, viscous)((34438.1 329168 109112) (7.70367 1.43348 21.4606)) moment(pressure, viscous)((22279.2 132147 431162) (1.73255 28.18 0.29189)) Time = 1.99539 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28589e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28531e20 Max(gamma) = 1.00028 MULES: Solving for gamma Liquid phase volume fraction = 0.923305 Min(gamma) = 6.28473e20 Max(gamma) = 1.00028 DICPCG: Solving for pd, Initial residual = 0.00987204, Final residual = 8.25315e05, No Iterations 20 DICPCG: Solving for pd, Initial residual = 0.00218102, Final residual = 1.97917e05, No Iterations 36 DICPCG: Solving for pd, Initial residual = 0.00349928, Final residual = 3.23379e05, No Iterations 25 DICPCG: Solving for pd, Initial residual = 0.00112364, Final residual = 9.77603e08, No Iterations 101 time step continuity errors : sum local = 2.39084e15, global = 1.01181e16, cumulative = 3.29632e06 ExecutionTime = 61633.1 s ClockTime = 61723 s Traceback (most recent call last): File "/home/acuser3/OpenFOAM/ThirdParty/Python/bin/pyFoamRunner.py", line 5, in ? File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Applications/Runner.py", line 52, in __init__ File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Applications/PyFoamApplication.py", line 103, in __init_ _ File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Applications/Runner.py", line 104, in run File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Execution/BasicRunner.py", line 196, in start File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Execution/AnalyzedRunner.py", line 20, in lineHandle File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Execution/AnalyzedCommon.py", line 45, in lineHandle File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/LogAnalysis/FoamLogAnalyzer.py", line 80, in analyzeLine File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py", line 71, in doAnaly sis File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/LogAnalysis/ExecutionTimeLineAnalyzer.py", line 68, in a ddToFiles File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Basics/OutFileCollection.py", line 83, in write File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Basics/OutputFile.py", line 45, in write File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Basics/BasicFile.py", line 48, in writeLine File "/home/acuser3/OpenFOAM/ThirdParty/Python/lib/python2.3/sitepackages/PyFoam/Basics/BasicFile.py", line 38, in getHandle IOError: [Errno 24] Too many open files: './wig_06_u.rasInterFoam.analyzed/wallClockTime_113' Getting LinuxMem: [Errno 24] Too many open files: '/proc/15241/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/15241/status' If you need additional information just tell. Regards, JeanPeer 

July 1, 2009, 10:16 

#7  
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 50 
Quote:
Try this to fix this: set timePrecision in system/controlDict to a higher value (9 should be sufficient for your case). This should (never tried it) give you more digits of the time and thus the chance to distinguish the timesteps Bernhard 

Thread Tools  Search this Thread 
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
connect failed with errno%3d113  wedsall  OpenFOAM Running, Solving & CFD  2  November 3, 2008 04:17 
btl_tcp_endpointc572mca_btl_tcp_endpoint_complete_connect connect failed with errno%3d113  rangesh  OpenFOAM Running, Solving & CFD  0  November 3, 2008 00:11 
CFX on Linux  Ioakimidis Konstantinos  CFX  7  August 3, 2007 12:05 
Can Starcd for linux run in Linux Debian? help  deisler  Siemens  1  February 28, 2007 04:27 
Linux ???  Albert  Siemens  21  February 26, 2003 21:12 