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

surfaceFieldValue post-processing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2022, 07:35
Post surfaceFieldValue post-processing
  #1
New Member
 
Akshay
Join Date: Jan 2020
Posts: 28
Rep Power: 6
enthusiast is on a distinguished road
Hi,
I am unable to create surface filed value post processing operating in controlDict.

I have created the facezone from facesets at the required position inside my mesh domain, I want to take the area average of the alpha.gas phase at this region.

I am getting an error.

Someone please help, this is my thesis work and my work is getting delayed due to this and I am very near to the Deadline.

I am using ESI OF version 8.

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    {
        name    internalFaces;
        type    faceSet;
        action  new;
		
        source  boxToFace;
        sourceInfo
        {
            box (0.9823 0.0965 0.457) (1.002 0.1403 0.528);
        }
    }

	{
        name    internalfacepatch;
        type    faceZoneSet;
        action    new;
		
        source    setToFaceZone;
        sourceInfo
        {
            faceSet    internalFaces; 
			cellSet    internalCells;
			flip    false;
        }
    }
My controlDict

Code:
outlet_oxygen
{
    type            surfaceFieldValue;
    libs            ("libfieldFunctionObjects.so");

    log             true;
    writeControl    writeTime;
    writeFields     true;

    surfaceFormat   none;
    regionType      faceZone;
    name            internalfacepatch;

    operation       areaAverage;

    weightField     alpha.oxygen;

    fields
    (
        alpha.oxygen
    );
}
The solver is crashing with this error

Code:
Starting time loop

surfaceFieldValue outlet_oxygen write:


--> FOAM FATAL ERROR:
surfaceFieldValue outlet_oxygen: faceZone(internalfacepatch):
    Unable to process internal faces for volume field alpha.oxygen


    From function Foam::tmp<Foam::Field<Type> > Foam::functionObjects::fieldValues::surfaceFieldValue::filterField(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, bool) const [with Type = double]
    in file fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C at line 416.

FOAM aborting

Generating stack trace...


Backtrace:
        ZN10StackTraceC1Ev [0x626c1855+0x25]
                 module: C:\PROGRA~1\BLUECF~1\ThirdParty-8\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
        ZN4Foam5error10printStackERNS_7OstreamE [0x6c30ae5a+0x23a]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZN4Foam5error5abortEv [0x6c0c68b1+0x211]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZNK4Foam15functionObjects11fieldValues17surfaceFieldValue11filterFieldIdEENS_3tmpINS_5FieldIT_EEEERKNS_14GeometricFieldIS6_NS_12fvPatchFieldENS_7volMeshEEEb [0x922fb68+0x1d8]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libfieldFunctionObjects.dll
        ZNK4Foam15functionObjects11fieldValues17surfaceFieldValue14getFieldValuesIdEENS_3tmpINS_5FieldIT_EEEERKNS_4wordEbb [0x9231d7f+0x36f]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libfieldFunctionObjects.dll
        ZN4Foam15functionObjects11fieldValues17surfaceFieldValue5writeEv [0x903d1e6+0x166]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libfieldFunctionObjects.dll
        ZN4Foam15functionObjects11timeControl5writeEv [0x6c18a32d+0x2d]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZN4Foam18functionObjectList5startEv [0x6c180acf+0x8f]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZNK4Foam4Time3runEv [0x6c18ccfd+0x19d]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        (No symbol) [0x472123]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\bin\multiphaseEulerFoam.exe
        (No symbol) [0x4013c1]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\bin\multiphaseEulerFoam.exe
        (No symbol) [0x4014f6]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\bin\multiphaseEulerFoam.exe
        BaseThreadInitThunk [0x7ffbb2517034+0x14]
                 module: C:\Windows\System32\KERNEL32.DLL
        RtlUserThreadStart [0x7ffbb32e2651+0x21]
                 module: C:\Windows\SYSTEM32\ntdll.dll
Your assistance will really help me a lot.

Regards
Akshay
enthusiast is offline   Reply With Quote

Old   May 16, 2022, 10:23
Default this solved the issue
  #2
New Member
 
Akshay
Join Date: Jan 2020
Posts: 28
Rep Power: 6
enthusiast is on a distinguished road
Quote:
Originally Posted by enthusiast View Post
Hi,
I am unable to create surface filed value post processing operating in controlDict.

I have created the facezone from facesets at the required position inside my mesh domain, I want to take the area average of the alpha.gas phase at this region.

I am getting an error.

Someone please help, this is my thesis work and my work is getting delayed due to this and I am very near to the Deadline.

I am using ESI OF version 8.

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    {
        name    internalFaces;
        type    faceSet;
        action  new;
		
        source  boxToFace;
        sourceInfo
        {
            box (0.9823 0.0965 0.457) (1.002 0.1403 0.528);
        }
    }

	{
        name    internalfacepatch;
        type    faceZoneSet;
        action    new;
		
        source    setToFaceZone;
        sourceInfo
        {
            faceSet    internalFaces; 
			cellSet    internalCells;
			flip    false;
        }
    }
My controlDict

Code:
outlet_oxygen
{
    type            surfaceFieldValue;
    libs            ("libfieldFunctionObjects.so");

    log             true;
    writeControl    writeTime;
    writeFields     true;

    surfaceFormat   none;
    regionType      faceZone;
    name            internalfacepatch;

    operation       areaAverage;

    weightField     alpha.oxygen;

    fields
    (
        alpha.oxygen
    );
}
The solver is crashing with this error

Code:
Starting time loop

surfaceFieldValue outlet_oxygen write:


--> FOAM FATAL ERROR:
surfaceFieldValue outlet_oxygen: faceZone(internalfacepatch):
    Unable to process internal faces for volume field alpha.oxygen


    From function Foam::tmp<Foam::Field<Type> > Foam::functionObjects::fieldValues::surfaceFieldValue::filterField(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, bool) const [with Type = double]
    in file fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C at line 416.

FOAM aborting

Generating stack trace...


Backtrace:
        ZN10StackTraceC1Ev [0x626c1855+0x25]
                 module: C:\PROGRA~1\BLUECF~1\ThirdParty-8\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
        ZN4Foam5error10printStackERNS_7OstreamE [0x6c30ae5a+0x23a]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZN4Foam5error5abortEv [0x6c0c68b1+0x211]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZNK4Foam15functionObjects11fieldValues17surfaceFieldValue11filterFieldIdEENS_3tmpINS_5FieldIT_EEEERKNS_14GeometricFieldIS6_NS_12fvPatchFieldENS_7volMeshEEEb [0x922fb68+0x1d8]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libfieldFunctionObjects.dll
        ZNK4Foam15functionObjects11fieldValues17surfaceFieldValue14getFieldValuesIdEENS_3tmpINS_5FieldIT_EEEERKNS_4wordEbb [0x9231d7f+0x36f]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libfieldFunctionObjects.dll
        ZN4Foam15functionObjects11fieldValues17surfaceFieldValue5writeEv [0x903d1e6+0x166]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libfieldFunctionObjects.dll
        ZN4Foam15functionObjects11timeControl5writeEv [0x6c18a32d+0x2d]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZN4Foam18functionObjectList5startEv [0x6c180acf+0x8f]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZNK4Foam4Time3runEv [0x6c18ccfd+0x19d]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        (No symbol) [0x472123]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\bin\multiphaseEulerFoam.exe
        (No symbol) [0x4013c1]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\bin\multiphaseEulerFoam.exe
        (No symbol) [0x4014f6]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-8\platforms\mingw_w64GccDPInt32Opt\bin\multiphaseEulerFoam.exe
        BaseThreadInitThunk [0x7ffbb2517034+0x14]
                 module: C:\Windows\System32\KERNEL32.DLL
        RtlUserThreadStart [0x7ffbb32e2651+0x21]
                 module: C:\Windows\SYSTEM32\ntdll.dll
Your assistance will really help me a lot.

Regards
Akshay

HTML Code:
https://www.cfd-online.com/Forums/openfoam-post-processing/242807-how-extract-alpha-cell-data-area-within-domain.html#post828080
enthusiast is offline   Reply With Quote

Reply

Tags
post processing, surfacefieldvalue, toposetdict, twophaseeulerfoam


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
post processing for CEL expressions Niru CFX 0 May 10, 2013 14:13
Automated post processing using CFD Post shreyasr ANSYS 0 January 28, 2013 07:21
CFD post processing techniques & streamlining klk Main CFD Forum 0 October 19, 2010 08:37
fluent for post processing James FLUENT 0 April 21, 2006 05:43
post processing in CFD MANISH BHARGAVA Main CFD Forum 0 October 17, 1998 21:51


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