Error Function

General discussion about Elmer
Post Reply
Andrea_P
Posts: 164
Joined: 22 Mar 2021, 18:39
Antispam: Yes
Location: POLYTHECNIC UNIVERSITY OF TURIN

Error Function

Post by Andrea_P »

Hi,
Does the error function exist in Elmer? Because I don't find it in MATC documentation
Regards,
Andrea
POLYTECHNIC UNIVERSITY OF TURIN-DIMEAS
Rich_B
Posts: 52
Joined: 24 Aug 2009, 20:18

Re: Error Function

Post 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.
Post Reply