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 and heat flux on wall (https://www.cfd-online.com/Forums/openfoam-community-contributions/124349-groovybc-heat-flux-wall.html)

m5m5kh October 2, 2013 16:23

groovybc and heat flux on wall
 
hi dear foamers

As I had no experience in using groovy bc I need your helps again.
How should I define this boundary condition on wall of my case?

k(dT/dx,y,z)=h(T-Tinf)

k=0.065
h=1.12
Tinf=298

how should I use swak4foam?
where should I define these constant for my incompressible flow?
would you please give me hints?????

best regards
Mohsen

m5m5kh October 3, 2013 02:23

no one has any idea?
should I add somthing like groovybc to my case directory?


type groovyBc;
variables "h=1.12;k=0.065;Tinf=298;";
gradientExpression "h/k*(T-Tinf)";
fractionExprssion "0"; // 0 for neumann boundary condition
value uniform 298;

I'm looking forward for your good hints friends

nimasam October 3, 2013 02:35

Dear Mohsen,
those questions are simple ones and answered alot in forums, look at this thread
and also your configurations seems right to me
Quote:

type groovyBc;
variables "h=1.12;k=0.065;Tinf=298;";
gradientExpression "h/k*(T-Tinf)";
fractionExprssion "0"; // 0 for neumann boundary condition
value uniform 298;

m5m5kh October 3, 2013 14:19

Quote:

Originally Posted by nimasam (Post 454805)
Dear Mohsen,
those questions are simple ones and answered alot in forums, look at this thread
and also your configurations seems right to me

thanks Nima yes it is right and you are right too
I forgot to add some lines to control dict ;)
thanks


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