|
[Sponsors] |
July 2, 2013, 13:39 |
pyFoamPotentialRunner error
|
#1 |
Senior Member
James
Join Date: May 2013
Posts: 116
Rep Power: 12 |
Hi Foamers,
I am trying to initialize my solution with potentialFoam to use it as input to simpleFoam. For that purpose, I use pyFoamPotentialRunner.py. I get this error: Create time Create mesh for time = 0 Reading field p Reading field U Calculating potential flow Using dynamicCode for functionObject difference at line 47 in "/home/cfd2/OpenFOAM/Isma-2.1.0/Pruebaconvelocidadpyfoampotentialrunner/system/controlDict::functions::difference" Creating new library in "dynamicCode/error/platforms/linux64GccDPOpt/lib/liberror_e92448da6ae10bc777e0869670f72a48fd0673f1. so" Invoking "wmake -s libso /home/cfd2/OpenFOAM/Isma-2.1.0/Pruebaconvelocidadpyfoampotentialrunner/dynamicCode/error" wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file functionObjectTemplate.C Making dependency list for source file FilterFunctionObjectTemplate.C '/home/cfd2/OpenFOAM/Isma-2.1.0/Pruebaconvelocidadpyfoampotentialrunner/dynamicCode/error/../platforms/linux64GccDPOpt/lib/liberror_e92448da6ae10bc777e0869670f72a48fd0673f1. so' is up to date. DICPCG: Solving for p, Initial residual = 1, Final residual = 0.000398875, No Iterations 1001 DICPCG: Solving for p, Initial residual = 0.330204, Final residual = 9.96235e-07, No Iterations 889 DICPCG: Solving for p, Initial residual = 0.0439428, Final residual = 9.91653e-07, No Iterations 859 DICPCG: Solving for p, Initial residual = 0.01177, Final residual = 9.80963e-07, No Iterations 764 DICPCG: Solving for p, Initial residual = 0.00360687, Final residual = 9.96712e-07, No Iterations 552 DICPCG: Solving for p, Initial residual = 0.00127418, Final residual = 9.77746e-07, No Iterations 470 DICPCG: Solving for p, Initial residual = 0.000491449, Final residual = 9.96479e-07, No Iterations 569 DICPCG: Solving for p, Initial residual = 0.000205181, Final residual = 9.37787e-07, No Iterations 50 DICPCG: Solving for p, Initial residual = 9.0933e-05, Final residual = 9.92036e-07, No Iterations 18 DICPCG: Solving for p, Initial residual = 4.31694e-05, Final residual = 9.47567e-07, No Iterations 8 DICPCG: Solving for p, Initial residual = 2.18469e-05, Final residual = 9.85357e-07, No Iterations 8 continuity error = 0.00402446 Interpolated U error = 1.21676e-09 Looking up field U Reading inlet velocity uInfX #0 Foam::error:rintStack(Foam::Ostream&) in "/home/cfd2/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigSegv::sigHandler(int) in "/home/cfd2/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::errorFunctionObject::write() at system/controlDict::functions::difference:62 #4 Foam::OutputFilterFunctionObject<Foam::errorFuncti onObject>::end() at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:191 #5 Foam::functionObjectList::end() in "/home/cfd2/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #6 in "/home/cfd2/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/potentialFoam" #7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #8 in "/home/cfd2/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/potentialFoam" Segmentation fault (core dumped) PyFoam WARNING on line 213 of file /usr/local/lib/python2.7/dist-packages/PyFoam/Applications/PotentialRunner.py : Trigger called: Resetting fvSchemes and fvSolution Killing PID 3288 PyFoam WARNING on line 247 of file /usr/local/lib/python2.7/dist-packages/PyFoam/Execution/FoamThread.py : Process 3288 was already dead Getting LinuxMem: [Errno 2] No such file or directory: '/proc/3288/status' Anyone knows what's happening? How can I correct it? And in the case that pyFoamPotentialRunner doesn give an error, should I run simpleFoam later or pyFoam just do it automatically? I have never seen a simulation like this, so I have no idea in how to proceed. All kind of help (ideas, tutorials, links...) will be really much apreciated. The beginnings are always hard... |
|
July 2, 2013, 15:05 |
|
#2 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
For a tutorial on PyFoam see the first part of the training presentation at this years workshop (it is linked from the PyFoam-page on the Wiki). Mind: there is no example on pyFoamPotentialRunner.py in that
__________________
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 |
|||
July 3, 2013, 10:31 |
|
#3 |
Senior Member
James
Join Date: May 2013
Posts: 116
Rep Power: 12 |
Hi Bernhard,
First of all, thanks for your fast reply. I am not sure if I am understanding. I post my controlDIct file: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application simpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 1000; deltaT 1; writeControl timeStep; writeInterval 5; purgeWrite 0; writeFormat binary; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable yes; // ************************************************** *********************** // I can't see any function-entry in the file. Do you refer at the controlDict of my case or in the generic source code of controlDict?What's the path to this file? And other question, how can I tell OF to take the potentialFoam solution as initial solution for simpleFoam? Thanks in advance for suggestions! |
|
July 3, 2013, 12:33 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Strange as it may seem: do exactly the opposite of what I said before. Add an empty list of functionObjects to the controlDict. Something like Code:
functions { }
__________________
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 |
||
July 3, 2013, 12:35 |
|
#5 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
simpleFoam is extremely simple-minded (like all OF-solvers). Whatever U it finds in the 0-directory it uses as the initial condition. So if 0/U was generated by potentialFoam it uses that. You don'T have to tell it anything
__________________
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 |
|
July 3, 2013, 12:58 |
|
#6 |
Senior Member
James
Join Date: May 2013
Posts: 116
Rep Power: 12 |
Thanks Bernhard, now it Works!
But I think this is not a good initial solution for my simpleFoam simulation. Do you know why pressure driven flows explodes when specifying a fixedValue both on inlet and outlet? Anyway thank you so much, I have learned how to use pyFoamPotentialRunner, so this is great! Congratulations for your knowledge and thanks for share it! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 09:00 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 09:17 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |