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

Using forceCoeffs with multiphaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 9, 2022, 10:38
Default Using forceCoeffs with multiphaseEulerFoam
  #1
New Member
 
Lennart
Join Date: May 2022
Posts: 15
Rep Power: 4
levoCFD is on a distinguished road
Hi everyone,

I am working on a multiphase simulation with multiphaseEulerFoam and I would like to use OpenFOAM's post-processing function forceCoeffs.
I am calling it in the controlDict like:

Code:
forceCoeffs
    {
        type forceCoeffs;
        functionObjectLibs ("libforces.so");
        patches (walls);
        rhoInf 1.225;
        CofR (0.25 0 0);
        liftDir (0 1 0);
        dragDir (1 0 0);
        pitchAxis (0 0 1);
        magUInf 10.0;
        lRef 1;
         Aref 0.01;


         rho rhoInf;
        U U.gas;
     }
I am getting the following error message:
Code:
--> FOAM FATAL ERROR: 
No valid model for viscous stress calculation
I checked the source code to find out where the error is generated (l. 277 in functionObjects/forces/forces/forces.C). To avoid the error I have tried adding a transportProperties file with the following content:

Code:
transportModel  Newtonian;
rho             [1 -3 0 0 0 0 0] 1;
nu              [0 2 -1 0 0 0 0] 1e-05;
However, this did not solve the issue. Has anyone successfully used forceCoeffs in combination with multiphaseEulerFoam or could give me a hint on how to make them work together?
levoCFD is offline   Reply With Quote

 


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
Unknown function type forces and forceCoeffs richard.chung.jones OpenFOAM Post-Processing 2 June 21, 2022 08:53
Difference between forceCoeffs function and Paraview force calculation alexey_sw OpenFOAM Post-Processing 2 June 9, 2021 04:05
Adding forcecoeffs file to the controldict is causing pimpleDyMfoam to crash. pruthvi1991 OpenFOAM Running, Solving & CFD 13 April 13, 2015 01:46
RNG diverged during the analysis the flow over a multi element airfoil, why? s.m OpenFOAM Running, Solving & CFD 0 August 5, 2013 08:39
Problem in forceCoeffs file srini_esi OpenFOAM 0 October 19, 2012 06:34


All times are GMT -4. The time now is 08:21.