CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Problem with sample and fieldAverage (https://www.cfd-online.com/Forums/openfoam/119528-problem-sample-fieldaverage.html)

Horus June 19, 2013 06:08

Problem with sample and fieldAverage
 
Hello,

Sorry the wrong subject, the problem is with forceCoeffs and fieldAverage, but I can't edit topic.

I use fieldAverage, reconstructPar the case and now I want to calculate forceCoeffs using the averaged values, but:

OpenFOAM 2.1x but I can switch to OF 2.2 if this is the problem.
Code:

Time = 8000
    Reading phi
    Reading U
    Reading p
Selecting incompressible transport model Newtonian
Selecting RAS turbulence model kOmegaSST
kOmegaSSTCoeffs
{
[...]
}

--> FOAM Warning :
    From function void forces::read(const dictionary&)
    in file forces/forces.C at line 309
    Could not find UMean, pMean in database.
    De-activating forces.
--> FOAM Warning :
    From function void forces::read(const dictionary&)
    in file forces/forces.C at line 309
    Could not find UMean, pMean in database.
    De-activating forces.
--> FOAM Warning :
--> FOAM FATAL IO ERROR:
timeStepMean is not in enumeration:
2
(
outputTime
timeStep
)

file: /scratch/flindner/Car.Scoop6/system/controlDict::functions::coeffsRearWheelsAveraged::outputControl at line 137.

    From function NamedEnum<Enum, nEnum>::read(Istream&) const
    in file lnInclude/NamedEnum.C at line 72.

Well, but
Code:

$ ls 8000/
k.gz  nut.gz  omega.gz  p.gz  phi.gz  pMean.gz  U.gz  UMean.gz  uniform

I have also tried to comment out the fieldAverage function object from the controlDict.

What can the problem be here?

Thanks,
Florian

Horus June 19, 2013 08:25

A related problem I ran into is that I try to look up pMean from a piece of custom code:

Code:

    request for volScalarField pMean from objectRegistry region0 failed
    available objects of type volScalarField are

So it seems that somehow pMean und UMean are not registered to the database...

Any idea someone?


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