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.

Import data from another software (interpolation 4D)

Please login with a confirmed email address before reporting spam

Dear everyone,
I am looking for a very accurate method to compute an interpolation from data obtained via another software.
We have solved an external acoustic problem using BEM, and data are listed as :

x y z freq real(p) imag(p)


The method seems to interpolate these data (4D interpolation), and this interpolation will be applied on geometrical entities (external boundaries). Then COMSOL would evaluate coordinates (nodes coordinates?) and frequency, and then attributes values at nodes, according to loads and constraints applied on the geometrical entities. (An additional mesh must surround, the geometrical entities studies)

so the method is :
data on BEM mesh =====> Interpolation 4D (x,y,z,freq) ======> data on COMSOL mesh


Talking with support COMSOL, the only way is to use MATLAB LiveLink. I am trying this, but it becomes complicated.

I am sure some of COMSOL users are already doing this.

What is the best method ? Is there any MATLAB function available ?


Mine is still in 3D, and I am trying to compare it with the COMSOL 3D interpolation, and is based on the Delaunay triangulation :

function out = pblocked(x,y,z)
filename = 'cube_face.txt' % file containing DATA
DATA = dlmread(filename)
X = DATA(:,1); Y = DATA(:,2); Z = DATA(:,3); P = DATA(:,4); COORDINATES = [X Y Z] ;
F = TriScatteredInterp(COORDINATES,P) ; % Function generated by MATLAB (use r2009 or later)
F_value = F(x,y,z);
out = F_value % interpolation


Regards,
SB





0 Replies Last Post 20 mars 2012, 11:15 UTC−4
COMSOL Moderator

Hello Sylvain Boyer

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.