CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Print to a file data at a single point

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 16, 2010, 15:52
Default Print to a file data at a single point
Senior Member
jeff osborne
Join Date: Mar 2010
Posts: 108
Rep Power: 9
ozzythewise is on a distinguished road
Hi all,

What I'm trying to do is get a file printout of information at a point, in this case, I'm looking to printout the stagnation pressure for a simulation that involves flow around a cylinder. I want it in the same format as when it prints out forces and force coefficients, I'm just not sure how to do it. I'm thinking I need to use the probe utility somehow, but I don't know how to use that. If anyone could give me a hand that would pretty really helpful.

Thanks in advance.
ozzythewise is offline   Reply With Quote

Old   July 17, 2010, 08:42
Senior Member
jeff osborne
Join Date: Mar 2010
Posts: 108
Rep Power: 9
ozzythewise is on a distinguished road
Okay, I sort of solved the problem but then added another one. I added the following lines to the end of my controlDict file:


type probes;
functionObjectLibs (""); //library to load
enabled true;
outputControl timeStep;
outputInterval 1; //how often I want to probe
probeLocations //where I want to probe
(-1 0 0.05)
(0 1 0.05)
(1 0 0.05)
(0 -1 0.05)
(-0.707 0.707 0.05)
(0.707 0.707 0.05)
(0.707 -0.707 0.05)
(-0.707 -0.707 0.05)
(-0.383 0.924 0.05)
(0.383 0.924 0.05)
(0.924 0.383 0.05)
(0.934 -0.383 0.05)
(0.383 -0.924 0.05)
(-0.383 -0.924 0.05)
(-0.924 -0.383 0.05)
(-0.934 0.383 0.05)

p //the field I want to probe

However, when I ran this I got the following error:

--> FOAM Warning :
From function dlLibraryTable:pen(const dictionary& dict, const word& libsEntry, const TablePtr tablePtr)
in file lnInclude/dlLibraryTableTemplates.C at line 68
library "" did not introduce any new entries

Which I don't really understand. In addition, the printout was not a .dat file, so when I tried to import the data into excel all the values I got would just be in 1 cell, making data processing pretty difficult.

If anyone has any suggestions for that error, and how I can change the output file format to .dat I would really appreciate it.

Thanks in advance!
ozzythewise is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
Paraview command not found hardy OpenFOAM Paraview & paraFoam 7 September 18, 2008 04:59
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 15:49
PHI file structure Eugene Phoenics 9 November 2, 2001 23:00

All times are GMT -4. The time now is 07:22.