Functions in .sif file with MATC
Posted: 18 Oct 2015, 15:22
I am currently trying to overcome the limit of 128 signs for a MATC function in the .sif file.
To test it, I want to calculate the temperature dependent conductivity with a function.
I just cannot make it work Therefore I guess, that I have a fundamental error in my code.
I followed (at least I tried to) the instructions that can be found in the "ElmerSolverAndIputFile and in the ParamProgrammers tutorial
It would be great if someone could tel me, where the mistake in my code is. And my second question would be if this is the right methode to overcome the limit of 128 digits in a MATC funciton or if I have to use a Fortran function for it
Thanx a lot
mauc
To test it, I want to calculate the temperature dependent conductivity with a function.
I just cannot make it work Therefore I guess, that I have a fundamental error in my code.
I followed (at least I tried to) the instructions that can be found in the "ElmerSolverAndIputFile and in the ParamProgrammers tutorial
Code: Select all
!------------------------------------------------------------------
! MATC Funktion für temp abh. Heat Conductivity --- Verwendung in Material 1
!------------------------------------------------------------------
$ lambdadep(X) {\_lambdadep = (1.3e-11*(x(0)-900)^3)}
! decalare
!$ function stemp(X) {\_stemp = 49.13 + 273.16 - 0.7576*X(0) - 7.992E-03*X(1)}
! call
! Temp = Variable Latitude, Coordinate 3 Real MATC “stemp(tx)”
Material 1
Name = a-SiH dependent
! Heat Conductivity = 1.56
! Heat Conductivity = 57
!Heat Conductivity = Variable Temperature; MATC(1.3e-11*(tx(0)-900)^3+1.3e-9*(tx(0)-900)^2+1e-6*(tx(0)-900)+1e-2)*100
Heat Conductivity = Variable Temperature, Coordinate 2; Real MATC “lambdadep(tx)”
Heat Capacity = 1000
Density = 2.15E3
End
Thanx a lot
mauc