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.

Why the imported 3D variable through the “interpolation” does not imported correctly in COMSOL?

Please login with a confirmed email address before reporting spam

I have a solid mechanics problem to solve by COMSOL. The answer of first one (such as stress or displacement ) later replace as position dependent variable in second one.

There is two option. One way to do that is to export the answer from “Data Export” as a txt file and later import it in second COMSOL model by “interpolation”. Other way is to have two physics in one model and connect them by “Value of variable not solved for “in the sitting of “study”. When I import the data in second way and got the plot from the “interpolation” window everything is fine.

Unfortunately, there is problem with first way and the result at the end is not exactly same. Take von mises as a example. Maximum error can reach 14%. The error is mainly concentrated at the bottom.

With the nonlinear enhancement, the error is bigger and it locate in the all area. Maximum error can reach 60%.

I found that there is a difference between what I imported and what is read from those data.I don’t need interpolation. I will use same mesh. Therefore I just need to import a 3D variable correctly. The imported data is quite nonlinear. I look forward to hearing from you soon .


3 Replies Last Post 2018年10月22日 GMT-4 02:33
Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 6 years ago 2018年6月28日 GMT-4 21:42

One question: Is this data imported only one time to establish initial conditions or constant data? If so, you can import by formatting the data correctly in the text file. See the manual on the correct way. If you intend to change this imported data at each iteration and generate the data using some external program, you will have convergence issues due to the decoupled nature of your problem. I would suggest to incorporate the physics altogether and allow COMSOL to solve all variables at once using solvers provided (direct, segregated, iterative, etc.).

-------------------
James D. Freels, Ph.D., P.E.
One question: Is this data imported only one time to establish initial conditions or constant data? If so, you can import by formatting the data correctly in the text file. See the manual on the correct way. If you intend to change this imported data at each iteration and generate the data using some external program, you will have convergence issues due to the decoupled nature of your problem. I would suggest to incorporate the physics altogether and allow COMSOL to solve all variables at once using solvers provided (direct, segregated, iterative, etc.).

Please login with a confirmed email address before reporting spam

Posted: 6 years ago 2018年6月29日 GMT-4 14:25

Hi Deng,

I experienced the same problem. I tried to export with a extremely fine grid (very small discretizations) but I had some problems with that as well because COMSOL seems to have a limitation on the number of elements that it imports and exports (files >10 gb are usually problematic). Why don't you just use the 2nd option you suggested?

Regards, Nichal

Hi Deng, I experienced the same problem. I tried to export with a extremely fine grid (very small discretizations) but I had some problems with that as well because COMSOL seems to have a limitation on the number of elements that it imports and exports (files >10 gb are usually problematic). Why don't you just use the 2nd option you suggested? Regards, Nichal

Please login with a confirmed email address before reporting spam

Posted: 6 years ago 2018年10月22日 GMT-4 02:33
Updated: 6 years ago 2018年10月22日 GMT-4 02:34

Thank u for your reply. Sorry for the delay, I get the account recenlty. So you use the second option?

Thank u for your reply. Sorry for the delay, I get the account recenlty. So you use the second option?

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.