GroovyBC doesn't read variables and Expression
hi
i changed buoyantBoussinesqSimpleFoam and add a heat source to it Code:
fvScalarMatrix TEqn Code:
Info<< "Reading field Qt\n" << endl; Code:
type groovyBC; but in the results groovyBC calculated expression in T but in Qt all values set to 0 result for T : Code:
{ Code:
{ any suggestion? thanks |
Hi Seyyed,
I added a heat source to buoyantBoussinesqPimpleFoam and also called it Qt! :) I have been working with groovyBC a bit and found that it is pretty smart, and can take a couple of different syntaxes, are you sure that this is not happening with you? And what do you mean by the "code compiles without any errors"? Can you run your solver on this case with the groovyBC boundary conditions? |
Quote:
"code compiles without any errors" i mean that when i make a syntax error on variables in groovyBC in Qt file the code dosnt show any error . do you enter Qt on your boundaries or in a volume ? |
Hi Seyyed,
Quick question, is your solver compiling when you wmake it? My Qt is a volScalarField which I added in the createFields.H file as follows so that my solver reads it in when I run my solver: Code:
Info<< "Calculating field QT (Joule heating in K/s)\n" << endl; I still do not understand your comment about your groovyBC "code compiling". Something would only happen when you run your solver, and if your solver is in fact trying to read your 0/Qt file. I still don't quite understand what exactly your problem is. |
Quote:
Quote:
Quote:
after that i made a case and in that case i used groovyBC for T and Qt groovyBC worked for T but not for Qt i think because i used Qt on a boundry my solver didnt read it i mean Qt must set in internalfield in a volume not surface Quote:
how do you calculate Qt? thanks for your reply :) |
2 Attachment(s)
Attachment 43628
Attachment 43629 i attach my T and Qt file in 0 file and in 10 file after 10 iterations |
Hi Seyyed,
Is your Qt heating inside the volume at any point in time? It looks like, from the files that you sent, that Qt is zero everywhere except on one boundary. Could you not just implement this heat source using the boundary conditions for T and leave out Qt altogether? My Qt is a volScalarField for resistive heating from electrical current that passes through my domain. I calculate it using a separate electrical solver and then just use the volScalarField in my flow solver. |
All times are GMT -4. The time now is 19:22. |