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

boundaryFoam postprocessing in the latest openFoam version

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By KTG
  • 1 Post By KTG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2019, 16:17
Default boundaryFoam postprocessing in the latest openFoam version
  #1
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
Hi everyone,


The update to the latest version of openFoam seems to have broken the postprocessing I was using for boundaryFoam. Its based on the surface mounted cube casefile, which no longer will run:


Code:
functions
{
    turbulenceFields
    {
        type            turbulenceFields;
        libs            ("libfieldFunctionObjects.so");
        writeControl    writeTime;
        fields          (R nuTilda k epsilon omega L);
    }

    surfaces
    {
        type            surfaces;
        surfaceFormat   boundaryData;
        writeControl    writeTime;
        interpolationScheme cell;
        fields
        (
            U
            turbulenceProperties:R
            turbulenceProperties:nuTilda
            turbulenceProperties:L
        );
        surfaces
        (
            inlet
            {
                type            patch;
                patches         (inlet);
                interpolate     false;
            }
        );
    }
}


This code gives me: --> FOAM FATAL ERROR: Unknown write type "boundaryData"



If I change the type to something valid, I get:


Code:
--> FOAM FATAL ERROR: 
attempted assignment to self

    From function void Foam::DimensionedField<Type, GeoMesh>::operator=(const Foam::DimensionedField<Type, GeoMesh>&) [with Type = double; GeoMesh = Foam::volMesh]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/DimensionedField.C at line 520.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::DimensionedField<double, Foam::volMesh>::operator=(Foam::DimensionedField<double, Foam::volMesh> const&) in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/boundaryFoam"
#3  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::operator==(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/boundaryFoam"
#4  void Foam::functionObjects::turbulenceFields::processField<double>(Foam::word const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:?
#5  Foam::functionObjects::turbulenceFields::execute() at ??:?
#6  Foam::functionObjects::timeControl::execute() at ??:?
#7  Foam::functionObjectList::execute() at ??:?
#8  Foam::Time::run() const at ??:?
#9  Foam::Time::loop() at ??:?
#10  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/boundaryFoam"
#11  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/boundaryFoam"
Aborted (core dumped)

Does anyone know what happened, and how this is supposed to work now? I don't see any tutorials in the current release using boundaryFoam that actually map the output or use function objects.


Thanks
MaySea likes this.
KTG is offline   Reply With Quote

Old   November 4, 2020, 13:07
Default
  #2
Member
 
Join Date: Nov 2018
Posts: 39
Rep Power: 7
MaySea is on a distinguished road
Hi Abe,

Did you figure it out? I'm having the same problem.
MaySea is offline   Reply With Quote

Old   November 4, 2020, 14:48
Default
  #3
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
I did not, but I may have been using mismatched versions of OF and the tutorials. What version are you using? I am still on 1906 and the surface mounted cube tutorial runs without error, so I am guessing there was a change in syntax somewhere along the way.
KTG is offline   Reply With Quote

Old   November 4, 2020, 14:52
Default
  #4
Member
 
Join Date: Nov 2018
Posts: 39
Rep Power: 7
MaySea is on a distinguished road
I'm also using 1906. Wanted to use this code to sample data at outlet and got the same error ( FOAM FATAL ERROR: Unknown write type "boundaryData") :


Code:
sampledPlanes
{
type surfaces;
functionObjectLibs ("libsampling.so");
outputControl adjustableRunTime;
outputInterval 100;
enabled true;

surfaceFormat boundaryData;
fields (omega k);

interpolationScheme cellPointFace;

surfaces
(
center
{
type patch;
patches ("west");
interpolate false;
}
);
}
MaySea is offline   Reply With Quote

Old   November 4, 2020, 17:01
Default
  #5
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
Ahh, that is a separate issue. "boundaryData" is not a valid surface format. There are a number of ways to achieve what you are trying to do. Try the method of putting "banana" in place of "boundaryData", and the solver output will crash and give you a list of valid entries.
MaySea likes this.
KTG 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
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
Foam::error::printStack(Foam::Ostream&) at ??:? mdhfiz OpenFOAM Running, Solving & CFD 1 September 19, 2019 09:46
Sudden contration MrAndersDk OpenFOAM Running, Solving & CFD 30 October 11, 2018 03:23
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36


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