Hi Ekmek,
The function (MyFunction) obviously returns the value of a material parameter 'g' in terms of Result(g).
For example, g is viscosity.
If viscosity is temperature (T) dependent or is constant with T; and T is variable, then the context might be such that f = T in the Elmer Programmer's Tutorial.
Elmer Programmer's Tutorial wrote:The function then returns the value of the material parameter in variable h.
Then, 'h' should be replaced by 'f' as 'f' is the variable.
We call viscosity in Material n section from solver input file as:
Code: Select all
viscosity = Variable f
Procedure "MyFunctionFileName" "MyFunction"
For more details on user defined functions , you can study Chapter 18 of Elmer Solver Manual on Basic Programming.
http://www.nic.funet.fi/pub/sci/physics ... chapter.18
Yours Sincerely,
Anil Kunwar