Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Importing real data heat flux boundary condition to COMSOL

Please login with a confirmed email address before reporting spam

Hello all,
I'm working on a 2D transient heat transfer project and I can't figure out how to import real data for heat flux vs.time in COMSOL. It only allow me to input a fix value or function, not discrete data points.
Any idea?
Thank you very much,

Vinh

6 Replies Last Post 2013年5月19日 GMT-4 10:04
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 2013年2月21日 GMT-5 01:54
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 2013年2月21日 GMT-5 22:07
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 2013年2月22日 GMT-5 01:43
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 2013年2月22日 GMT-5 15:16
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 2013年2月23日 GMT-5 08:49
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 2013年5月19日 GMT-4 10:04
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

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.