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

Unknown function type forces and forceCoeffs

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2018, 00:13
Default Unknown function type forces and forceCoeffs
  #1
New Member
 
CHUNG Ching Chun
Join Date: Aug 2016
Location: Tin Shui Wai, New Territories, Hong Kong
Posts: 11
Rep Power: 6
richard.chung.jones is on a distinguished road
Dear Foamers,

For OF4.1 and 4.x, I cannot run the "forces" and "forceCoeffs" anymore. I always get this following error.
Code:
--> FOAM Warning : 
    From function bool Foam::functionObjectList::read()
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 671
    Caught FatalError 
--> FOAM FATAL ERROR: 
Unknown function type forces

Valid functions are : 

15
(
abort
coded
patchProbes
probes
psiReactionThermoMoleFractions
removeRegisteredObject
residuals
rhoReactionThermoMoleFractions
setTimeStep
sets
surfaces
systemCall
timeActivatedFileUpdate
writeDictionary
writeObjects
)



    From function static Foam::autoPtr<Foam::functionObject> Foam::functionObject::New(const Foam::word&, const Foam::Time&, const Foam::dictionary&)
    in file db/functionObjects/functionObject/functionObject.C at line 100.

--> FOAM Warning : 
    From function bool Foam::functionObjectList::read()
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 671
    Caught FatalError 
--> FOAM FATAL ERROR: 
Unknown function type forceCoeffs

Valid functions are : 

15
(
abort
coded
patchProbes
probes
psiReactionThermoMoleFractions
removeRegisteredObject
residuals
rhoReactionThermoMoleFractions
setTimeStep
sets
surfaces
systemCall
timeActivatedFileUpdate
writeDictionary
writeObjects
)



    From function static Foam::autoPtr<Foam::functionObject> Foam::functionObject::New(const Foam::word&, const Foam::Time&, const Foam::dictionary&)
    in file db/functionObjects/functionObject/functionObject.C at line 100.
I don't why forces disappeared from the list and I also don't know where is the functionObject.C too.

Here is the settings code for reference.

Code:
functions
{
        forces
        {
                type                    forces;
                lib                             ("libforces.so");
                writeControl    runTime;
                writeInterval   0.5;
                rho             rhoInf; // Incompressible solver
                rhoInf                  1.184;

                patches         (airfoil);
                CofR            (0.25 0 0);
                pitchAxis       (0 0 1);

                log             on;
        }

        forceCoeffs
        {
                type                    forceCoeffs;
                lib                             ("libforces.so");
                writeControl    runTime;
                writeInterval   0.5;
                rho             rhoInf; // Incompressible solver
                rhoInf                  1.184;

                magUInf                 0.01568;
                lRef                    1;
                ARef                    1;

                patches         (airfoil);
                CofR            (0.25 0 0);
                pitchAxis       (0 0 1);

                liftDir                 (0 1 0);
                dragDir                 (1 0 0);
                log             on;
        }
}
richard.chung.jones is offline   Reply With Quote

Old   January 19, 2018, 10:38
Default
  #2
Member
 
hulli graemer
Join Date: Oct 2014
Posts: 40
Rep Power: 8
hulli is on a distinguished road
it took me also al while but

this worked for me: Just hit> yoursolvername -postProcess < into the comand line and it ran through

here ist my compute forcescoefs as an examle (copy pase in the controlDict) and run the yoursolvername -postProcess -newTimes


forces_coef
{
type forceCoeffs;
libs ( "libforces.so" );
writeControl outputTime;
writeInterval 1;
patches ( "mystl" );
rho rhoInf; // Indicates incompressible
log true;
rhoInf 1000; // Redundant for incompressible
liftDir (0 0 1);
dragDir (1 0 0);
CofR (1.0 0.3 0.06); // Axle midpoint on ground
pitchAxis (0 1 0);
magUInf 0.9;
lRef 0.1; // Wheelbase length
Aref 0.2; // Estimated
// Reference pressure [Pa]
pRef 101325;
}

I hope that helps
hulli is offline   Reply With Quote

Old   August 20, 2020, 14:37
Default
  #3
New Member
 
I.A.Carvalho
Join Date: Jun 2019
Posts: 8
Rep Power: 3
amorim.icaro is on a distinguished road
I know this is a late response, but still, thank you very much for contributing. I looked around in many threads and only here found this answer.
amorim.icaro 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
What is this FOAM warning: Unknown matrix type combination means? chengdi OpenFOAM Running, Solving & CFD 1 May 13, 2017 21:34
Flow past Rectangular cylinder Pervispasco OpenFOAM Running, Solving & CFD 13 February 14, 2017 03:35
Monitoring Courant Number Mahe88 OpenFOAM Running, Solving & CFD 3 November 17, 2016 14:12
[OpenFOAM.org] OpenFoam on Power8 Little Endian Error: Unknown function type forceCoeffs P8le OpenFOAM Installation 1 November 28, 2014 08:00
Incorrect Drag and Drag Coefficient for flow over a cylinder ozzythewise Main CFD Forum 8 June 13, 2012 06:24


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