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

Is it possible to export Geometry from *.trn file?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Lance
  • 1 Post By Lance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2013, 07:44
Question Is it possible to export Geometry from *.trn file?
  #1
New Member
 
zhao xin
Join Date: Feb 2010
Location: Goteborg
Posts: 28
Rep Power: 16
zxin is on a distinguished road
A friend of mine has received a CFX *.trn file (transient result file), but actually what he wants is the geometry.... is there any way to extract the geometry from that? I tried to export the geometry information, but only the *.csv file is generated which I could not use.

Thank you !
zxin is offline   Reply With Quote

Old   February 4, 2013, 08:21
Default
  #2
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Do you have .res file? You can extract geomtry from mesh in ICEM CFD.
Far is offline   Reply With Quote

Old   February 6, 2013, 08:48
Default
  #3
New Member
 
zhao xin
Join Date: Feb 2010
Location: Goteborg
Posts: 28
Rep Power: 16
zxin is on a distinguished road
Quote:
Originally Posted by Far View Post
Do you have .res file? You can extract geomtry from mesh in ICEM CFD.
No, only a trn file is available. It seems impossible to do it. Thanks.
zxin is offline   Reply With Quote

Old   February 6, 2013, 16:19
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If it is a trn file which includes the mesh then it can be recovered. If no mesh then it cannot be recovered.
ghorrocks is offline   Reply With Quote

Old   September 18, 2018, 02:09
Default
  #5
New Member
 
abubakar izhar
Join Date: Oct 2015
Posts: 9
Rep Power: 10
abubakarizhar is on a distinguished road
How to eXport geometry file from .res file. I have used FE Modeler but was not able to generate geometry is there any other way.
abubakarizhar is offline   Reply With Quote

Old   September 18, 2018, 03:47
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
A .res-file is a file containing volume elements and a CFD-solution. THere is no geometry.

What you can try is to 1) go to Export, 2) select all walls, and 3) export the coordinates x,y,z to a csv-file. This gives you the coordinates of all elements on all walls, i.e. some sort of representation of the geometry.

If you manage to import this into a piece of software as a STL-file or similar, then you might be in business. If you manage to do so, please inform us all........
Gert-Jan is offline   Reply With Quote

Old   September 18, 2018, 04:11
Default
  #7
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
A .res-file is a file containing volume elements and a CFD-solution. THere is no geometry.

What you can try is to 1) go to Export, 2) select all walls, and 3) export the coordinates x,y,z to a csv-file. This gives you the coordinates of all elements on all walls, i.e. some sort of representation of the geometry.

If you manage to import this into a piece of software as a STL-file or similar, then you might be in business. If you manage to do so, please inform us all........
If you only have a .res file (and no .def file) do like this:
for a .res file called resfile.res, copy the following code to a text file called res2def.pre
Code:
COMMAND FILE:
CFX Pre Version = 19.0
END
>load filename=resfile.res, mode=def, recoverSession=no, replaceFlow=yes, overwrite=yes
> update
>writeCaseFile filename=cfxmesh.def, operation=write solver file
> update
> update
then, run

Code:
cfx5pre -batch res2def.pre
it will produce a .def file called cfxmesh.def.
open ICEM/import mesh/from CFX --> will give you a file called tmpdomain.uns.

File/mesh/close mesh
File/import geometry/faceted/ICEM CFD mesh:tmpdomain.uns
Done! You should now have all the geometry in ICEM, with all surfaces names based on the boundary conditions.



OR, if you really want to use an .stl file, CFD-post can export surfaces to .stl (file/export/type:STL)
leileiji likes this.
Lance is offline   Reply With Quote

Old   September 18, 2018, 04:20
Default
  #8
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Interesting. As seen more often: ICEM is a lifesaver.

Will It also work if you load the res file into pre, and then save a def-file? I guess so.

For people who can't find the command line...
Gert-Jan is offline   Reply With Quote

Old   September 18, 2018, 04:33
Default
  #9
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Will It also work if you load the res file into pre, and then save a def-file? I guess so.
For people who can't find the command line...
yeah, but who doesnt like the command line?
I have automated this and use it in combination with ICEM .rpl scripts to do automagic remeshing in CFX. Works like a charm.
monkey1 likes this.
Lance 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
[swak4Foam] swak4Foam-groovyBC build problem zxj160 OpenFOAM Community Contributions 18 July 30, 2013 13:14
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
1.7.x Environment Variables on Linux 10.04 rasma OpenFOAM Installation 9 July 30, 2010 04:43
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50


All times are GMT -4. The time now is 19:45.