CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   script for converting *.erd file (https://www.cfd-online.com/Forums/siemens/52929-script-converting-erd-file.html)

Joern Beilke June 5, 2002 12:16

script for converting *.erd file
 
Is anybody willing to share his script to transform the *.erd file into a row/column format?

I have a solution inside prostar (using edgr and rclip and sdat commands) but I am looking for something which can be used standalone.

Lars Ola Liavåg June 6, 2002 01:34

Re: script for converting *.erd file
 
I am afraid I haven't got anything to contribute with, but I am also very interested in all approaches to transfer the erd data to a row/column format, within PROSTAR or outside it. Like many others I write my reports in MS Office and it would be advantageous to be able to more easily read and plot such data in, say, Excel.

Lars Ola

Joern Beilke June 6, 2002 07:22

Re: script for converting *.erd file
 
Run prosize and set "MXSTOR" to a higher value.

Within prostar use the following commands
to load the total forces and angular momentums
of region 3 into the graph-registers
and save them to a file:


gres
y
edgr case.erd tztorq 3
rclip,7,1,2,1,10000,1
edgr case.erd tytorq 3
rclip,6,1,2,1,10000,1
edgr case.erd txtorq 3
rclip,5,1,2,1,10000,1
edgr case.erd tzforce 3
rclip,4,1,2,1,10000,1
edgr case.erd tyforce 3
rclip,3,1,2,1,10000,1
edgr case.erd txforce 3
sdat "forces.dat" 7 1 1
close "forces.dat"


Just modify the commands according your needs.

HVN June 10, 2002 06:56

Re: script for converting *.erd file
 
Or you could open directly your erd file with Excell.

Joern Beilke June 10, 2002 08:29

Re: script for converting *.erd file
 
1) not everybdy uses excel or windows

2) did you look into the structure of the erd file? if you open it in a spreadsheet you will get a lot of garbage.

3) did you manage to open it in exel and get the values sorted ...?


william June 10, 2002 09:10

Re: script for converting *.erd file
 
Learn to use grep, it will only take a couple of hours and you will be able to do this type of formatting forever with very little effort

Vladimir Krejci June 10, 2002 09:14

Re: script for converting *.erd file
 
Hi

StarOffice package (under Linux OS) is also able to open '.erd' file the same way as Microsoft Office. There is only one annoyance you have to change extension of that file from '.erd' to '.txt' and then choose 'text-txt-csv' as a file type option. The further options which follows are similar to the Microsoft's.

Joern Beilke June 10, 2002 09:35

Re: script for converting *.erd file
 
fine but if you write out the forces for a wall boundary you dont get a row/column structure in the erd file which you can use in a spredsheet.

it is also not a big deal to write a perl script which just converts a special erd file. but to do it in a general way, which works for all kinds of these files might be a little bit more tricky.


All times are GMT -4. The time now is 23:37.