Page 1 of 1
Error Function
Posted: 18 Jun 2021, 22:19
by Andrea_P
Hi,
Does the error function exist in Elmer? Because I don't find it in MATC documentation
Regards,
Andrea
Re: Error Function
Posted: 19 Jun 2021, 15:40
by Rich_B
Hello,
See this wiki entry:
http://fortranwiki.org/fortran/show/erf
so theoretically you could write a fortran user function in Elmer using the erf.
Or, you could check to see if Lua includes the erf, and use Lua instead of MATC.
Or, you could use an approximation that you could build using MATC formulas, such as this wiki shows:
https://en.wikipedia.org/wiki/Error_fun ... oximations
Rich.