CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] Comsol mesh to openFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2017, 17:46
Default
  #21
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Minisasi is on a distinguished road
Hi,
Here there's a cube. Keep me posted!

Thx
Attached Files
File Type: gz Cube.tar.gz (3.7 KB, 7 views)
Minisasi is offline   Reply With Quote

Old   April 8, 2017, 10:25
Default
  #22
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
hello Minisasi,
I am still struggling with the 2D mesh.
The 3D mesh you sent me does not seem to have an internal grid so no mesh.
Can you convert the attached 4.2 mesh to 5.x mesh?

Thanks
Wouter
Attached Files
File Type: gz block8maal.mphtxt.tar.gz (1.2 KB, 4 views)
wouter is offline   Reply With Quote

Old   April 8, 2017, 17:28
Default
  #23
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello Minisasi,
I think I made at least the 2D part work, please test the 3D part and send me an update. Or send me the 3D mesh.

Hope this helps,
Wouter
Attached Files
File Type: gz comsolToFoam.tar.gz (155.9 KB, 15 views)
wouter is offline   Reply With Quote

Old   April 8, 2017, 18:53
Default
  #24
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Minisasi is on a distinguished road
Hi Wouter,
I've just seen your message.
Sorry about the cube I didn't check before sending it. I'll ask my colleague (I don't have the licence) to remesh it, and I'll be back to you.
Meanwhile your 2D prototype looks fine, but let me double check it with my colleague and the original mesh in comsol 5.2.

Thank you so much for sharing your code
Minisasi is offline   Reply With Quote

Old   April 10, 2017, 17:08
Default
  #25
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Minisasi is on a distinguished road
Hi Wouter,
There is another cube here in Comsol 5.2.
Hope it can work this time
Attached Files
File Type: gz Cube2.tar.gz (3.7 KB, 1 views)
Minisasi is offline   Reply With Quote

Old   April 11, 2017, 14:35
Default
  #26
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
hello Minisasi,
Did you manage to import the old mesh I included last time?
If this is a complete mesh in version 5 I need to work a lot more, because there are no prism, hex, tet or pyr defined like in version 4. And I have to create them from the faces in the program. I do not know if there is enough information to do that.

Best regards,
Wouter
wouter is offline   Reply With Quote

Old   April 14, 2017, 13:55
Default
  #27
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Minisasi is on a distinguished road
Hi,
In the attachment your cube in comsol 5.2
Hope it helps
Attached Files
File Type: gz block8maalComsol5.2.tar.gz (108.9 KB, 3 views)
Minisasi is offline   Reply With Quote

Old   April 14, 2017, 17:47
Default
  #28
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
hello Minisasi,
This file works for me, it has 8 hexes.
attached log and paraFoam picture. There are warnings, I do not know how to get rid of them, but the conversion works.

Hope this help,
Wouter
Attached Images
File Type: jpg block8maalComsol5.2.jpg (28.4 KB, 20 views)
Attached Files
File Type: gz block8maalComsol5.2.log.tar.gz (1.4 KB, 7 views)
wouter is offline   Reply With Quote

Old   April 14, 2017, 17:48
Default
  #29
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Minisasi is on a distinguished road
Nice job!
Have you tried with any other 3D geometry? Do you want to share your code?
Minisasi is offline   Reply With Quote

Old   April 15, 2017, 09:55
Default
  #30
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello Minisasi,
I did not change anything so the code I send before should work.
I cannot try any other 5.2 mesh because I do not have access to Comsol.

Best regards,
Wouter
wouter is offline   Reply With Quote

Old   May 15, 2017, 13:51
Default
  #31
New Member
 
Elaheh
Join Date: May 2017
Posts: 8
Rep Power: 9
Eli_O is on a distinguished road
Hello Wouter,
I tried your code: comsolToFoam for the 2D geometry and it perfectly converted the Comsol mesh to OpenFOAM but when I tried to convert the 2D-axisymmetry mesh from Comsol to OpenFOAM, it converts the mesh to 2D not 2D axisymmetry. Is there any way to convert the 2D-axisymmetry from COMSOL to OpenFOAM? I will appreciate if you can help me.
Regards,
Eli_O is offline   Reply With Quote

Old   May 21, 2017, 10:29
Default
  #32
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
hello Eli_O,
Sorry for the late response, I was on holiday abroad. Could you send me a sample of an axi-symmetric comsol mesh, so I can see what goes wrong.

Best regards,
Wouter
wouter is offline   Reply With Quote

Old   May 23, 2017, 15:47
Default
  #33
New Member
 
Elaheh
Join Date: May 2017
Posts: 8
Rep Power: 9
Eli_O is on a distinguished road
Quote:
Originally Posted by wouter View Post
hello Eli_O,
Sorry for the late response, I was on holiday abroad. Could you send me a sample of an axi-symmetric comsol mesh, so I can see what goes wrong.

Best regards,
Wouter
Hello Wouter,
Thanks for your attention. a sample of an axisymmetric comsol mesh is attached. In fact, I know how to convert the 2D to 2D-axi-symmetric in OpenFOAM but it will be much easier if there would be a way to convert the mesh from comsol 2D axisymmetry directly to OpenFOAM 2d-axisymmetric mesh. I am looking forward to your response.
Regards,
Attached Files
File Type: gz ComsolToFoam.tar.gz (10.2 KB, 9 views)
Eli_O is offline   Reply With Quote

Old   May 23, 2017, 19:25
Default
  #34
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello Eli_O,

comsolToFoam expects to find a boundary called "Axial_Symmetry_1" in the html file to make it a 2D-axi mesh, if it is not there then 2D mesh.
Please check if in the html file all the boundaries are reported. could you tell me what the name is of the axis, maybe phi?

best regards,
Wouter
wouter is offline   Reply With Quote

Old   May 24, 2017, 12:17
Default
  #35
New Member
 
Elaheh
Join Date: May 2017
Posts: 8
Rep Power: 9
Eli_O is on a distinguished road
Quote:
Originally Posted by wouter View Post
Hello Eli_O,

comsolToFoam expects to find a boundary called "Axial_Symmetry_1" in the html file to make it a 2D-axi mesh, if it is not there then 2D mesh.
Please check if in the html file all the boundaries are reported. could you tell me what the name is of the axis, maybe phi?

best regards,
Wouter
Hello Wouter,
Yes you are right I forgot to define axis. now, I define all the boundaries in these new files, the name of axis is axis in this html file.
Regards,
Attached Files
File Type: zip CheckMesh2Daxis.zip (10.5 KB, 4 views)
Eli_O is offline   Reply With Quote

Old   May 24, 2017, 20:17
Default
  #36
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello Eli_O,
I am still missing some information, see the attached screen shot of the HTML file of version 4.2 I used as a long time ago.
I do not know if this still is generated in the report and I do not remember what to include in the report. Please try to find out and send me the new html file.
I will try to change the program that you can tell it what the symmetry axis is without the HTML file.

best regards,
Wouter
Attached Images
File Type: png Axial symmetry 1.png (29.7 KB, 23 views)
wouter is offline   Reply With Quote

Old   May 26, 2017, 11:32
Default
  #37
New Member
 
Elaheh
Join Date: May 2017
Posts: 8
Rep Power: 9
Eli_O is on a distinguished road
Quote:
Originally Posted by wouter View Post
Hello Eli_O,
I am still missing some information, see the attached screen shot of the HTML file of version 4.2 I used as a long time ago.
I do not know if this still is generated in the report and I do not remember what to include in the report. Please try to find out and send me the new html file.
I will try to change the program that you can tell it what the symmetry axis is without the HTML file.

best regards,
Wouter
Hello Wouter,
Sorry for the delay. Finally, I managed to have what you want. to have axis symmetry chapter a physic and a study should be added in COMSOL Please see the attached file.
Regards,
Attached Files
File Type: zip CheckMesh2Daxis.zip (2.9 KB, 7 views)
Eli_O is offline   Reply With Quote

Old   May 26, 2017, 13:01
Default
  #38
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello Eli_O,
Are you sure you sent me the right file, because I cannot find chapter Axial Symmetry 1

best regards
Wouter
wouter is offline   Reply With Quote

Old   May 26, 2017, 13:35
Default
  #39
New Member
 
Elaheh
Join Date: May 2017
Posts: 8
Rep Power: 9
Eli_O is on a distinguished road
Quote:
Originally Posted by wouter View Post
Hello Eli_O,
Are you sure you sent me the right file, because I cannot find chapter Axial Symmetry 1

best regards
Wouter
Sorry, could you check this file.
Regards
Attached Files
File Type: zip CheckMesh2Daxis.zip (10.3 KB, 5 views)
Eli_O is offline   Reply With Quote

Old   May 26, 2017, 18:52
Default
  #40
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
Hello Eli_O,

This file works for me with the latest comsolToFoam, in ParaFoam I can see a wedge, so what is the problem you had?

Best regards,
Wouter
wouter is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 26 June 21, 2024 07:54
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
[Commercial meshers] OpenFoam Mesh to Fluent Mesh in parallel case DominicTNC OpenFOAM Meshing & Mesh Conversion 3 November 22, 2017 10:19
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 08:18


All times are GMT -4. The time now is 15:59.