Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
21 feb 2013, 01:54 GMT-5
Hi
check the help/doc on the Definition Function Interpolation (+read from File)
--
Good luck
Ivar
Hi
check the help/doc on the Definition Function Interpolation (+read from File)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
21 feb 2013, 22:07 GMT-5
Hi Ivar,
I was able to create a function with "interpolation function". Now do you know how could I use that function as my inward heat flux in my model?
Thank you very much,
Vinh
Hi Ivar,
I was able to create a function with "interpolation function". Now do you know how could I use that function as my inward heat flux in my model?
Thank you very much,
Vinh
Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
22 feb 2013, 01:43 GMT-5
Hi
if you have an interpolation function of the type int1(arg1,arg2), you simply use it in the place for your results calling it as int1(T,H). Now in COMSOL convention, T is a field (T,x,y,z,t) and H too, hence the use of this function implies that you have selected a domain, or boundary where x,y,z are defined (and t by the solver or t=0 the default for non time domain).
Again if you are in 2D COMSOL defaults set z=0, just as in 1D y=z=0 by default, but they are still there ;)
--
Good luck
Ivar
Hi
if you have an interpolation function of the type int1(arg1,arg2), you simply use it in the place for your results calling it as int1(T,H). Now in COMSOL convention, T is a field (T,x,y,z,t) and H too, hence the use of this function implies that you have selected a domain, or boundary where x,y,z are defined (and t by the solver or t=0 the default for non time domain).
Again if you are in 2D COMSOL defaults set z=0, just as in 1D y=z=0 by default, but they are still there ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
22 feb 2013, 15:16 GMT-5
Hi Ivar,
My interpolation function is as following:
name: int1
t f(t)
0 0.613
60 0.613
120 0.637
180 0.651
240 0.613
300 0.508
360 0.208
420 0.089
480 0.201
540 0.508
600 0.681
"Units"
Arguments: s
functions: W/m^2
Now in my heat flux boundary condition: q0 = int1(t) W/m^2
Is it the right way to call out interpolation for boundary condition? my boundary condition is heat flux vs. time
Thank you,
Vinh
Hi Ivar,
My interpolation function is as following:
name: int1
t f(t)
0 0.613
60 0.613
120 0.637
180 0.651
240 0.613
300 0.508
360 0.208
420 0.089
480 0.201
540 0.508
600 0.681
"Units"
Arguments: s
functions: W/m^2
Now in my heat flux boundary condition: q0 = int1(t) W/m^2
Is it the right way to call out interpolation for boundary condition? my boundary condition is heat flux vs. time
Thank you,
Vinh
Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
23 feb 2013, 08:49 GMT-5
Hi
that look correct for me, but you should always recheck your results ;)
note that:
1) in the function definition "t" is a dummy variable, you can call a function with any expression or variable name
2) if you define the units in the function definition then you do not need (and should not double up) units in the expression
--
Good luck
Ivar
Hi
that look correct for me, but you should always recheck your results ;)
note that:
1) in the function definition "t" is a dummy variable, you can call a function with any expression or variable name
2) if you define the units in the function definition then you do not need (and should not double up) units in the expression
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
19 mag 2013, 10:04 GMT-4
Hi Ivar,
i've managed to import experimental datas on interpolation function. However, when i want to call this function in boundary condition, it says "unknown variable"..i was looking to apply force in function of time..can you help me?
Best,
Wan
Hi Ivar,
i've managed to import experimental datas on interpolation function. However, when i want to call this function in boundary condition, it says "unknown variable"..i was looking to apply force in function of time..can you help me?
Best,
Wan