CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   saving data on a surface during calculation (https://www.cfd-online.com/Forums/openfoam-solving/69083-saving-data-surface-during-calculation.html)

vishwa October 11, 2009 19:33

saving data on a surface during calculation
 
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 October 11, 2009 21:02

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 October 12, 2009 10:36

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 October 12, 2009 14:10

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


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