GroovyBC with power input (heat flux)
Hi all,
I did not get the point to build a heat flux bc with groovy. Why I use groovy is due to the fact that I also have to use some gaussian probability distribution. At least I used this summary: http://www.modlab.lv/docs/2011/OpenF...Vilums_pdf.pdf So what we get is the following situation: f is the fractionExpression. Now I want to use the gradient expression to evaluate the temperature at the face. We get the following expression: This is exactly the same expression like in the turbulentHeatFluxTemperature BoundaryCondition. Now I expect, that the fractionExpression is zero. Therefore only the second term in the first eqn. is valid and we can write: This is equal to: and that is equal to: In groovyBC I used the following code: Code:
top Thanks in advance, |
Hi Tobi!
Quote:
Code:
g=Q/mag(Sf())/Kappa Btw, is the same mag(Sf()) than area()? Or does area() take the sign of normal direction into account? Best regards, Alex |
Hi Alex,
I need the whole area of the surface (not only one face). If I use yours, then the heatflux will increase extreamly (dividing by a very small number). That is not the problem. |
Quote:
|
Hi,
today it is working! I don't know what was the problem. The only thing that I changed today was to set the fractionExpression to zero but if I check the first post, I already did this yesterday. Don't know but its working proper now :) To your question ... area() - never used this option in groovy. Is it really a groovyBC function? It is definitly not the same as above. |
Dear Tobi,
I would like to use groovyBC in order to apply constant 400 kW/m^2 heat flux at the wall but I could not find how? can you help me? I am using OF version 2.3.1 Thanks! Quote:
|
Hi,
I think you can use "turbulentlHeatTransferTemperature" for that. You can apply the flux [W/m^2]. There is no need for groovy. If you want to use groovy you have to derive the equation yourself / or just check the pdf in the first link. It shoud be sufficient. |
thanks for the quick answer...yes you are right!I thought so as well but I have laminar flow so I do not have "alphaEff" so it gives me a problem
Code:
--> FOAM FATAL ERROR: Quote:
|
Hi,
it seems that its your own solver. Do you have a field implemented that correspond to "thermal diffusivity"? If yes then use that, otherwise implement it to your solver or change the BC or if you want, use groovy. |
Thanks again...the problem is I know only the thermal conductivity and heat flux, so I can not implement groovyBC...do you have any idea how i can build the groovyBC in order to have fix heat flux?
BEST! |
Hi,
I don't know what your application is for and what you actually want to do but if I understand it correct you can use the groovy in the first post: |
All times are GMT -4. The time now is 21:14. |