Hi. I don't know if it's because I'm using openFoam 2.0.0, but I get this error after trying to run the code
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
Quote:
|
Quote:
Code: Code:
#include "fvCFD.H" Code:
Making dependency list for source file inletBC.C |
Quote:
If I'm wrong then I can't help you. If I'm right you'll either have to recompile OF or find out which compiler was actually used for your distro Good luck |
Quote:
|
Quote:
word patchName(args.args()[3]); that is pre 1.5-convention. Use 0 instead of 3. |
Ahh. Thank you. I fixed this since I am running OF 2.0.0. It worked, but then I get the same error further into the code...
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
Quote:
If that is too much action for you sprinkle the code with "Info << "-statements and see how far it gets (my personal guess is that you specified a nno-existing patch, because the code never checks whether the patch is really there) |
Thank you for the Info<< sprinkler idea. I did it and realized that my loop wasn't accepting the parameters in forAll(). Looking further into the problem I noticed that the patchID was -1 for all patches meaning it wasn't retrieving the patch correctly. I just fed the program the value 4 for my inlet and it works fine now.
Thanks again! |
Quote:
hi Markc I am a new hand in OpenFoam, in my case I want to set the blasius profile at inlet, but I have no ideal about these. I try to use your file in my case, but it doesn´t work, because the youdidn´t set the type name of the new boundary, if I use setboundarygamma in 0file, It couldn´t be recognize. please forgive me if my question is stupid. Thanks in advance. now I know it, thank you very much. I mix the solver and the new boundary condition. thank you very much. Taylor |
hi,
I am sorry if I disturb you. do you solve the blasuis boundary condition in OpenFoam? now I am crazy for this problem. Taylor Quote:
|
Quote:
thank you very much, I use it and works fine, really thank you |
Dear everybody,
In this forum you explain how to implement a non-uniform value as boundary condition. For instance, U=whatever. I need to implement a non uniform temperature gradient as boundary condition. How can I do it? Regards |
Quote:
|
Dear Bernard,
I agree that "groovyBC" is an option but perhaps there is a way to program a non uniform temperature gradient. Does anybody know how to program it? |
Dear everybody,
I am using groovyBC to set the boundary condition gradT=2*x I have written this code: top { type groovyBC; gradientExpression "gradT"; fractionExpression "0"; variables "gradT=2*mesh.C().component(vector::X);"; timelines ( ); } And I have the following error: --> FOAM FATAL ERROR: Parser Error at "1.3-6" :"field mesh not existing or of wrong type" "2*mesh.C().component(vector::X)" " ^^^^ " From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 802. FOAM exiting How can I call x coordinate using groovyBC? |
Problem solved. This is the correct code:
top { type groovyBC; gradientExpression "gradT"; fractionExpression "0"; variables "gradT=2*pos().x;"; timelines ( ); } |
Boundary on the variable boundaryField
Hi you all,
I think that your proposal solution for a variable boundary condition (I understand in time) is to modify the solver. I would like to have a variable boundary condition depending on the position on the boundary itself. My approach is to modify the (for example) U values list and on the boundary set the value of each element on a list. The thing to know is if this is possible, and if it is how I do that? which is the element order? example: Inlet { list of values on each boundary element } Thanks in advance |
i dont think doing this way is a wise idea, it is doable though.
|
Quote:
Possible solutions are the coded-BoundaryCondition that comes with OpenFOAM (there you've got to program in C++) or the groovyBC that comes with swak4Foam (a bit easier to use I like to think) |
All times are GMT -4. The time now is 19:19. |