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

How to build complex geometry in openfoam?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2016, 12:06
Smile How to build complex geometry in openfoam?
  #1
Member
 
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 9
Mark JIN is on a distinguished road
Hi friends,

I was an ansys user and now is atarting with openfoam for my cfd analysis. After understanding some openfoam basics, I was trying to convert fluent mesh into openfoam format, but some errors came, not sure what's the problem, maybe complexity or naming..

Just want to understand what could be an effective way to build complex geometry (such as an urban site with building windows open) and have openfoam to read it, any thrid party software available?

Thanks a lot!

Mark
Mark JIN is offline   Reply With Quote

Old   September 12, 2016, 05:02
Default
  #2
New Member
 
Join Date: May 2016
Posts: 28
Rep Power: 9
g.freeman is on a distinguished road
Quote:
Originally Posted by Mark JIN View Post
Hi friends,

I was an ansys user and now is atarting with openfoam for my cfd analysis. After understanding some openfoam basics, I was trying to convert fluent mesh into openfoam format, but some errors came, not sure what's the problem, maybe complexity or naming..

Just want to understand what could be an effective way to build complex geometry (such as an urban site with building windows open) and have openfoam to read it, any thrid party software available?

Thanks a lot!

Mark
Can you report the error? I often make my mesh in ICEM and then convert it in OF without any problem.

This could also be useful for you: http://cfd.direct/openfoam/user-guid...#x27-1940005.5
g.freeman is offline   Reply With Quote

Old   September 15, 2016, 05:01
Default
  #3
Member
 
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 9
Mark JIN is on a distinguished road
Quote:
Originally Posted by g.freeman View Post
Can you report the error? I often make my mesh in ICEM and then convert it in OF without any problem.

This could also be useful for you: http://cfd.direct/openfoam/user-guid...#x27-1940005.5

Thanks for ur help, here is my error.
I built solid blocks through design modeller and created enclosure. Then I suppressed the solid bodies (with only enclosure left) and gave 'inlet' 'outlet' naming only.


markjin@markjin-VirtualBox:~/OpenFOAM/markjin-4.0/run/Case3$ fluentMeshToFoam Case3.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.0-665f1db4c1f1
Exec : fluentMeshToFoam Case3.msh
Date : Sep 15 2016
Time : 18:51:23
Host : "markjin-VirtualBox"
PID : 4063
Case : /home/markjin/OpenFOAM/markjin-4.0/run/Case3
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Embedded blocks in comment or unknown: (
Embedded blocks in comment or unknown
Found end of section in unknown
Embedded blocks in comment or unknown
Found end of section in unknown
Found end of section in unknown
Embedded blocks in comment or unknown: (
Embedded blocks in comment or unknown
Found end of section in unknown
Embedded blocks in comment or unknown:
(
Found end of section in unknown
Found end of section in unknown
Embedded blocks in comment or unknown: (
Embedded blocks in comment or unknown
Found end of section in unknown
Found end of section in unknown
Embedded blocks in comment or unknown: (
Embedded blocks in comment or unknown
Found end of section in unknown
Embedded blocks in comment or unknown
Found end of section in unknown
Found end of section in unknown
Dimension of grid: 3
Number of points: 10036

number of faces: 26210
Number of cells: 8129
Reading points
Reading points
Reading mixed faces
Reading mixed faces
Reading mixed faces
Reading mixed faces
Other readCellGroupData: 2 1 1fc1 1 0
Reading mixed cells
Read zone1:1 name:interior-solid patchTypeID:interior
Reading zone data
Read zone1:2 name:solid patchTypeID:fluid
Reading zone data
Read zone1:5 name:inlet patchTypeID:velocity-inlet
Reading zone data
Read zone1:6 name outlet patchTypeID pressure-outlet
Reading zone data
Read zone1:7 name:wall-solid patchTypeID:wall
Reading zone data


FINISHED LEXING


#0 Foam::error: printStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 ? at ??:?
#4 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#5 ? at ??:?
Segmentation fault (core dumped)
markjin@markjin-VirtualBox:~/OpenFOAM/markjin-4.0/run/Case3$
Mark JIN is offline   Reply With Quote

Old   September 15, 2016, 06:31
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

I can not help you with the ICEM import (I did it only for simple 2D cases during my study time) but for 6 years now, I am using snappyHexMesh for everything. See the wiki site, the openfoam tutorials or check out my website. The next two tutorials that I will publish are:

  • Sphere, Diffusor combustion chamber
  • Jet-Engine Turbine
Dipsomaniac likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 18, 2016, 08:38
Default
  #5
Member
 
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 9
Mark JIN is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi,

I can not help you with the ICEM import (I did it only for simple 2D cases during my study time) but for 6 years now, I am using snappyHexMesh for everything. See the wiki site, the openfoam tutorials or check out my website. The next two tutorials that I will publish are:

  • Sphere, Diffusor combustion chamber
  • Jet-Engine Turbine

Hi Tobi, thanks for your help. May I describe my case here? It would be great if you get time to give any sugguestion!

Simply, I want to use openfoam for natural ventilation analysis. I will need to build a cluster of buildings and an enclosure around them where wind blows within the enclosure, that's what I did using 'Ansys design modeller and meshing' before. But it seems it is not workable when I do 'fluentMeshToFoam' trying to convert boths buildings and enclousre in the meantime.

I saw some talks about snappyHexMesh and Salome, is it true that I need to export building geometry and enclosure geometry seperately into STL format that openfoam can read? Do you have any sugguestion?

Thank you so much!!!
Mark JIN 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 25 August 14, 2022 13:55
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
[ICEM] Complex Geometry for Hex Mesh smoerebroet ANSYS Meshing & Geometry 0 January 9, 2015 15:21
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


All times are GMT -4. The time now is 23:33.