Hello.
I am trying to solve an non linear problem where one of the expressions is depended on the solution and has a log10 in it. Unfortunatly I can't solve the problem as it fails to compile. i have tried the following all leaving me with errors. The T is the TrialFunction, and S is just a constant.
k_T=Expression('pow(10,log10(240+0.00002*S)+0.434*(2.3-(343.5+0.037*S)/(T))*\
pow((1-(T)/(647+0.03*S)),0.333))/1000.0',T=T,S=S)
This fails to work and gives me an error that it was not complied with Verbose=1.
def thermlaConductivity(T):
k_T=pow(10,log10(240+0.00002*S)+0.434*(2.3-(343.5+0.037*S)/(T))*\
pow((1-(T)/(647+0.03*S)),0.333))/1000.0
return k_T
Doing this will lead error
Couldn't map 'v_1' to a float, returning ufl object without evaluation.
If I do not import math i get that log10 is not defined.
Any help would be appreciated.