CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] groovyBC + wallHeatFlux BC (https://www.cfd-online.com/Forums/openfoam-community-contributions/66656-groovybc-wallheatflux-bc.html)

prabhu July 21, 2009 05:24

groovyBC + wallHeatFlux BC
 
Hello,

I want to use wallHeatflux BC from wiki page for a heat transfer problem. A non uniform value for heat flux at the boundary using some expression based on the co-ordinates of the faces has to be specified.

I found from the threads that there is a new library ""groovyBC" to specify non-uniform values. I would like know if its possible to use groovyBC with wallHeatFlux BC available.

Has anyone tried using this type of boundry condition? Any ideas to specify non unifrom BC for wallHeatFlux?

gschaider July 21, 2009 10:56

Quote:

Originally Posted by prabhu (Post 223441)
Hello,

I want to use wallHeatflux BC from wiki page for a heat transfer problem. A non uniform value for heat flux at the boundary using some expression based on the co-ordinates of the faces has to be specified.

I found from the threads that there is a new library ""groovyBC" to specify non-uniform values. I would like know if its possible to use groovyBC with wallHeatFlux BC available.

Has anyone tried using this type of boundry condition? Any ideas to specify non unifrom BC for wallHeatFlux?

You could use groovyBC to emulate a nonuniform-wallHeatFluxBC: wallHeatFluxBC propably sets a gradient for the Temperature (which it calculates from the specified heat-flux). In groovyBC you'd have to do the evaluation that wallHeatFluxBC does in the gradientExpression (which can be inhomogenous) and set fractionExpression to 0.

BTW: The expression parsing/evaluation part from groovyBC can be plugged into other BC-classes. So it shouldn't be too difficult to write a groovyWallHatFluxBC. "Not too difficult" is of course a question of perspective ;)


All times are GMT -4. The time now is 15:49.