I started using Elmer (GUI, command line and pyelmer) less than a month ago and this is my first post here, so I apologize if I failed to find the answer somewhere else (I searched a lot without success).
I am trying something quite simple. It's a block of an ideal material, with an empty hole somewhere inside, all faces have a boundary condition with temperature zero (including the internal hole) and I would like to add a body force (heat) that follows an equation. One use case is to apply the body force at only one point. Here is the code (the full file is attached):
Code: Select all
Body Force 1
Heat Source = Variable Coordinate; Real MATC "if (sqrt((tx(0)-(80))^2+(tx(1)-(80))^2+(tx(2)-(80))^2)<13) (1); else (0);"
End
I also tried a boundary with a target coordinate:
Code: Select all
Boundary Condition 3
Target Coordinates(1,3) = Real 80 80 80
Temperature = 5000000
End
Any suggestion / help towards how to apply a body force on a point / using an MATC expression, etc will be very much appreciated