|
[Sponsors] |
June 11, 2012, 14:19 |
OpenFOAM's output ability?
|
#1 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
I'd like Info be able to output "carriage return" and other color output to the terminal. I'm not sure if Info is able to do this or not.
Any ideas?
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
June 16, 2012, 05:29 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi Daniel,
Let's see:
Let us know some successful results! Best regards, Bruno
__________________
|
|
June 16, 2012, 12:59 |
|
#3 | |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Quote:
Thank you Bruno. Btw, I am wondering are you staying on the forum all the time? You dont have job or research to do?
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
||
June 16, 2012, 13:14 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Quote:
I do have a job and I'm almost always busy... But on weekends and late night I do what I can to help people on the forum and take the chance to learn some more stuff around OpenFOAM
__________________
|
||
June 16, 2012, 13:46 |
|
#5 | |||
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Quote:
I have an impression that OpenFOAM has built a lot of fundamental classes and templates (like scalar, vector, Info, etc.) which are so mature now that even from a pure C++ programming language point of view, it is really a great contribution! So I am wondering, adding colors, etc., which hurts the OpenFOAM overall structure nothing, and also they can enhance and mature the fundamental class, why not do it. Btw, I do have a question concerning wmake, do you know why they keep using wmake instead a cross-platform cmake at the very beginning of FOAM? Quote:
Quote:
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
||||
June 16, 2012, 17:13 |
|
#6 | ||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Quote:
Quote:
Anyway, when it comes to output - and since it's CFD - if you want colors, you do it when you're post-processing In other words, it would be easier to write a macro for VIM or script for the shell or whatever for your favorite text editor, in order to interpret the output that you usually see in the log file. A practical example of this is "colorgcc": http://schlueters.de/colorgcc.html - it interprets Gcc's output and displays it in a more colorful way And it's not the only one out there! Quote:
Nonetheless, this is why FreeFOAM was born: http://freefoam.sourceforge.net/ - it's OpenFOAM reimplemented to use CMake for building and Python scripts for enhanced shell control. But then people that are accustomed to "wmake", have a hard time using CMake... at least by what I've read on FreeFOAM's mailing list. But the thing is that CMake isn't perfect either. One example is Google Chromium, where they simply reinvented the wheel one more time and created gyp: http://code.google.com/p/gyp/ - for more: http://code.google.com/p/gyp/wiki/GypVsCMake But honestly, what I miss more on wmake vs cmake is the progress indicator... Bernhard, aka gschaider - 2,326 What can I say: why spend money and time playing World of Warcraft, when I can help people here on the forum My current estimate is that about 70% of my posts are concerning installation of OpenFOAM, wherever it may be
__________________
|
|||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Questions about data output | aki_yafuji | OpenFOAM Running, Solving & CFD | 3 | September 9, 2010 01:59 |
lift and drag on ship superstructures | vaina74 | OpenFOAM Running, Solving & CFD | 3 | June 8, 2010 12:30 |
[Other] Output Format of MetaMesh | t42 | OpenFOAM Meshing & Mesh Conversion | 0 | August 3, 2007 04:28 |
can "output control " output Nu in expression? | prayskyer | CFX | 3 | July 7, 2006 19:37 |
Help with DPM UDF for OUTPUT needed | Zhengcai Ye | FLUENT | 0 | January 5, 2004 16:58 |