I have a problem concerning the order of the evaluation of the AceFEM parameters. My AceGen Element contains, among many others, an expression of the form
B (aa - bb/(cc Exp[dd w^2] + ff))
with B, aa, bb, cc, dd and ff being parameters and w being a degree of freedom with two entries per node. If I choose the wrong combination of values for the parameters, my problem diverges immediately even if the parameter B is equal to zero, which, in my opinion, makes the whole expression equal to zero. I already tried to set the term to zero "manually", by multiplying it directly (in the element) with zero and this does work.
So my question is, does AceFEM tries to evaluate the "inner" expression before multiplying it with the prefactor? This would explain the divergence.
Thank you in advance and best regards, Julia