Bug in groovyBC in parallel computation
1 Attachment(s)
Greetings, dear Foamers.
I found a bug which seems to be connected with groovyBC. If in groovyBC expressions the "max" and "min" statements are used, the parallel run of simpleFoam and pisoFoam fails. This bug is specific for OF-1.6-ext. I tried the same case in OF-2.1.0 (with some changes specific for 2.1.0 version) and anything worked OK. I attach an example case. It runs simpleFoam OK on a single core but fails in parallel simpleFoam run. Best regards, Aleksey. |
Greetings Aleksey,
Bernhard might not fix this if it's not reported on the dedicated bug tracker for swak4Foam: http://sourceforge.net/apps/mantisbt...?project_id=10 ;) Make sure that you pick swak4Foam as the project to where you report, since it is embedded into Extend's main project. On another note... I think I saw swak4Foam being integrated directly into 1.6-ext's git repo... have you seen or are you using that version? Best regards, Bruno |
Thank you for your reply, Bruno.
I've submitted a bug N 123: https://sourceforge.net/apps/mantisb...iew.php?id=123 The swak4foam was downloaded by command: svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/ OF-1.6-ext I downloaded by means of: git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext and there were neither swak4foam nor groovyBC. Best regards, Aleksey. |
Hi Aleksey,
Quote:
Code:
git merge origin/bgschaid/feature/swak4Foam Code:
wmake all src/swak4Foam Bruno |
I've checked the attached case using branched swak4foam. The same behaviour - simpleFoam works OK on single core and fails on parallel run.
Best regards, Aleksey. |
Hi and a Good Evening :-)!
This issue that you have seen is to do with the OpenFOAM-1.6-ext version of OpenFOAM. I posted this as a bug report quite a while ago under the GroovyBC topic, but after discussing it with Bernhard, it turned out to be an issue with the "-ext" version of OpenFOAM.... specifically, to do with "pTraits". However, can you give me some more details regarding the crash you are having with simpleFoam?? I use GroovyBC with simpleFoam for parallel simulations quite often. Though I get a warning that the "min" or "max" functions return a zero and that the average will be taken (cant remember the exact warning), the simulations work out fine, and the results are also good. By the way..... I am using the latest version of OpenFOAM-1.6-ext from the Git repository. Have a nice day! Philippose |
2 Attachment(s)
Thank you for your reply.
Honestly, the logs are not informative. I attach the log and the terminal output. By the way, does the attached in this thread case runs on your system? Best regards, Aleksey. |
Hi again,
I just tried the case you had posted on this thread with OpenFOAM-1.6-extm and you are right..... it does not work. Initially I thought it might be because the decomposition also cut up the patches into different domains... but I dont think that is the case. Atleast, the decomposition that I got from "decomposePar" had all the patches intact in either one of the two parts. I hope this post catches Bernhard's attention..... He may have something more to say about the issue. I think he is already aware of it. Sorry I could not help further.... Have a nice day ahead :-)! Philippose |
Quote:
|
Quote:
|
Hi !
I am getting the same error in simpleFoam solver of OpenFoam1.6ext with parabolicVelocity boundary condition. My case is a simple laminar pipe flow with a constriction and I am trying to run it on an 8-core cpu. The case is tested for single and multiple cores with surfaceNormalfixedvalue bc and found working. but, when parabolicVelocity boundary condition is used, normal solution without decomposing is working fine. but, when tried to decompose it and run in parallel, it ended up with similar errors mentioned above. Time = 1 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.0105602, No Iterations 2 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.0903589, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.0875971, No Iterations 1 [entropy:2277] *** An error occurred in MPI_Recv [entropy:2277] *** on communicator MPI_COMM_WORLD [entropy:2277] *** MPI_ERR_TRUNCATE: message truncated [entropy:2277] *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort) -------------------------------------------------------------------------- mpirun has exited due to process rank 0 with PID 2277 on node entropy exiting without calling "finalize". This may have caused other processes in the application to be terminated by signals sent by mpirun (as reported here). -------------------------------------------------------------------------- [entropy:02276] 1 more process has sent help message help-mpi-errors.txt / mpi_errors_are_fatal [entropy:02276] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages I have swake4Foam installed, but not used in this particular case. So I think this error is not related to groovyBC. Any advice would be greatly appreciated... and thanks a lot for your time. Regards Jabir |
Quote:
I think it can't be the parabolic-BC as the velocity has already been successfully solved. The problem seems to occur during the pressure solution. Are you using any AMG-type solver for that. Just for testing replace it with one of the CG-solvers. Other than that in my experience that kind of error usually occurs because of an inconsistently compiled OF-version (because of an update after which you chose only to compile some libraries for instance). Sounds like snake oil but sometimes a complete recompilation helps. |
Thanks for your quick response..
Quote:
Quote:
Code:
solvers Thanks a lot for your time. Regards, Jabir |
Quote:
You mentioned the parabolic-BC before. That is the last thing I can think of. Replace that with a normal fixedValue. If the simulation then runs OK then probably the min/max in parallel is the problem |
Good morning!
Quote:
Thanks for your time and consideration. Regards, Jabir |
Greetings to all!
@Jabir: Can you provide an example based on one of the tutorial cases? This way we can more easily try and replicate the problem you're getting. Best regards, Bruno |
1 Attachment(s)
Good evening!
Quote:
Thanks for your help. Regards, Jabir |
Hi Jabir,
OK, only now did I come to the conclusion that the problem is with the "parabolicVelocity" BC itself, not groovyBC :rolleyes: Therefore, I think this should be reported at http://sourceforge.net/apps/mantisbt...?project_id=11, namely project "OpenFOAM-ext release", along with the test case you provided! As for a quick fix, have a look at the tutorial "incompressible/simpleFoam/pitzDailyExptInlet", where you can find in the folder "constant/boundaryData/inlet/" that the values at the "inlet" are being defined for each point on the patch. It may be a bit annoying having to define them manually or with the help of another utility, but for now this would be the somewhat-quickest solution. Best regards, Bruno |
Good morning Bruno!
Thanks a lot for your help and suggestions. So, the problem comes from parabolicVelocity bc, and not from groovyBC. I shall post a bug report in the link you provided. Quote:
Thanks again for your time and help. Regards, Jabir |
Quote:
There is an example-dictionary that comes with swak4Foam |
All times are GMT -4. The time now is 09:45. |