Newbie: Location dependent heat flux - possible?

General discussion about Elmer
Post Reply
ThermoSim
Posts: 4
Joined: 02 Jan 2013, 15:27
Antispam: Yes

Newbie: Location dependent heat flux - possible?

Post by ThermoSim »

Hi
Since a few days, I am taking my first steps with Elmer and I am very happy, that the first results are looking as they should...

As I am stepping further, I would like to change my heat flux which is now constant on an area (circle) in such a way, that it is bigger at the border of the circle and smaller in the middle (like bowl) - so I want to have a heat flux, which is dependent on the position in the circle.

Is this possible in Elmer? What should I read to solve this?

Thanks for that program and the help!
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Newbie: Location dependent heat flux - possible?

Post by mzenker »

Hi,

you can have a coordinate dependent heat flux using something like (Caution: untested!)

Code: Select all

Heat Flux = Variable Coordinate 1, Coordinate 2; Real MATC "sqrt(tx(0)^2 + tx(1)^2)"
This should give a flux equal to the distance from the center.
For details about the MATC language, see the MATC manual.
Or you can write a function yourself and call it like in (Windows convention, under Linux you might need another suffix)

Code: Select all

Heat Flux = Variable Coordinate 1, Coordinate 2; Real Procedure "Myfunction.dll" "Myfunction"
See also chapter "basic programming" in the solver manual.

HTH,

Matthias
ThermoSim
Posts: 4
Joined: 02 Jan 2013, 15:27
Antispam: Yes

Re: Newbie: Location dependent heat flux - possible?

Post by ThermoSim »

Thanks that helps!
Best regards
Post Reply