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

[Other] Mesh of .dat file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2014, 07:31
Default Mesh of .dat file
  #1
New Member
 
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12
charitonas is on a distinguished road
Dear all,

I am new in OpenFOAM so i am sorry if i dont know too much about it. I had a file in .dat extension and i would like to mesh it. They file is a binary and i would like to produce a mesh from it. I have tried reading OpenFoam users guide book but it didnt help me a lot. (Any other suggestions will be more than welcomed). I know that i should change first of all the ControlDict and i supose that i should change the ascii to binary. But i dont know anything else
charitonas is offline   Reply With Quote

Old   March 28, 2014, 07:38
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Please provide more infos. What program has been used to create the *.dat file?

Cutter
cutter is offline   Reply With Quote

Old   March 28, 2014, 07:50
Default
  #3
New Member
 
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12
charitonas is on a distinguished road
Hi
I dont know how it has been produced since they gave it to me as just a file and its really big. (1.1GB)
charitonas is offline   Reply With Quote

Old   March 28, 2014, 08:59
Default
  #4
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

What program are you using to display the geometry? Got no magic crystal ball...

Cutter
cutter is offline   Reply With Quote

Old   March 28, 2014, 09:05
Default
  #5
New Member
 
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12
charitonas is on a distinguished road
hi
As i stated above i am new to openfoam. I suppose that i have to produce the mesh and then i want to have a look in ParaView (4.1.0). Please find below a simple of my .dat file.


" 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "
charitonas is offline   Reply With Quote

Old   March 28, 2014, 17:10
Default
  #6
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 to all!

@charitonas: As cutter already indicated, the ".dat" file extension is a generic file extension. The file extension itself does give any indication of the software used to generate it.

That being said, on most Linux Distributions, it's possible to use the command file to attempt at figuring out the contents of the file. For example, if the file is named "thename.dat", then run:
Code:
file thename.dat
But honestly, I suggest that you have a good long talk to whomever gave you that file and ask them:
  1. In what specific format is that file?
  2. Can they export the geometry to another format? Preferably to STL format - http://en.wikipedia.org/wiki/STL_%28file_format%29 - so that it can be used with OpenFOAM's meshers.
Otherwise, the file you've got is as good as a file made up of a random set of 1 billion bytes .

Good luck! Best regards,
Bruno
cutter likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 29, 2014, 06:08
Default
  #7
New Member
 
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12
charitonas is on a distinguished road
dear wildcat,

thank you very much for your reply. Indeed, it help me a lot. I will try to ask them but from what i know it was the geometry of an object.
I haven't got any reply for them but just a note.
They gave a zip folder with two files in it. The first one was .raw and the other .dat
Is there any way to produce mesh from the .raw file or no?

Thank again for the help
charitonas is offline   Reply With Quote

Old   March 29, 2014, 08:10
Default
  #8
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
Hurray for generic file extensions...

Try importing in Blender, using the "io_mesh_raw" plugin: http://wiki.blender.org/index.php/Ex...rt/Raw_Mesh_IO
Don't know how to use Blender? Check this website: http://wiki.blender.org/
wyldckat is offline   Reply With Quote

Old   March 30, 2014, 06:12
Default
  #9
New Member
 
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12
charitonas is on a distinguished road
Dear wyldcat,

thank you very much for all this help. I will try to find out the information and come back in the next 2-3 days.Thanks again
charitonas is offline   Reply With Quote

Old   February 18, 2018, 08:09
Default
  #10
New Member
 
Fahime Firoozpour
Join Date: Jan 2018
Posts: 10
Rep Power: 8
Fahime is on a distinguished road
hello Charitonas

did you find the solution? I have the same problem. I want to simulate fluid flow in porous media. I have .dat file not .stl or .obj, I couldn't find any converter to .dat to .stl.

Thanks in Advance
Fahime 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
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


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