|
[Sponsors] |
January 19, 2018, 01:13 |
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 |
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. 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; } } |
|
January 19, 2018, 11:38 |
|
#2 |
Member
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 12 |
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 |
|
June 21, 2022, 09:53 |
|
#3 |
Member
Wolfram Schneider
Join Date: Jan 2018
Location: Germany
Posts: 57
Rep Power: 8 |
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. |
|
|
|
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 |