Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

Interpolation Function Help

$
0
0
Good Morning,

I'm having trouble using COMSOL's interpolation function, and I was hoping someone might be able to help. I'm trying to load data from a tab-delimited text file. I've followed the instructions in the COMSOL user guide on interpolation functions, however I get the following error when I click "plot":

"Internal error in mesh initialization.
-Plot: previewplot1 (Surface)
-Function: int1"

Additionally, when I try to solve the model I get the following error message:

"-Feature: Compile Equations: Stationary (sol1/st1)
-Error: Internal error in mesh initialization."

When I disable the interpolation function, COMSOL successfully solves the model.

The input data used for the interpolation function was a velocity distribution exported from a previous solution surface. It has the following structure:

% x y z myfun1
0.005164328 0.094835672 0.2 0.098519135
0.015894103 0.087647192 0.2 0.511590803
0.015569986 0.095339275 0.2 0.22689919
0.006197193 0.083275657 0.2 0.312314232
0.005469283 0.016082383 0.2 0.2672031
0.004733427 0.004733427 0.2 0.081290304
0.012546053 0.01240331 0.2 0.43510989
0.015707096 0.004896326 0.2 0.232560416
0.027164381 0.094602393 0.2 0.368319369
etc.

A very simple flow model demonstrating the problem is attached, along with an excel version of the data I'm using. I'm a new COMSOL user, and any advice would be greatly appreciated.

Thank You!

Viewing all articles
Browse latest Browse all 26527

Trending Articles