|
[Sponsors] |
Is it possible to export Geometry from *.trn file? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 4, 2013, 08:44 |
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 |
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 ! |
|
February 6, 2013, 09:48 |
|
#3 |
New Member
zhao xin
Join Date: Feb 2010
Location: Goteborg
Posts: 28
Rep Power: 16 |
||
February 6, 2013, 17:19 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
If it is a trn file which includes the mesh then it can be recovered. If no mesh then it cannot be recovered.
|
|
September 18, 2018, 03:09 |
|
#5 |
New Member
abubakar izhar
Join Date: Oct 2015
Posts: 9
Rep Power: 11 |
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.
|
|
September 18, 2018, 04:47 |
|
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
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........ |
|
September 18, 2018, 05:11 |
|
#7 | |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Quote:
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 Code:
cfx5pre -batch res2def.pre 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) |
||
September 18, 2018, 05:20 |
|
#8 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
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... |
|
September 18, 2018, 05:33 |
|
#9 | |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Quote:
I have automated this and use it in combination with ICEM .rpl scripts to do automagic remeshing in CFX. Works like a charm. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4Foam-groovyBC build problem | zxj160 | OpenFOAM Community Contributions | 18 | July 30, 2013 14:14 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 05:43 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' | mfiandor | OpenFOAM Installation | 2 | January 25, 2010 10:50 |