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

How to output the field value in a certain point?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 3, 2016, 03:06
Default How to output the field value in a certain point?
  #1
New Member
 
Peter Hu
Join Date: Oct 2015
Posts: 16
Rep Power: 3
huecu588755 is on a distinguished road
I know, I can set a function to get the slice date at a surface or point. But I don't know how to use it. So, where can I find the guider for this part.
huecu588755 is offline   Reply With Quote

Old   November 3, 2016, 05:47
Default
  #2
New Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 26
Rep Power: 8
Dipsomaniac is on a distinguished road
Have a look at the probe or sample dictionaries, or using the probe function within the controlDict. Their are many examples on the forum and online.
Dipsomaniac is offline   Reply With Quote

Old   November 4, 2016, 10:19
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,701
Blog Entries: 6
Rep Power: 31
Tobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Code:
functions
{
    probes
    {
        // Where to load it from
        functionObjectLibs ( "libsampling.so" );

        type            probes;

        // Name of the directory for probe data
        name            T_probes;

        // Write at same frequency as fields
        writeControl  adjustableRunTime;
        writeInterval 0.01;

        // Fields to be probed
        fields
        (
            T
            TYS
        );

        // Used in python functions
        nProbePoints=10;

        probeLocations
        (
            ( 0.05 0.05 0.005 )
            ( 0.05 0.05 0.005 )
            ( 0.05 0.05 0.005 )
            ( 0.06 0.05 0.005 )
            ( 0.06 0.05 0.005 )
            ( 0.07 0.05 0.005 )
            ( 0.07 0.05 0.005 )
            ( 0.08 0.05 0.005 )
            ( 0.08 0.05 0.005 )
            ( 0.08 0.05 0.005 )
        );
    }
}
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply

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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 69 January 20, 2017 08:28
problem in toposet Ahmed Khattab OpenFOAM Pre-Processing 12 December 10, 2016 11:56
snappyHexMesh and cyclic boundaries Ruli OpenFOAM Meshing & Mesh Conversion 2 December 9, 2013 07:51
Gmsh and samplesurface touf Open Source Meshers: Gmsh, Netgen, CGNS, ... 2 December 10, 2007 03:27
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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