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.
Using external file data for heat generation.
Posted 2017年3月30日 GMT+8 23:44 Heat Transfer & Phase Change, Modeling Tools & Definitions, Parameters, Variables, & Functions Version 5.2, Version 5.2a 6 Replies
Please login with a confirmed email address before reporting spam
How can I import coordinate data and heat generation from a file (x(cm), y (cm), z (cm), heat generation (w / cm ^ 3))? . This file is for heat transfer on a sheet. The file looks like this:
% x y z heat generation
1 1 1 0.05
1 2 1 0.75
1 3 1 1.23
1 4 1 5.7
1 5 1 7.23
2 1 1 8
....
10 10 5 0.58
Please login with a confirmed email address before reporting spam
Yes, you can do that. Interpolation functions created from files are documented in the COMSOL Multiphysics Reference Manual, version 5.2a, page 277 and following.
Best regards,
Jeff
Please login with a confirmed email address before reporting spam
I'm doing interpolation, but I do not know how to input the heat generation values of my file into the model. In global definition> function> interpolation. Import the file. The name of heat function. In position 1. After I don't know how for apply the heat generation of the data in the model. Sorry for the questions but I'm new to COMSOL
I appreciate your help.
Oriana
Please login with a confirmed email address before reporting spam
Best,
Jeff
Please login with a confirmed email address before reporting spam
My question is I do not know how to call the int function that is in position 1. This int function is the heat generated. But in heat transfer, what can I do to call the function in the heat source (Q)?
Now I do not know how to call the x, y, z coordinates. I do not know if it can be explained me with an image or an example. Thank you very much and sorry again.
Please login with a confirmed email address before reporting spam
Best,
Jeff
PS: I encourage you to work through the Introduction to COMSOL Multiphysics manual (Accessed through File > Help > Documentation). It will save you a lot of time compared to trying to figure things out by yourself. The Applications Libraries are also full of tutorials with step-by-step instruction that you can use for self teaching.
Attachments:
Please login with a confirmed email address before reporting spam
Thanks for your help. I was missing the units. In Heat Source it is int1 (x [1 / cm], and [1 / cm], z [1 / cm]). This was my mistake. But thanks to you, you were a great help.
Cordially
Oriana
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 Create a geometry and initial condition using data from a external file -Thanks
 - FORUM Using external file data for heat source
 - BLOG Modeling Electromigration in COMSOL Multiphysics®
 - KNOWLEDGE BASE Solving Models with Step Changes to Loads in Time
 - KNOWLEDGE BASE I get an error message when trying to open my glTF-file in an external viewer
 
