[aspect-devel] available math functions
FELIPE ORELLANA ROVIROSA
f_orellana at berkeley.edu
Thu Dec 29 19:22:06 PST 2016
Thanks Jonathan,
I converted my expression for it to use erfc,
set Function expression = 1800 - 1500*erfc((2.6328e-5)*z);
but I still get errors..
ERROR: FunctionParser failed to parse
'Initial conditions.Function'
with expression
'1800 - 1500*erfc((2.6328e-5)*z);'ERROR: FunctionParser failed to parse
ERROR: FunctionParser failed to parse
I guess perhaps my deal.ii is not updated. When did you implement the
parsing of erfc?
It happens that the cluster I am using is not administered by me, so I
cannot just update deal.ii
thanks anyways,
cheers,
Felipe
On Thu, Dec 29, 2016 at 3:14 PM, Jonathan Perry-Houts <jperryh2 at uoregon.edu>
wrote:
> I implemented erfc in deal.ii's FunctionParser a while ago (so you should
> have it). Adding erf would be just as easy if you need it. Here's my pull
> request to deal.ii for reference:
> https://github.com/dealii/dealii/pull/1769
>
> -JPH
>
>
> On 12/29/2016 11:50 AM, FELIPE ORELLANA ROVIROSA wrote:
>
>>
>> Hi all,
>>
>> Happy holidays !
>>
>> I just tried to implement a simple model on Aspect, which contained the
>> error function
>>
>> I invoked it as erf(..)
>>
>> and I got errors. Then I pasted the corresponding code line on matlab
>> and it worked..so it is something with Aspect that I am not doing right.
>>
>> Is the error function available on Aspect? what math library is
>> Aspect bundled with?
>>
>> Felipe
>> ps: This is the Aspect error I got:
>>
>> ERROR: FunctionParser failed to parse
>> 'Initial conditions.Function'
>> with expression
>> '300 + 1500*erf(0.5*z/((36.0658*1e7)^0.5));'ERROR: FunctionParser
>> failed to parse
>> ERROR: FunctionParser failed to parse
>>
>> ...
>> ..
>>
>>
>>
>>
>> _______________________________________________
>> Aspect-devel mailing list
>> Aspect-devel at geodynamics.org
>> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
>>
>> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20161229/64440ca9/attachment.html>
More information about the Aspect-devel
mailing list