View Issue Details

IDProjectCategoryView StatusLast Update
0003980OpenFOAMBugpublic2023-05-16 07:47
Reporterweitao Assigned Tohenry  
Status closedResolutionno change required 
PlatformubuntuOS Version20.04.5 
Summary0003980: An error occurred while using functionObjects about forceCoeffs

I use the icoFoam solver and compute the flow.
When I tried to use the postProcess command for post-processing after completing the calculation using icoFoam, I encountered the following error:

No valid model for viscous stress calculation

I would like to use functionObject for post-processing on resistance coefficient.This is the command code I used at the time:

postProcess -fields "(p U)" -dict system/functionObject1 -noZero

This is my functionObejct file:

    type forceCoeffs;
    libs ("");
    enabled true;
    patches (C-X);
    pName p;
    Uname U;
    rho rhoInf;
    rhoInf 1e+3;
    log true;
    CofR (0 0 0);
    pitchAxis (0 0 1);
    magUInf 0.196;
    lRef 1;
    Aref 8e-3;
    writeControl timeStep;
    writeInterval 25;
    liftDir (0 1 0);
    dragDir (1 0 0);

Here is a part of the log file:

forces forceCoeffs_1:
    Not including porosity effects
forceCoeffs forceCoeffs_1:
    Not including porosity effects
Time = 0.005

Reading fields:
    volScalarFields: p
    volVectorFields: U

Executing functionObjects

No valid model for viscous stress calculation

    From function Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh> > Foam::functionObjects::forces::devTau() const
    in file forces/forces.C at line 277.

FOAM exiting

Additional InformationProduct Version is 8
TagsNo tags attached.



2023-05-16 07:46

manager   ~0013016

icoFoam is a simple teaching solver for which full pre/post-processing capability is not needed or provided. Use pimpleFoam instead.


2023-05-16 07:47

manager   ~0013017

User support request

Issue History

Date Modified Username Field Change
2023-05-16 03:25 weitao New Issue
2023-05-16 07:46 henry Note Added: 0013016
2023-05-16 07:47 henry Severity major => feature
2023-05-16 07:47 henry Assigned To => henry
2023-05-16 07:47 henry Status new => closed
2023-05-16 07:47 henry Resolution open => no change required
2023-05-16 07:47 henry Note Added: 0013017