|
[Sponsors] |
[Other] converting mesh data from tetgen to Openfoam!!! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 15, 2015, 09:43 |
converting mesh data from tetgen to Openfoam!!!
|
#1 |
New Member
Abhinay
Join Date: Feb 2015
Location: Bethlehem, Pennsylvania
Posts: 23
Rep Power: 11 |
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! |
|
February 16, 2015, 00:48 |
|
#2 |
Member
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11 |
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 http://www.cfd-online.com/Forums/ope...up-tetgen.html Cheers, Peter |
|
February 16, 2015, 02:24 |
|
#3 |
Senior Member
|
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". |
|
February 16, 2015, 14:37 |
|
#4 |
Member
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11 |
@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 Anyway, alexym is right - don't use spaces in file/directory names. Regards, Peter |
|
February 16, 2015, 21:01 |
|
#5 |
New Member
Abhinay
Join Date: Feb 2015
Location: Bethlehem, Pennsylvania
Posts: 23
Rep Power: 11 |
@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 |
|
|
|
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 |