Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
integration of interpolation function
Posted 15.12.2013, 17:45 GMT-5 Parameters, Variables, & Functions 3 Replies
Please login with a confirmed email address before reporting spam
Hi,
I am simulating a heat transfer problem in 2d. I would like to have my heat source as a function of a new variable (j) which is not a variable in the set of equations. I am importing a interpolation function which is function of j. I would like to know two things how to add this new variable (j), secondly integrate the interpolation function while defining the limits of this variable (j).
When I import data for interpolation I have t as the argument and f(t) as the function for about a 100 values. Now I am going to model coupling and defining a integration operation over the whole domain as
intop1
and am later defining a variable E=intop(f(t)).
And trying to use this variable E in the problem, but it gives me a error. I would like to know how exactly can I have the intop operater for my function in certain limits, since this j is not a variable like x,y and z.
thank you
hasan
I am simulating a heat transfer problem in 2d. I would like to have my heat source as a function of a new variable (j) which is not a variable in the set of equations. I am importing a interpolation function which is function of j. I would like to know two things how to add this new variable (j), secondly integrate the interpolation function while defining the limits of this variable (j).
When I import data for interpolation I have t as the argument and f(t) as the function for about a 100 values. Now I am going to model coupling and defining a integration operation over the whole domain as
intop1
and am later defining a variable E=intop(f(t)).
And trying to use this variable E in the problem, but it gives me a error. I would like to know how exactly can I have the intop operater for my function in certain limits, since this j is not a variable like x,y and z.
thank you
hasan
3 Replies Last Post 04.12.2016, 15:00 GMT-5