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.
importing txt file to create geometry in comsol 4.0a
Posted 30 mar 2011, 01:44 GMT-4 Fluid & Heat, Computational Fluid Dynamics (CFD), Porous Media Flow Version 4.2, Version 4.2a 16 Replies
Please login with a confirmed email address before reporting spam
can i create a geometry by importing coordinate data existing in a text file in comsol4.0a?
suppose i am having (x,y) data in a text file and i want to use this data for creating geometry in comsol4.0a.
thanks in advance
regards
deepak
Hello Deepak Chowdary
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.
Please login with a confirmed email address before reporting spam
Just wondering, were you able to find a way to work out this issue? I am wondering the same thing myself.
Thank you!
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Will 4.2 also have the ability to read images? I have an image with only black and white areas and would like to define different material properties based on the color either through the coordinates, element, or node number or somehow directly through the image itself. Do you know of a way to do this with either 4.1 or 4.2?
I really appreciate the help!
Kelly
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
I was thinking it could go into the geometry section of the code, possibly listing all of the information on the pixels that are black, or in the material properties, something like:
%model.material('mat1').selection.set(1);
where inside the selection set could instead be a list of numbers. Do either of these sound possible?
Please login with a confirmed email address before reporting spam
Hello Kelly,
i am trying to import images into comsol. Have you solved the problem already? If yes, could you please share how you managed it with Matlab livelink?
thanks!
Chunyan
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
thanks for the information.
But how is that implemented in COMSOL? I am using COMSOL4.2a now. The choices for importing include mphtxt, mphbin, dxf, asc and another one. It seems that direct importing a jpg or bmp is still not possible.
Chunyan
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
But if you have access to Mimics, you can find it from this webpage, www.materialise.com/mimics, you could have stacks of CT scans processed in Mimics and then import into COMSOL. I've tried to use Mimics to compose biofilm structure from OCT images. It was possible to import the generated structure into COMSOL. But I had problem afterwards for other settings.
Wish you good luck!
Chunyan
Please login with a confirmed email address before reporting spam
normally you need the latest version for that, see the release notes and the doc of v4.2a
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I was able to construct 2D geometry from an MRI images, works quite good. Have you found a solution to using stacks of MRI images ?.
Pranay
Please login with a confirmed email address before reporting spam
have you found a way to import an image stack into comsol for further simulation? i have several image stacks and am wondering how to compose 3D geometry and import into comsol for simulation. if there is a way to directly import image stack, the simulation would become much easier.
Regards!
Chunyan
Please login with a confirmed email address before reporting spam
Did you find any way to import stacks of 2D images acquired from CT. I have a 3D CT-image of a rock which has been segmented to pore (phase 0) and solid(phase 1) and I need to import it to COMSOL for flow simulation. Would you please let me know if you find a way?
Regards,
saeid
Please login with a confirmed email address before reporting spam
you may try a software called Mimics to creat geometry, even mesh, from image stack and then import the mesh into COMSOL for simulation. but if there are too many voids in your geometry, you may get problem in COMSOL.
Chunyan :)
Please login with a confirmed email address before reporting spam
I managed to create a mesh for a 3D segmented image using iso2mesh toolbox. However when I import it to COMSOL I can not select any boundary to assign conditions on. Have you guys found any way to import 3D structure as a geometry into COMSOL 4.2, or later versions? (my structure is a segmented image in .mat format).
Regards,
saeid
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.
Suggested Content
- BLOG Improved Functionality and Tips for Importing STL and NASTRAN® Files
- KNOWLEDGE BASE Can COMSOL import topological data, meshes and images?
- FORUM Importing geometry from txt/xls file
- FORUM Importing .txt file via Interpolation function
- KNOWLEDGE BASE Resolving Gaps and Intersections in Imported CAD Assemblies