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
4 gen 2013, 05:35 GMT-5
Hi
check the Forum on importing an interpolation function "Data source Files with "Use Space coordinates as arguments", then apply this interpolation function into your BC entries.
--
Good luck
Ivar
Hi
check the Forum on importing an interpolation function "Data source Files with "Use Space coordinates as arguments", then apply this interpolation function into your BC entries.
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
8 gen 2013, 09:08 GMT-5
Hi,
Thank you very much,
With some standing back I see that my request was "basic"!
Now I have an other question, to define my function I need to export data from matlab, witch are defined on a certain variation range, how can I indicate to COMSOL that my function is equal to 0 out that range ?
Hi,
Thank you very much,
With some standing back I see that my request was "basic"!
Now I have an other question, to define my function I need to export data from matlab, witch are defined on a certain variation range, how can I indicate to COMSOL that my function is equal to 0 out that range ?
Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
8 gen 2013, 10:35 GMT-5
Hi,
In the Interpolation function's settings window, under "Interpolation and Extrapolation", choose "Specific value" from the Extrapolation list. The default for "Value outside range" is 0, so that should give you the desired behavior.
Best regards,
Magnus Ringh
COMSOL
Hi,
In the Interpolation function's settings window, under "Interpolation and Extrapolation", choose "Specific value" from the Extrapolation list. The default for "Value outside range" is 0, so that should give you the desired behavior.
Best regards,
Magnus Ringh
COMSOL
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
10 gen 2013, 06:00 GMT-5
Hi,
That's exactly what I want, thanks,
When i enter my function in heat source, it becomes orange, telling me that the unit given not expected, depite I didn't define any unit neither in my folder nor in the expression of my function, any idea ?!
Hi,
That's exactly what I want, thanks,
When i enter my function in heat source, it becomes orange, telling me that the unit given not expected, depite I didn't define any unit neither in my folder nor in the expression of my function, any idea ?!
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
10 gen 2013, 07:05 GMT-5
Hi
COMSOL might apply default units, check your "physics node", most operators are to be made unit-less. Anyhow "orange" is a warning no error it solves anyhow, but there might be a conversion and numerical scaling issue
x,y,z and t have default units I believe
--
Good luck
Ivar
Hi
COMSOL might apply default units, check your "physics node", most operators are to be made unit-less. Anyhow "orange" is a warning no error it solves anyhow, but there might be a conversion and numerical scaling issue
x,y,z and t have default units I believe
--
Good luck
Ivar
Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
10 gen 2013, 07:25 GMT-5
Hi,
My guess is that you have not assigned units to the input argument and function output in the Units section of the Interpolation function. Using
Arguments: K
Function: W/m^3
defines an interpolation function where the heat source values (W/m^3) are functions of the temperature (K).
If you want to treat the interpolation function as a unitless function, you need to "de-dimensionalize" the temperature variable used as argument when calling the function using unit syntax: T[1/K]
Best regards,
Magnus Ringh, COMSOL
Hi,
My guess is that you have not assigned units to the input argument and function output in the Units section of the Interpolation function. Using
Arguments: K
Function: W/m^3
defines an interpolation function where the heat source values (W/m^3) are functions of the temperature (K).
If you want to treat the interpolation function as a unitless function, you need to "de-dimensionalize" the temperature variable used as argument when calling the function using unit syntax: T[1/K]
Best regards,
Magnus Ringh, COMSOL
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
14 gen 2013, 11:16 GMT-5
Updated:
7 years ago
27 ago 2017, 14:44 GMT-4
Ok, thanks !
Ok, thanks !