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/)
-   -   --> FOAM FATAL ERROR:request for volTensorField sigmap (https://www.cfd-online.com/Forums/openfoam-solving/211246-foam-fatal-error-request-voltensorfield-sigmap.html)

caoxuxiang November 13, 2018 23:55

--> FOAM FATAL ERROR:request for volTensorField sigmap
 
hello everyone

when i used pisoFoam to solve a problem about simulating 1/4 of underwater glider body with k-omega model, i encountered an error from openfoam. the full information is given:

Code:

Create time

Create mesh for time = 0


SIMPLE: no convergence criteria found. Calculations will run for 10000 steps.

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave
kOmegaSSTCoeffs
{
    alphaK1        0.85;
    alphaK2        1;
    alphaOmega1    0.5;
    alphaOmega2    0.856;
    gamma1          0.555556;
    gamma2          0.44;
    beta1          0.075;
    beta2          0.0828;
    betaStar        0.09;
    a1              0.31;
    b1              1;
    c1              10;
    F3              false;
}

No MRF models present

No finite volume options present


Starting time loop

forces forceCoeffs1:
    Not including porosity effects
forceCoeffs forceCoeffs1:
    Not including porosity effects
Time = 1

smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 0.0910522, No Iterations 22
smoothSolver:  Solving for Uy, Initial residual = 1, Final residual = 0.0919569, No Iterations 19
smoothSolver:  Solving for Uz, Initial residual = 1, Final residual = 0.093001, No Iterations 11
GAMG:  Solving for p, Initial residual = 1, Final residual = 0.00820068, No Iterations 35
time step continuity errors : sum local = 8.31086e-05, global = -2.6e-05, cumulative = -2.6e-05
smoothSolver:  Solving for omega, Initial residual = 0.0145231, Final residual = 0.0013093, No Iterations 5
smoothSolver:  Solving for k, Initial residual = 1, Final residual = 0.0768991, No Iterations 6
ExecutionTime = 62.16 s  ClockTime = 63 s



--> FOAM FATAL ERROR:

    request for volTensorField sigmap from objectRegistry region0 failed
    available objects of type volTensorField are
1(grad(U))

    From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<Foam::Tensor<double>, Foam::fvPatchField, Foam::volMesh>]
    in file /vol/home/caoxuxiang/OpenFOAM/OpenFOAM-4/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ~/OpenFOAM/OpenFOAM-4/src/OSspecific/POSIX/printStack.C:218
#1  Foam::error::abort() at ~/OpenFOAM/OpenFOAM-4/src/OpenFOAM/lnInclude/error.C:249
#2  Foam::Ostream& Foam::operator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) at ~/OpenFOAM/OpenFOAM-4/src/OpenFOAM/lnInclude/errorManip.H:85
#3  Foam::GeometricField<Foam::Tensor<double>, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<Foam::Tensor<double>, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const at ~/OpenFOAM/OpenFOAM-4/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:193
#4  Foam::functionObjects::forces::calcForcesMoment() at ~/OpenFOAM/OpenFOAM-4/src/functionObjects/forces/forces/forces.C:799
#5  Foam::functionObjects::forceCoeffs::write() at ~/OpenFOAM/OpenFOAM-4/src/functionObjects/forces/forceCoeffs/forceCoeffs.C:180
#6  Foam::functionObjects::timeControl::write() at ~/OpenFOAM/OpenFOAM-4/src/OpenFOAM/db/functionObjects/timeControl/timeControlFunctionObject.C:106
#7  Foam::functionObjectList::execute() at ~/OpenFOAM/OpenFOAM-4/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C:476
#8  Foam::Time::run() const at ~/OpenFOAM/OpenFOAM-4/src/OpenFOAM/db/Time/Time.C:880
#9  Foam::Time::loop() at ~/OpenFOAM/OpenFOAM-4/src/OpenFOAM/db/Time/Time.C:889
#10  Foam::simpleControl::loop() at ~/OpenFOAM/OpenFOAM-4/src/finiteVolume/cfdTools/general/solutionControl/simpleControl/simpleControl.C:154
#11  ? at ~/OpenFOAM/OpenFOAM-4/applications/solvers/incompressible/simpleFoam/simpleFoam.C:59
#12  __libc_start_main in "/lib64/libc.so.6"
#13  ? in "/vol/home/caoxuxiang/OpenFOAM/OpenFOAM-4/platforms/linux64GccDPInt32Debug/bin/simpleFoam"
Aborted (core dumped)

I have searched many topics from the forum, and there are almost no similar problems. I have nothing to do with it.

However, when I cancelled part of functions from controlDict, I did not encounter this problem.

the controlDict:

Code:

application    simpleFoam;


startFrom      latestTime;

startTime      1;

stopAt          endTime;

endTime        10000;

deltaT          1;

writeControl    timeStep;

writeInterval  200;

purgeWrite      0;

writeFormat    ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision  6;

runTimeModifiable no;

adjustTimeStep  no;



functions
{

    forceCoeffs1
    {
        type forceCoeffs;
        libs ("libforces.so");
       
        writeControl timeStep;
        writeInterval 1;
       
        patches (wall);
       
        rho rhoInf;
        rhoInf 1025;
        log yes;
        CoR (0 0 0);
        dragDir (1 0 0);
        liftDir (0 1 0);
        pitchAxis (0 0 1);
        magUInf 1.0;
        lRef 1.0;
        Aref 0.465;
        origin (0 0 0);
        coordinateRotation
        {
            type EulerRotation;
            degrees true;
            rotation (0 0 0);
        }
       
}

could anyone help me ?

thanks.

Xuxiang

caoxuxiang November 15, 2018 20:32

hi guys:

i simulated my case with openfoam-2.4.0, and it had no wrong information. it shill worked well even i added the forceCoeffs function in controlDict file.

why happened this between different version of openfoam?:confused:

random_ran November 16, 2018 00:12

The force function do the bad thing, maybe try the following lines to your control file:

```
libs ("libOpenFOAM.so" "libfieldFunctionObjects.so");
```


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