CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

How to extract data from log

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2018, 02:20
Smile How to extract data from log
  #1
New Member
 
Lewis
Join Date: Jan 2018
Posts: 2
Rep Power: 0
Fluid Liu is on a distinguished road
hello,everyone! I wonder if there is a method to extract some data from the log after the running. For example, how to plotting the Cl-t, Cm-t, Cd-t from a log,you know, there are so many different variables and results in the log? By the way ,how to upload a picture in cfd-online, I am new here,and I can not add a picture in this passage or even a emoticon ,why? Thanks for your help
Fluid Liu is offline   Reply With Quote

Old   March 21, 2018, 10:58
Default
  #2
Senior Member
 
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 11
usv001 is on a distinguished road
Hi Lewis,

You can use bash commands (e.g. grep, awk, sed etc.) to extract the necessary data from log files. You have to show the format of the log file for further assistance.

As for the emoticons, check if you've unchecked 'Disable smilies in text' option below the message box.

Cheers,
USV
usv001 is offline   Reply With Quote

Old   March 21, 2018, 21:40
Default
  #3
New Member
 
Lewis
Join Date: Jan 2018
Posts: 2
Rep Power: 0
Fluid Liu is on a distinguished road
Quote:
Originally Posted by usv001 View Post
Hi Lewis,

You can use bash commands (e.g. grep, awk, sed etc.) to extract the necessary data from log files. You have to show the format of the log file for further assistance.

As for the emoticons, check if you've unchecked 'Disable smilies in text' option below the message box.

Cheers,
USV
Thank you USV , awk is good ,i've handled the problem
Fluid Liu is offline   Reply With Quote

Reply

Tags
extruct data, pyfoam


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
Extract Surface Data from 3D-Plot jasp07 Tecplot 4 December 23, 2016 09:25
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 01:51
[General] How to extract time series data at a specific point location using paraview script Jack001 ParaView 0 April 7, 2016 11:05
extract data from graphs in paraView (paraFoam) vitorspadetoventurin OpenFOAM Post-Processing 1 November 24, 2014 03:39


All times are GMT -4. The time now is 11:14.