[aspect-devel] available math functions

Max Rudolph maxwellr at gmail.com
Thu Dec 29 20:04:28 PST 2016


Felipe,
You should be able to install your own copies of deal.ii and aspect in your
home directory or some place like /data or /work on your cluster.

Max

On Thu, Dec 29, 2016 at 7:22 PM, FELIPE ORELLANA ROVIROSA <
f_orellana at berkeley.edu> wrote:

>
>  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
>
>
>
> _______________________________________________
> 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/746f6077/attachment-0001.html>


More information about the Aspect-devel mailing list