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 Mar 30, 2011, 1:44 AM EDT Fluid, Computational Fluid Dynamics (CFD), Subsurface Flow Version 4.2, Version 4.2a 16 Replies
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.
Just wondering, were you able to find a way to work out this issue? I am wondering the same thing myself.
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!
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:
where inside the selection set could instead be a list of numbers. Do either of these sound possible?
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 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.
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!
normally you need the latest version for that, see the release notes and the doc of v4.2a
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 ?.
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.
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?
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.
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).
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.
- BLOG Improved Functionality and Tips for Importing STL and NASTRAN® Files
- FORUM Importing CAD file in COMSOL
- KNOWLEDGE BASE Failed to create boundary layer mesh
- BLOG How to Build Geometries from Elevation Data to Model Irregular Shapes
- BLOG Modeling Irregular Shapes: How to Import Curve Data and Loft a Solid