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

[Other] converting mesh data from tetgen to Openfoam!!!

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By opedrofunk
  • 1 Post By alexeym
  • 1 Post By opedrofunk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2015, 09:43
Default converting mesh data from tetgen to Openfoam!!!
  #1
New Member
 
Abhinay
Join Date: Feb 2015
Location: Bethlehem, Pennsylvania
Posts: 23
Rep Power: 11
soankerabhinay is on a distinguished road
I am completely new to Openfoam! I did generate tetramesh using TETGEN and trying to convert that mesh into openfoam for heat transfer analysis.

I used tetgenTOFoam but it returns error as shown in the pic!

Does anyone help me with the step by step procedure to convert tetgen to openfoam? I dont see any information about tetgen to openFoam!

Also, can we generate tetramesh in the openfoam without importing it externally? if so, please share the information. Thank you!
Attached Images
File Type: jpg openfoam_screen.jpg (65.0 KB, 43 views)
soankerabhinay is offline   Reply With Quote

Old   February 16, 2015, 00:48
Default
  #2
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
You need to have the basic structure of an OpenFOAM case set up to run tetgenToFoam, one which at a minimum contains:

Code:
$ tree
.
├── constant
│** └── polyMesh
└── system
    └── controlDict
Then it will work fine. FYI: If you're looking for a good free preprocessor for tetgen, check this:

http://www.cfd-online.com/Forums/ope...up-tetgen.html

Cheers,
Peter
soankerabhinay likes this.
opedrofunk is offline   Reply With Quote

Old   February 16, 2015, 02:24
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

@opedrofunk As you can see, soankerabhinay tried to convert mesh in one of tutorial cases, so there was basic file structure.

@soankerabhinay I think it is a space in the folder name that mess up the conversion. Try renaming "New folder" into "new-folder".
soankerabhinay likes this.
alexeym is offline   Reply With Quote

Old   February 16, 2015, 14:37
Default
  #4
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
@alexym Assuming that he correctly copied the complete case to the run directory, I would be inclined to agree with you - spaces in path/file names will throw an error (at least on linux/unix systems). However, this normally yields a different error than the one posted by soankerabhinay. For example:

Code:
$ cd New\ Folder/
$ tree
.
├── constant
│** └── polyMesh
└── system
    └── controlDict
Code:
$ tetgenToFoam ~/Desktop/test.1
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.3.x-cf370883644e
Exec   : tetgenToFoam /Users/peter/Desktop/test.1
Date   : Feb 16 2015
Time   : 10:16:09
Host   : "peter"
PID    : 25646
fileName::stripInvalid() called for invalid fileName /Users/peter/OpenFOAM/peter-2.3.x/run/NewFolder
    For debug level (= 2) > 1 this is considered fatal
Abort trap: 6
It may be that windows behaves differently in this case (I don't have access to a windows box to test). Which is why I still suspect the case structure might be off.

Anyway, alexym is right - don't use spaces in file/directory names.

Regards,
Peter
soankerabhinay likes this.
opedrofunk is offline   Reply With Quote

Old   February 16, 2015, 21:01
Default
  #5
New Member
 
Abhinay
Join Date: Feb 2015
Location: Bethlehem, Pennsylvania
Posts: 23
Rep Power: 11
soankerabhinay is on a distinguished road
@Alexeym, Thank you so much! As you said, space was the culprit! It worked when that was fixed. Thanks again.

@opedrofunk, Thank you for the swift response and also for the info about sketchup-tetgen interface, it is such an easy tetgen per-processor to work with
soankerabhinay 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
[Salome] Script for converting a mesh from Salome-Platform to OpenFOAM nsf OpenFOAM Meshing & Mesh Conversion 86 February 8, 2023 11:30
[Salome] Converting Salome wedge mesh to OpenFOAM anon_q OpenFOAM Meshing & Mesh Conversion 4 March 13, 2019 16:13
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
[Commercial meshers] Problem converting fluent mesh vinz OpenFOAM Meshing & Mesh Conversion 28 October 12, 2015 07:37
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 17:02.