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.
Troubles with reading COMSOL text data files and files with interpolation functions
Posted 22 févr. 2013, 11:50 UTC−5 Results & Visualization Version 4.3a 2 Replies
Please login with a confirmed email address before reporting spam
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.
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.
2 Replies Last Post 25 févr. 2013, 06:00 UTC−5