Quantcast
Channel: COMSOL Forum: Most Active Discussions
Viewing all articles
Browse latest Browse all 5675

Troubles with reading COMSOL text data files and files with interpolation functions

$
0
0
Hello everyone!

I have some troubles with creating my own reader for COMSOL text data files and files with interpolation functions. I have read "The COMSOL File Formats" section of COMSOLMultiphysicsReferenceGuide.pdf (for v4.3.a) but it didn't help.

Problem 1) In data files, for "Mesh" Serializable, there is a section where number of parameter values per element (NER), number of parameter sets (NR) and matrix of parameter values (PAR) are defined. Here are some questions:

a) In some files matrix has, as specified in ReferenceGuide, NER x NE values. But, in some cases I found (3 * NER) lines every with NR values. Is this correct?
b) Are these values per element or per node values?
c) Are these values scalar or vector values (perhaps what I found under a) is model with vector (3tuple) values)?

Problem 2) I need to display some values defined in separate file as interpolation functions (as I understood from ReferenceGuide) defined on cloud of points. These points from cloud approximately match with (not always strict) subset of mesh points from data file. Is there a way to connect points from data file with points from cloud in constant time (i.e. without using k-d tree and similar techniques)? I believe there is a way to connect them becase they approximately match, but I don't know how points from cloud are created. Do You have any idea?

Thank You for Your help!

Best regards,
Nenad.

Viewing all articles
Browse latest Browse all 5675

Latest Images

Trending Articles



Latest Images