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.
2D interpolation of material properties as function of Temperature and Pressure?
Posted 23.07.2012, 19:58 GMT-4 Version 4.2, Version 4.2a, Version 4.3 7 Replies
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
2. define interpolation function (say int1), use data from the file
3. make sure you defined the int. function correctly. Just click the "plot" button to plot it
4. now you can use the function int1(P,T) to define material properties. Just make sure to fix the units for P and T so the text field appears in black, not in red or yellow color.
Please login with a confirmed email address before reporting spam
Could you please expand on the properly defining the function int1? I have uploaded data with three columns the first column is Temperature the second column is pressure and the third is the density as as a function of the two.
Should the data for sure be in columns? and should there be column headings in the data file?
Would it be possible for you to send me a quick screenshot of how you have set up a 2D interpolation? It would be great help because I feel like I am doing everything you have stated but I am getting numerous errors related to improper number of functions and arguments, etc.
Thanks.
Chris
Please login with a confirmed email address before reporting spam
Have you succeeded to creat 1D interpolation?
I have some problems about how to create interpolation function on temperature-dependent thermal conductivity. I have made a .txt file with two columns (the first column is the Temperature, and the second one is thermal conductivity).
But i have no idea how to insert the text into Material Contents. I typed the function name in the blank of "Value", but the font color is always yellow. It always comes out as "The following feature has encountered a problem: Failed to evaluate variable Jacobian....."
Do you know why this happened?
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
1. create data file with 3 columns: P,T,f(P,T)
2. define interpolation function (say int1), use data from the file
3. make sure you defined the int. function correctly. Just click the "plot" button to plot it
4. now you can use the function int1(P,T) to define material properties. Just make sure to fix the units for P and T so the text field appears in black, not in red or yellow color.
Thanks. Very helpful tips.
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.
Suggested Content
- FORUM Using interpolation to define temperature-dependent material properties
- KNOWLEDGE BASE Resolving Time-Dependent Waves
- BLOG How to Use Interpolated Material Data to Model Irregular Geometries
- KNOWLEDGE BASE Solving electromagnetic heating models with high-frequency loads
- FORUM Using interpolation to define temperature-dependent material properties
