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

Forces in OF15

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   September 23, 2010, 06:20
Default
  #161
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
Problem solved: Forces in V1.6
paka is offline   Reply With Quote

Old   October 3, 2010, 18:15
Default keyword nu is undefined in dictionary...
  #162
New Member
 
inkarbekov medet
Join Date: Oct 2010
Posts: 1
Rep Power: 0
meddd is on a distinguished road
hi!!!!!
i have problem, after icoFoam:
--> FOAM FATAL IO ERROR:
keyword nu is undefined in dictionary "/home/medet/OpenFOAM/medet-1.7.1/run/tutorials/multiphase/interFoam/laminar/damBreak/constant/transportProperties"

file: /home/medet/OpenFOAM/medet-1.7.1/run/tutorials/multiphase/interFoam/laminar/damBreak/constant/transportProperties from line 20 to line 62.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting
//////////////////////////////////////////////////////////////////////////////////////
transportProperties :
phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0;
}

BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 99.6;
n n [ 0 0 0 0 0 0 0 ] 0.1003;
}
}

phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
rho rho [ 1 -3 0 0 0 0 0 ] 1;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0;
}

BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 99.6;
n n [ 0 0 0 0 0 0 0 ] 0.1003;
}
}

sigma sigma [ 1 0 -1 0 0 0 0 ] 0.07;
////////////////////////////////////////////////////////////////////////////////////////


Please help!!!
meddd is offline   Reply With Quote

Old   January 14, 2011, 18:10
Default drag coeff
  #163
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 6
desert_1250 is an unknown quantity at this point
Send a message via Yahoo to desert_1250
Hi oll of foamers
I hope that you are well.
I have one question:
I want to calculate dragCoefficient over a cylinder with 0.025 diameter with viscoelasticFluidFoam solver. ( I use Kubuntu, OF 1-5 decv) . I add the code below in controlDict file
application viscoelasticFluidFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 300;
deltaT 1e-5;
writeControl adjustableRunTime;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
graphFormat raw;
runTimeModifiable yes;
adjustTimeStep on;
maxCo 0.8;
maxDeltaT 0.001;
functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
outputControl runTime;
outputInterval 1;
patches (cylinder); // change to your patch name
PName p;
Uname U;
rhoInf 803.87097; //Reference density for fluid
CofR (0 0 0); //Origin for moment calculations
}
forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
outputControl runTime;
outputInterval 1;
patches (cylinder); //change to your patch name
PName p;
Uname U;
log true;
rhoInf 803.87097;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 0);
magUInf 0.036;
lRef 0.025;
Aref 0.025;
}
);
// ************************************************** *********************** //
, but when run it,after one step, this error appear :
Courant Number mean: 3.24445e-07 max: 5.10534e-06 velocity magnitude: 0.000421808
deltaT = 1.43997e-05
No valid model for viscous stress calculation.
From function forces::devRhoReff()
in file forces/forces.C at line 306.
FOAM exiting
*** glibc detected *** viscoelasticFluidFoam: double free or corruption (fasttop): 0x0902a378 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x52c591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x52dde8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x530ecd]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x7b3741]
/usr/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d )[0x78fc2d]
/usr/lib/libstdc++.so.6(_ZNSsD2Ev+0x4c)[0x79163c]
/usr/lib/OpenFOAM-1.5-dev/lib/libfiniteVolume.so(_ZN4Foam4wordD1Ev+0x1d)[0xcf2efd]
/lib/tls/i686/cmov/libc.so.6(+0x2f1bf)[0x4f01bf]
/lib/tls/i686/cmov/libc.so.6(+0x2f22f)[0x4f022f]
/usr/lib/OpenFOAM-1.5-dev/lib/libOpenFOAM.so(_ZN4Foam5error4exitEi+0x1f9)[0x3f5d2f9]
/usr/lib/OpenFOAM-1.5-dev/lib/libforces.so(_ZNK4Foam6forces10devRhoReffEv+0xf54)[0x65315f4]
/usr/lib/OpenFOAM-1.5-dev/lib/libforces.so(_ZNK4Foam6forces10calcForcesEv+0x32)[0x652c852]
.
.
.
======= Memory map: ========
00110000-0024a000 r-xp 00000000 00:10 16478 /usr/lib/OpenFOAM-1.5-dev/lib/libviscoelasticTransportModels.so
0024a000-0024b000 ---p 0013a000 00:10 16478 /usr/lib/OpenFOAM-1.5-dev/lib/libviscoelasticTransportModels.so
0024b000-0024d000 r--p 0013a000 00:10 16478 /usr/lib/OpenFOAM-1.5-dev/lib/libviscoelasticTransportModels.so
0024d000-0024e000 rw-p 0013c000 00:10 16478 /usr/lib/OpenFOAM-1.5-dev/lib/libviscoelasticTransportModels.so
0024e000-00410000 r-xp 00000000 00:10 16479 /usr/lib/OpenFOAM-1.5-dev/lib/libmeshTools.so
00410000-00413000 r--p 001c1000 00:10 16479 /usr/lib/OpenFOAM-1.5-dev/lib/libmeshTools.so
00413000-00415000 rw-p 001c4000 00:10 16479 /usr/lib/OpenFOAM-1.5-dev/lib/libmeshTools.so
00415000-00416000 rw-p 00000000 00:00 0
.
.
.
1) can u guide me What is the problem?
2) did I enter Aref number truly? how Lref ? ( my diameter cylinder is 0.025 & 2D)
3) If needed to complile forceCoeffs, can you tell me how complie it successfully?
Thank a lot, Rasoul
desert_1250 is offline   Reply With Quote

Old   January 14, 2011, 18:41
Default
  #164
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
I'm not 100% sure, but I think OF1.5 did not allow you to calculate forces through this library. My advise, update to OF1.7.
K
paka is offline   Reply With Quote

Old   January 15, 2011, 11:39
Default
  #165
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 6
desert_1250 is an unknown quantity at this point
Send a message via Yahoo to desert_1250
thanks paka for your reply,
i try to do my case with OF 1.7 and tell what happen

do every one know a bout this error that appear in the error massege?

"
No valid model for viscous stress calculation "




Rasoul
best regards
desert_1250 is offline   Reply With Quote

Old   January 15, 2011, 15:41
Default
  #166
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
Forget about this error. Get the new version and start again.

Focusing on this error is like driving a car from 2010, but trying to fix it based on what people drove in 1936.

What it seems for me, I would advise a bit of reading about programming structures and C++.

Best!
paka is offline   Reply With Quote

Old   September 17, 2011, 03:24
Default
  #167
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 6
desert_1250 is an unknown quantity at this point
Send a message via Yahoo to desert_1250
dear foamers, i wanna to calculate the forces formulated that was present in the attachment over a cylinder. my solver is viscoelasticFluidFoam and the forces calculation be deferent with newtonians' one, so when i wanna use forces function in OpenFOAM, this error apears :
"No valid model for viscous stress calculation "

can every one help me how do it? tnx



Attached Images
File Type: jpg drag force.jpg (14.6 KB, 52 views)
desert_1250 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fan type BC in OF15 hsieh OpenFOAM Running, Solving & CFD 30 November 10, 2011 08:33
Bug in patchIntegrateC OF15 anger OpenFOAM Bugs 8 May 29, 2009 04:36
CoupledFvScalarMatrix in OF15 fisher OpenFOAM Running, Solving & CFD 8 November 29, 2008 08:36
OpenFOAMdev migration to OF15 fisher OpenFOAM Installation 1 November 25, 2008 15:39
Bug or a feature of OF15 rafal OpenFOAM Bugs 5 July 25, 2008 05:25


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