Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
23.11.2021, 08:35 GMT-5
Updated:
3 years ago
23.11.2021, 08:43 GMT-5
Hello Aron,
The yellow color is a warning about dimensions. Your function is returning a scalar, and you're calling it in a textfield where a temperature is expected. You can fix that by either defining your function to return a temperature, or by adding a "[K]" after your call. And you'll need to add "273.15[K]" for the same reason, so it would look like "int1(x[1/m], y[1/m], z[1/m])[K] + 273.15[K]".
Best,
Jeff
-------------------
Jeff Hiller
Hello Aron,
The yellow color is a warning about dimensions. Your function is returning a scalar, and you're calling it in a textfield where a temperature is expected. You can fix that by either defining your function to return a temperature, or by adding a "[K]" after your call. And you'll need to add "273.15[K]" for the same reason, so it would look like "int1(x[1/m], y[1/m], z[1/m])[K] + 273.15[K]".
Best,
Jeff
Gunnar Andersson
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
25.11.2021, 02:23 GMT-5
I suggest that you change your approach as follows:
In the Units section (see Capture1.PNG) I think that you should enter "m,m,m" for the Arguments and "degC" for the Function (without quotes).
Untitled.txt contains five columns: Node, X, Y, Z, Temperature. Interpolation functions in COMSOL assume that the first three columns contain the arguments. If you modify or regenerate Untitled.txt so that it only contains the columns X, Y, Z, Temperature then the columns will be interpreted correctly.
By entering "degC" for the function unit you can use the function without any unit conversions, e.g. int1(x,y,z), in an edit field where a temperature is expected: COMSOL will automatically convert from degC to K.
I suggest that you change your approach as follows:
* In the Units section (see Capture1.PNG) I think that you should enter "m,m,m" for the Arguments and "degC" for the Function (without quotes).
* Untitled.txt contains five columns: Node, X, Y, Z, Temperature. Interpolation functions in COMSOL assume that the first three columns contain the arguments. If you modify or regenerate Untitled.txt so that it only contains the columns X, Y, Z, Temperature then the columns will be interpreted correctly.
By entering "degC" for the function unit you can use the function without any unit conversions, e.g. int1(x,y,z), in an edit field where a temperature is expected: COMSOL will automatically convert from degC to K.
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
08.02.2022, 02:14 GMT-5
Hi Jeff, hi Gunnar,
thank you both for your reply, I was able to solve the problem.
Best Regards,
Aron
Hi Jeff, hi Gunnar,
thank you both for your reply, I was able to solve the problem.
Best Regards,
Aron