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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 11
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
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, 10:19
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
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


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
problem in toposet Ahmed Khattab OpenFOAM Pre-Processing 27 March 3, 2023 22:12
[snappyHexMesh] snappyHexMesh and cyclic boundaries Ruli OpenFOAM Meshing & Mesh Conversion 2 December 9, 2013 07:51
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 03:27
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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