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