CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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 Search this Thread Display Modes
Old   November 3, 2016, 02: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: 10
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, 04:47
Default
  #2
Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 58
Rep Power: 15
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, 09:19
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi 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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in toposet Ahmed Khattab OpenFOAM Pre-Processing 27 March 3, 2023 21:12
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
[snappyHexMesh] snappyHexMesh and cyclic boundaries Ruli OpenFOAM Meshing & Mesh Conversion 2 December 9, 2013 06:51
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 02:27
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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