|
[Sponsors] |
Unable to calculate lift and drag coefficients and forces using icoFaom |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Sydney Mserembo
Join Date: Dec 2017
Posts: 1
Rep Power: 0 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Alexandre Cardoso
Join Date: Sep 2020
Posts: 4
Rep Power: 5 ![]() |
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; |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Oct 2017
Posts: 124
Rep Power: 8 ![]() |
Which error do you get, if you use the following line?
Code:
nu [0 2 -1 0 0 0 0] 0.1; |
|
![]() |
![]() |
![]() |
Tags |
forces and force coeff., openfoam, transportproperties |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lattice Boltzmann, LIFT and DRAG forces | Puigar | Main CFD Forum | 2 | May 30, 2024 06:58 |
Calculate Lift and Drag Coefficients CL and CD | sven | OpenFOAM | 12 | May 20, 2020 22:54 |
drag and lift coefficients in axisymmetric and 3D simulations! | CFD-Lover | OpenFOAM Running, Solving & CFD | 0 | July 1, 2017 16:33 |
lift and drag coefficients around a ground vehicle | Pedro | CFX | 3 | September 5, 2012 18:31 |
Trying to calculate lift and drag forces | vkrastev | OpenFOAM | 0 | January 27, 2010 11:33 |