CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Term source of enegry!! help (https://www.cfd-online.com/Forums/main/80600-term-source-enegry-help.html)

stage81 September 30, 2010 09:07

Term source of enegry!! help
 
My calculation domain is a 2D rectangle contains 100 meshes along the
X axis and 100 meshes along Y axis, I want to inject a source term of
energy in a one cell only, for exemple i want to inject
SOURCE=10000W/m3 in the mesh number 10?

DEFINE_SOURCE(energy_source,c,t,eqn)

real source;

if (c=50)
source=10000;

return source;
}

Thanks for you


All times are GMT -4. The time now is 06:40.