CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Unable to calculate lift and drag coefficients and forces using icoFaom

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2017, 12:51
Default Unable to calculate lift and drag coefficients and forces using icoFaom
  #1
New Member
 
Sydney Mserembo
Join Date: Dec 2017
Posts: 1
Rep Power: 0
EssKay is on a distinguished road
Hi,

When trying to compute the forces and coefficients around a 2d aerofoil section, i get this error message...

--> FOAM FATAL IO ERROR:
expected a [ in dimensionSet
in stream ITstream : C:/PROGRA~1/BLUECF~1/ofuser-of5/run/aero3/constant/transportProperties.nu, line 18, IOstream: Version 2.0, format ASCII, line 18, OPENED, GOOD


file: C:/PROGRA~1/BLUECF~1/ofuser-of5/run/aero3/constant/transportProperties.nu at line 18.

From function Foam::Istream& Foam::dimensionSet::read(Foam::Istream&, Foam::scalar&, const Foam::HashTable<Foam::dimensioned<double> >&)
in file dimensionSet/dimensionSetIO.C at line 419.

FOAM exiting

I have already tried editing nu in transportproperties into different formats but nothing works.

I have tried both

nu l0 2 -1 0 0 0 0] 1e-05;

and

nu nu[0 2 -1 0 0 0 0]1e-05
EssKay is offline   Reply With Quote

Old   December 10, 2017, 14:32
Default
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 13
Taataa is on a distinguished road
it seems like a typo, it should be:
nu [0 2 -1 0 0 0 0] 1e-05; // change | to [
or
nu nu[0 2 -1 0 0 0 0]1e-05; // add semicolon

if you're using OF 5 you don't have to add the dimension so nu 1e-5; is enough.
Taataa is offline   Reply With Quote

Old   September 24, 2020, 10:51
Default
  #3
New Member
 
Alexandre Cardoso
Join Date: Sep 2020
Posts: 4
Rep Power: 6
a_cardoso is on a distinguished road
Hi,
Same problem, I've tried the solutions above and nothing. The model is running but when I try to run with functions it stops working with this error:

$ icoFoam >log


--> FOAM FATAL IO ERROR:
expected a [ in dimensionSet
in stream ITstream : C:/PROGRA~1/BLUECF~1/ofuser-of5/run/cilindro61/constant/transportProperties.nu, line 16, IOstream: Version 2.0, format ASCII, line 16, OPENED, EOF


file: C:/PROGRA~1/BLUECF~1/ofuser-of5/run/cilindro61/constant/transportProperties.nu at line 16.

From function Foam::Istream& Foam::dimensionSet::read(Foam::Istream&, Foam::scalar&, const Foam::HashTable<Foam::dimensioned<double> >&)
in file dimensionSet/dimensionSetIO.C at line 419.

FOAM exiting

------------------

function in controlDict

functions
{
forces
{
type forceCoeffs;
libs ("libforces.so");
writeControl timeStep;
writeInterval 1;

patches
(
cilindro
);

// Field names
p p;
U U;
rho rho;

writeFields yes;

log true;
rho rhoInf;
rhoInf 1;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 1);
magUInf 19.5;
lRef 1;
Aref 1;
}
}

-----------
transportProperties

transportModel Newtonian;

//nu nu[0 2 -1 0 0 0 0] 0.1;
nu nu 1e-01;
a_cardoso is offline   Reply With Quote

Old   September 24, 2020, 16:58
Default
  #4
Senior Member
 
Join Date: Oct 2017
Posts: 128
Rep Power: 9
Krapf is on a distinguished road
Which error do you get, if you use the following line?
Code:
nu              [0 2 -1 0 0 0 0] 0.1;
Krapf is offline   Reply With Quote

Reply

Tags
forces and force coeff., openfoam, transportproperties


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
Lattice Boltzmann, LIFT and DRAG forces Puigar Main CFD Forum 2 May 30, 2024 07:58
Calculate Lift and Drag Coefficients CL and CD sven OpenFOAM 12 May 20, 2020 23:54
drag and lift coefficients in axisymmetric and 3D simulations! CFD-Lover OpenFOAM Running, Solving & CFD 0 July 1, 2017 17:33
lift and drag coefficients around a ground vehicle Pedro CFX 3 September 5, 2012 19:31
Trying to calculate lift and drag forces vkrastev OpenFOAM 0 January 27, 2010 12:33


All times are GMT -4. The time now is 18:28.