Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Using external file data for heat source
Posted Dec 17, 2012, 10:10 a.m. EST Heat Transfer & Phase Change, Materials Version 4.3a 6 Replies
Please login with a confirmed email address before reporting spam
Hi all,
I am trying to solve a model for heat transfer in solids using external data as heat source input.
The geometric model is simple and composed of 3 separated bodies attached together by a 'union' operation and form a continuity.
As a heat source I am trying to use an external file which contain the heat production, in units of W/cm^3, in certain points within the geometry. The file looks like this:
% x y z Power
1 1 1 10.2
1 2 3 20.2
...
5 4 7 15.3
To read it, under Global Parameters, I defined an interpolation function where I choose interpolation 'linear' and extrapolation 'specific value' (set to zero). I imported the function and I can see a nice plot of it in the graphics window. .
Then, in the 'Heat transfer in solids' physics inside 'heat Source' I am trying to use this function.
I choose 'User defined' under 'General source' and write the function name (the one I created from the file in the 'Global Parameters'). Comsol marks the function name in orange and claim that 'the variable is unknown'.
What am I missing? How can I use this function as heat source?
Any help will be appreciated,
Alon
I am trying to solve a model for heat transfer in solids using external data as heat source input.
The geometric model is simple and composed of 3 separated bodies attached together by a 'union' operation and form a continuity.
As a heat source I am trying to use an external file which contain the heat production, in units of W/cm^3, in certain points within the geometry. The file looks like this:
% x y z Power
1 1 1 10.2
1 2 3 20.2
...
5 4 7 15.3
To read it, under Global Parameters, I defined an interpolation function where I choose interpolation 'linear' and extrapolation 'specific value' (set to zero). I imported the function and I can see a nice plot of it in the graphics window. .
Then, in the 'Heat transfer in solids' physics inside 'heat Source' I am trying to use this function.
I choose 'User defined' under 'General source' and write the function name (the one I created from the file in the 'Global Parameters'). Comsol marks the function name in orange and claim that 'the variable is unknown'.
What am I missing? How can I use this function as heat source?
Any help will be appreciated,
Alon
6 Replies Last Post Feb 3, 2015, 2:34 p.m. EST