an odd Fatal Error:ExpressionResult::calcIsSingleValueInternal< bool>()
its the output of my case run. its so weird and unclear about the source of the error:
Code:
Create time the case was executing well before the previous installation of OF been cleared by accident. I just install everything again.:confused: |
I guess more information is necessary to help you: Which version of OpenFOAM, which solver.
Googling the error message results in this hit: http://sourceforge.net/p/openfoam-ex...27a1d73c5e73f/ Do you use swak4foam? |
Hi dear Joachim,
I use OF 2.4.0, and the solver is rhoCentralFoam and yes I use groovyBC from swak4Foam code package. is more thing need to be said? |
Greetings to all!
This is one of those situations where I tend to sigh... almost in desperation :(. I won't even bother to rant about this... I say this because, although this question might be useful for many people in the future, the question did not follow the proposed guidelines: http://www.cfd-online.com/Forums/ope...-get-help.html @Ehsan:
Best regards, Bruno |
Hello dear Bruno,
sorry if low information bothered you, because it was running well before and as you helped a lot,all aspects of the problem was investigated and issues had been solved and I wonder why this error is shown after all those things :eek: anyway, I tried to run the case without my edited solver and without parallel run, in the simplest form I used the original solver of OF: rhoCentralFoam and an error on Cp and Cv fields I received in return of the Fatal Error mentioned here. its in http://www.cfd-online.com/Forums/ope...tml#post559385 first of all we may better see what's happening about the specified fields, then if the current error was persisted go for more details and I will submit BCs and other important parts of the case. thanks a lot. |
Hi Ehsan,
Quote:
Simultaneously, since you sent me the case, I could properly diagnose this problem as well. Remember where I wrote in the previous post: Code:
a = 1 == 2; Code:
"port2=(t1+c1r<t_mappedr && t_mappedr<t1+c2r);" The solution was to change this to: Code:
"port2=(t1+c1r<t_mappedr && t_mappedr<t1+c2r) ? 1 : 0;" Now that I think about it, I forgot to point out on the other post that this was the workaround... but since you didn't specifically ask how to fix the problem... Several lines had to be fixed in the case you sent me, because a lot of them were using that "bool" type of expression. The strange thing that I found is that you already had this kind of conversion of boolean to number done in a few places, for example: Code:
fractionExpression "(wall_left) || (port3 && M3>=1) || (port1 && M1>=1)? 1 : 0"; This makes me vaguely remember that we already had seen this problem a few years ago... but I can't remember exactly what happened. Perhaps I provided you a modified swak4Foam that could handle this type of data?... I can't remember... I went Googling a bit and found this post of yours: http://www.cfd-online.com/Forums/ope...tml#post430096 - post #6, but in post #2 on that same thread I indicated an implementation you had a day before #6. The one on post #2 had this same kind of buggy expression: Code:
fractionExpression "port3 || port1 && phi<=0 ? 1 : 0"; Code:
fractionExpression "(port3==1) || (port1==1) && phi<=0 ? 1 : 0"; Anyway, the problem for this current thread seems to be solved. Best regards, Bruno |
dear Bruno, I am very so thankful of you, I don't know how to thank you. you are a real angel ;-)
and yes I think you or Bernhard gave me a modified version of swak4Foam that boolean calculation was included and Bernhard wanted me to leave a comment about the bug in the related page of bugs so that he remember to include it for next versions. haven't you had that version now to give me please? in this thread it seems Boolean issue must have been solved! http://www.cfd-online.com/Forums/ope...tml#post440973 thanks a lot again. |
Hi Ehsan,
I've re-sent you via email the version that Bernhard had done back then. The associated bug report was this one: http://sourceforge.net/p/openfoam-ex...swak4foam/172/ This feature got lost in the commit that jherb pointed out. I guess you'll had to report this bug again, if you want it fixed again. edit: Now that I think about it... the version back then was swak4Foam 0.2.4 and the version I sent you is a bit after that... it's very unlikely it will build with OpenFOAM 2.4.0. Best regards, Bruno |
All times are GMT -4. The time now is 06:22. |