CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

saving data on a surface during calculation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vishwa

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2009, 19:33
Default saving data on a surface during calculation
  #1
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17
vishwa is on a distinguished road
Hi,
I would like to do something along the lines of probe as described in pitzdaily tutorial. However, I would like to save the data along a surface and not at certains coordinates.

I modified the controlDict as shown below and am getting an error

Quote:
ill defined primitiveEntry starting at keyword 'probeLocations' on line 64 and ending at line 85
The portion of controlDict is pasted here for your reference
Code:
functions
{
probes1
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl   timeStep;
        outputInterval  1;
        probeLocations
        (
            midplane
        {
        type plane;
        basePoint (0 -0.086 0.00046);
        normalVector(0 0 1);
        }
        );

        fields
        (
            p
        );
    }    

        
}
can anybody help me with fixing this problem

Regards,
Vishwa
vishwa is offline   Reply With Quote

Old   October 11, 2009, 21:02
Default
  #2
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17
vishwa is on a distinguished road
After digging a little bit further, i found this link

http://www.cfd-online.com/Forums/ope...ionobject.html

and changed the controlDict accordingly.. It now reads

Code:
functions
{
probes1
    {
    type            surfaces;
        functionObjectLibs ("libsampling.so");
        //enabled         true;
        outputControl   timeStep;
        outputInterval  1;
    surfaceFormat raw;
    interpolationScheme cellPointFace; 
    
        fields
        (
            U
        );     


    surfaces
        (
            midplane
        {
        type plane;
        basePoint (0 -0.086 0.00046);
        normalVector(0 0 1);
        }
        );
        
    }
Now i get this error

Quote:
ill defined primitiveEntry starting at keyword 'surfaces' on line 73 and ending at line 90

file: /home/dagarshali/OpenFOAM/dagarshali-1.6.x/CIJR/system/controlDict at line 90.

From function primitiveEntry::readEntry(const dictionary&, Istream&)
in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 210.

FOAM exiting
Any help?

Regards,
Vishwa
vishwa is offline   Reply With Quote

Old   October 12, 2009, 10:36
Default
  #3
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17
vishwa is on a distinguished road
playing further with the surfaces, I found in one of the tutorials which uses surfaces in the controlDict (sloshingtank2d3d0F), here they use a patch and not a plane. I changed it to patch in my controlDict file and the code starts to run. But, I would like to save the data on the midplane,which hasn't been defined in the boundary in the constant folder. I need this so that I can make a movie of the vector fields. I am pretty new to Openfoam and still learning the ropes.

Any suggestions please...

Best regards,
Vishwa
vishwa is offline   Reply With Quote

Old   October 12, 2009, 14:10
Default
  #4
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17
vishwa is on a distinguished road
finally figured it out....

I had typed normalVector(0 0 1) ..there should have been a space between normalVector and paranthesis...normalVector (0 0 1)


Regards,
Vishwa
New_Old likes this.
vishwa 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
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 13 December 28, 2020 04:16
saving monitoring data mange FLUENT 2 March 3, 2009 05:54
Saving data file during paralell calculation mneo FLUENT 3 February 6, 2006 04:05
Saving graph register data into a file Julie Polyakh Siemens 1 January 27, 2003 21:35
Saving vertex data Julie Polyakh Siemens 1 November 18, 2002 02:12


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