Problem: Defining a linear scalar BC with groovyBC
Hello everybody,
I'm new in this forum, so first: greetings everyone Im currently in my 4th semester and was assigned a project which mainly involves openFoam. I was hoping you could help me with a problem, it would be very much appreciated. I have to define a linear temperature distribution as B.C. over the lateral surface of a cylinder (along the z-axis). Since I couldn't find any tutorial how to adapt / write my own B.C. (it's also a bit complicated for a beginner), I wanted to use groovyBC in order to define the boundary condition. My problem: it doesn't work. Or put another way: I screwed something up. I downloaded the swak4Foam GNU tarball, executed wmake all and added libs ("libOpenFOAM.so""libgroovyBC.so"); to my controlDict. I then tried to define my B.C in the 0/T file: Code:
surface valueExpression "100*pos().z"; and used the mag() function since I wasn't enterely sure whether I was dealing with scalar values. Nothing worked. When I execute paraFoam before calculating anything, the default value uniform 1 is always being used. Executing my modified IcoFoam solver, openFoam gives a bug report and crashes. Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // holp |
Quote:
Quote:
|
Thank you very much for your answer, and also my apologies for answering one week late.
I managed to get it running by not defining the variables and only using the valueExpression term. But it's always good to know what caused the problem - might save me quite some trouble in the future. I didn't expect that problem, because every (programming) language I ever dealt with absolutely ignores blank spaces. You programmed swak4Foam? Respect, and thanks a lot! :o holp |
Quote:
Quote:
|
All times are GMT -4. The time now is 06:14. |