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

Print to a file data at a single point

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2010, 15:52
Default Print to a file data at a single point
  #1
Senior Member
 
jeff osborne
Join Date: Mar 2010
Posts: 108
Rep Power: 16
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
Default
  #2
Senior Member
 
jeff osborne
Join Date: Mar 2010
Posts: 108
Rep Power: 16
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:


functions
(

probes
{
type probes;
functionObjectLibs ("libsampling.so"); //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)
);

fields
(
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 "libsampling.so" 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!
-J
ozzythewise is offline   Reply With Quote

Reply


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
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 BlGene OpenFOAM Meshing & Mesh Conversion 10 August 6, 2009 04:26
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46
[OpenFOAM] Paraview command not found hardy ParaView 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 22:00


All times are GMT -4. The time now is 13:17.