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

[mesh manipulation] datToFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2012, 10:50
Default datToFoam
  #1
New Member
 
Join Date: Aug 2010
Posts: 20
Rep Power: 15
chaos is on a distinguished road
hello!

it's my first time using openfoam and i can't even import my mesh

my inputfile is a nastran bulkdata file (.dat)
the syntax is really simple:
BEGIN BULK (koordinate and number of the nodes)
GRID,1,,588062.321633,253262.321633,1798.662318
GRID,2,,588062.321633,253392.110575,1760.908129
...
(number of the hexaedra nd the needed nodenumbers)
CHEXA 140928 145776 145835 145836 145777 149257 149316+
+ 149317 149258

i found the application dattofoam but theres no documentation what file exactly.
is it for nastran datfiles? because i always get this error:


Build : 2.1.1-221db2718bbb
Exec : datToFoam -noFunctionObjects planner.dat
Date : Aug 23 2012
Time : 07:25:57
Host : "ubuntu"
PID : 5661
Case : /home/stefan/OpenFOAM/stefan-2.1.1/run/dattofoam
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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



--> FOAM FATAL IO ERROR:
wrong token type - expected word, found on line 0 the punctuation token ';'

file: IStringStream.sourceFile at line 0.

From function operator>>(Istream&, word&)
in file primitives/strings/word/wordIO.C at line 74.

FOAM exiting

i hope you can help me.
chaos is offline   Reply With Quote

Old   August 23, 2012, 14:24
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings chaos,

Welcome to using OpenFOAM! Since it's open-source, you have to go straight to the source code: https://github.com/OpenFOAM/OpenFOAM...am/datToFoam.C

Or go to the code documentation: http://www.openfoam.org/docs/cpp/ - search for datToFoam.

Seems like datToFoam isn't for Nastran files, because it references explicitly in the code this:
Code:
std::ifstream plot3dFile(args.args()[1].c_str());
If I'm not mistaken, OpenFOAM can only convert surfaces from Nastran's "*.nas" files:
Code:
surfaceConvert a.nas a.stl
Best regards,
Bruno
arnaud6 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 27, 2012, 02:22
Default
  #3
New Member
 
Join Date: Aug 2010
Posts: 20
Rep Power: 15
chaos is on a distinguished road
thx for your help!

i also looked up the sourcecode but wasn't shure if it's compatible.

ok than i'll have to code it on my own.

thx again!
chaos 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



All times are GMT -4. The time now is 13:31.