|
[Sponsors] |
July 25, 2021, 15:48 |
how to convert .txt files to OpenFOAM format
|
#1 |
Senior Member
Alan w
Join Date: Feb 2021
Posts: 283
Rep Power: 6 |
Hi,
Recently I found a site showing some simulation case files for 0, constant and system, so I copied them as text (.txt) files. Now, I need to convert them to OpenFOAM format files. I thought the method would be easy to find, but after much searching, all I can find is some cryptic info, along with the comment, "just go write a program". But I'm not a programmer, and would appreciate some examples of how to do this. btw, Thanks to all who have been an indispensable help to me, as I jump from problem to problem. |
|
July 26, 2021, 01:44 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
OF accepts plain ASCII.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
July 26, 2021, 02:13 |
|
#3 |
Member
Daniel
Join Date: Jan 2021
Posts: 39
Rep Power: 5 |
Hey Alan,
you don´t need any special file type for OF, so just name f.e. your velocity file "U" instead of "U.txt" and it works. |
|
July 28, 2021, 15:06 |
gave up prematurely
|
#4 |
Senior Member
Alan w
Join Date: Feb 2021
Posts: 283
Rep Power: 6 |
Danke Schön and Thanks!
I appreciate your help, but I just used brute force and re-typed the files; thankfully they weren't too big. So I could have just renamed them to remove the .txt? What does f.e. mean? |
|
July 28, 2021, 15:16 |
|
#5 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
>just renamed them to remove the .txt?
Yes, that's it.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM files into csv format | kd55 | OpenFOAM Post-Processing | 4 | May 16, 2023 04:58 |
[Technical] How to convert Corner-grid format to OpenFOAM mesh | ELwardi | OpenFOAM Meshing & Mesh Conversion | 0 | April 20, 2019 13:05 |
[Commercial meshers] starccm+ solution data convert into OpenFOAM format | akshaybagi | OpenFOAM Meshing & Mesh Conversion | 1 | June 2, 2017 06:09 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |