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 Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By hulli

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2018, 01: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: 10
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, 11:38
Default
  #2
Member
 
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 12
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   June 21, 2022, 09:53
Default
  #3
Member
 
Wolfram Schneider
Join Date: Jan 2018
Location: Germany
Posts: 57
Rep Power: 8
Wolfram is on a distinguished road
I assume your approach does not allow to track the force coefficients "on the fly" while running the solver?

I am facing the same issue atm ... "Unknown function type forceCoeffs" in foam extend 4.0

In foam extend 4.1 the same setup does not throw any error.
Wolfram is offline   Reply With Quote

Reply


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 22:34
Flow past Rectangular cylinder Pervispasco OpenFOAM Running, Solving & CFD 13 February 14, 2017 04:35
Monitoring Courant Number Mahe88 OpenFOAM Running, Solving & CFD 3 November 17, 2016 15:12
[OpenFOAM.org] OpenFoam on Power8 Little Endian Error: Unknown function type forceCoeffs P8le OpenFOAM Installation 1 November 28, 2014 09:00
Incorrect Drag and Drag Coefficient for flow over a cylinder ozzythewise Main CFD Forum 8 June 13, 2012 07:24


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