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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2022, 11:38
Default Using forceCoeffs with multiphaseEulerFoam
  #1
New Member
 
Lennart
Join Date: May 2022
Posts: 13
Rep Power: 2
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

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


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