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

of4 Can't pimpleFoam -postProcess -func forcesCoeffsIncompressible

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 5 Post By Danubi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2017, 13:36
Default of4 Can't pimpleFoam -postProcess -func forcesCoeffsIncompressible
  #1
New Member
 
Dan
Join Date: Nov 2013
Posts: 23
Rep Power: 12
Danubi is on a distinguished road
Hi all,

I am writing because I have tried everything and the moment to ask for help has arrived.

I am trying to obtain Cd and Cl drag and lift coefficients of an already run simulation using the wonderful capability of postProcessing.

when I use the following:
Code:
pimpleFoam -postProcess -func forceCoeffsIncompressible
I obtain:
Code:
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

forces forceCoeffsIncompressible:
--> FOAM Warning : 
    From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 794
    Cannot find any patch or group names matching patch1
--> FOAM Warning : 
    From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 794
    Cannot find any patch or group names matching patch2
    Not including porosity effects
forceCoeffs forceCoeffsIncompressible:
--> FOAM Warning : 
    From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 794
    Cannot find any patch or group names matching patch1
--> FOAM Warning : 
    From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 794
    Cannot find any patch or group names matching patch2
    Not including porosity effects
Time = 0
Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
No MRF models present
When I don't have any 'patch1' nor 'patch2' ...
I have tried to run it with the function included in the controlDict and it worked fine but the problem is that the simulation took weeks to get here so I can't rerun it again.

Please if any can take a look to the case I attach in the message the case folder. It only needs to:

Code:
bash ./AllMesh
pimpleFoam
This is OF4. Please run some timesteps and when you already have several time folders try to get the forceCoeffs from the written folders with postProcess.


Thanks a lot in advance
Attached Files
File Type: zip CFD.zip (23.5 KB, 14 views)
Danubi is offline   Reply With Quote

Old   June 27, 2017, 11:26
Default
  #2
New Member
 
PLD
Join Date: Jun 2017
Location: Braunschweig, Germany
Posts: 13
Rep Power: 8
parthiv1991 is on a distinguished road
I am having the same problem. I am trying to find out the force coefficients for flow around a cylinder using OpenFoam 4.1, and the post-processing is not working somehow.
parthiv1991 is offline   Reply With Quote

Old   July 16, 2017, 07:12
Default
  #3
New Member
 
Dan
Join Date: Nov 2013
Posts: 23
Rep Power: 12
Danubi is on a distinguished road
I can't believe it is so weird that nobody is encountering the same problem. I am trying now to postProcess some probes and I am having similar problems. It is like it never reaches to read dictionaries specifying details of the call.

It looks to me that this -postProcess CLI approach is useful when everything can be specified on the command line, like patchAverage, where there is only a need for specifying U and the patch name. Otherwise, when it needs to read a dictionary, it fails... well... at least I can't do it.

Regards
Danubi is offline   Reply With Quote

Old   July 27, 2017, 12:47
Default
  #4
New Member
 
Dan
Join Date: Nov 2013
Posts: 23
Rep Power: 12
Danubi is on a distinguished road
Hello parthiv1991 and whoever stucks in the same stone,

He it goes:

This post explains some of the needed info:
bullmut threat

Also the user guide:
usedGuide

But! Important:

Go to $FOAM_ETC, then to etc/caseDicts/postProcessing/forces
Later copy whatever file with the title of the function you need (the non *.cfg file) to your system directory.
Do no add NOTHING to the controlDict 'functions' library.
And later execute the CLI command:

Code:
pimpleFoam -postProcess -func 'forceCoeffsIncompressible' -latestTime
Important: the function that has been specified between ' ' has to have the same name as the file that had been copied to system/ folder....

Thanks to the people in the other thread!
Danubi is offline   Reply With Quote

Reply

Tags
forces and force coeff., function, postprocess


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
postProcess Utility: icoFoam -noFunctionObjects Why?How? TeresaT OpenFOAM Post-Processing 8 July 26, 2023 02:41
postProcess -func sampleDict does not create output folder tmr2044 OpenFOAM Post-Processing 7 April 27, 2021 14:33
simpleFoam -postProcess -func R kaaja OpenFOAM Post-Processing 4 March 29, 2018 17:48
postProcess functionality in openFOAM 4 bullmut OpenFOAM Post-Processing 23 July 21, 2017 09:11
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08:35


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