Discussion Forum

import a bmp image into COMSOL geometry

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   4 Replies   Last post: February 7, 2012 4:47pm UTC
Chunyan Li

Chunyan Li

February 7, 2012 3:10pm UTC

import a bmp image into COMSOL geometry

Hey,

as stated in this webpage: http://www.comsol.com/products/formats/ Comsol can both read and write few types of images. However, when I tried to import a bmp image as my structure for flow simulation, it was not possible, because the options given include only mphtxt, dxf, etc. Does any one know how I can get a bmp or jpeg image imported? Thanks!

Chunyan

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Edgar Kaiser

Edgar Kaiser

February 7, 2012 3:40pm UTC in response to Chunyan Li

Re: import a bmp image into COMSOL geometry


I don't think it possible to set up a model geometry (is that what you want?) from a bitmap.

Cheers
Edgar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Chunyan Li

Chunyan Li

February 7, 2012 4:14pm UTC in response to Edgar Kaiser

Re: import a bmp image into COMSOL geometry

Hey Edgar,

yes, it is, because the biofilm structure I need is very complicated. It's neither possible nor reliable to draw it with any software. I want to use the image I got from OCT analysis.

Do you know if it's possible to import txt files? The results can also be saved in txt files.

Thanks!

Chunyan


Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Edgar Kaiser

Edgar Kaiser

February 7, 2012 4:20pm UTC in response to Chunyan Li

Re: import a bmp image into COMSOL geometry

Hi Chunyan,

I think you must render the bitmap into a compatible vector format. This may be dxf or one of the available interfaces for CAD software like SolidWorks. I don't know what can be imported by textfiles. Maybe the COMSOL support can help.

However, very complicated biological structures will result in complicated geometries that are difficult to mesh and solve.

My advice would be to draw something simplified and start with it.

Cheers
Edgar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Chunyan Li

Chunyan Li

February 7, 2012 4:47pm UTC in response to Edgar Kaiser

Re: import a bmp image into COMSOL geometry

Hello Edgar,

thank you very much for your suggestions. I've just checked that it's possible to convert bmp images into dxf format. Will try that out. Thanks!!!!!

Regards!

Chunyan

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines