heat source

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Sylvain Boutot

heat source

Post by Sylvain Boutot »

Hello
Can I put an heat source in my geometry ? And how does it ?

Thanks
Alexandre Douce

Re: heat source

Post by Alexandre Douce »

Hi Sylvain, You can put heat source in you geometry. You have to use the user source ustssc.f90 (see § 4.14 in the User Guide 2.0-rc1).
Sylvain Boutot

Re: heat source

Post by Sylvain Boutot »

es but how I use the source ustssc.f90
David Monfort

Re: heat source

Post by David Monfort »

Hi Sylvain,
You need to copy the ustssc.f90 file from the REFERENCE/base directory into the SRC directory. Then you can edit it, and that's all ! IIRC, there is an example within the user file in order for you to properly setup your case.
David
Sylvain Boutot

Re: heat source

Post by Sylvain Boutot »

hanks for your answer, but I have an other question:

I want a function that gives the coordinates of differents cells (like GETCEL) because, my heat source depends of this coordinates. Does it exist?
Yvan Fournier

Re: heat source

Post by Yvan Fournier »

Hello,
You can use simple geometric primitives in getcel (such as box, cylinder, plane, ...), which are described in the user documentation, but you may also simply use conditions on the cell center coordinates, which may be accessed through the XYZCEN array.
For a given cell IEL, XYZCEN(I, IEL) defines the Ith coordinate (i.e. X, Y, Z, respectively).
Sylvain Boutot

Re: heat source

Post by Sylvain Boutot »

hanks for your answers folks !!!
Post Reply