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

Solving forces & coeffs

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kera

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2012, 10:37
Default Solving forces & coeffs
  #1
New Member
 
Sergey Zinkevich
Join Date: May 2011
Location: Russia, Moscow
Posts: 17
Rep Power: 15
Astarta is on a distinguished road
Hello every1!
I`ve troubles with solving forces an coeffs
I use SRFSimpleFoam :

"--> FOAM Warning :
From function void forces::read(const dictionary&)
in file forces/forces.C at line 309
Could not find Uabs, p in database. "

conrtolDict:
" {
type forces
functionObjectLibs ("libforces.so);
patches (MODEL);
pName p;
UName Uabs;
log true;
rhoName rhoInf;
rhoInf 1.225;
CofR (0 0 0);
outputControl timeStep;
outputInterval 1;
}"

Any help will be appreciated
Best regards,
Astarta
Astarta is offline   Reply With Quote

Old   May 3, 2012, 03:58
Default
  #2
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19
colinB is on a distinguished road
Hi,

just a guess from the information you provided:

Code:
patches (MODEL);
pName p;
UName Uabs;
do these three entities contain the name of the patch
you want to calculate the forces on (patch) and the name
of the file specifying the pressure values (pName) and
velocity values (UName)
and are these files located in a folder named 0,
for the problem is:

Code:
Could not find Uabs, p in database
and the question is y? usually this is a naming or storing issue.

I hope I could contribute
regards
colinB is offline   Reply With Quote

Old   May 4, 2012, 06:08
Default
  #3
New Member
 
Sergey Zinkevich
Join Date: May 2011
Location: Russia, Moscow
Posts: 17
Rep Power: 15
Astarta is on a distinguished road
Thanks! It helped, noweverything`s ok!
Astarta is offline   Reply With Quote

Old   March 9, 2017, 08:45
Default
  #4
New Member
 
Niranjan Prabhu
Join Date: Sep 2016
Location: chennai
Posts: 8
Rep Power: 10
niran is on a distinguished road
--> FOAM FATAL IO ERROR:
keyword origin is undefined in dictionary "/home/user/OpenFOAM/user-2.4.0/run/work/3_waveflume/system/controlDict.functions.forces"

file: /home/user/OpenFOAM/user-2.4.0/run/work/3_waveflume/system/controlDict.functions.forces from line 10 to line 24.

forces
{
type forces;

functionObjectLibs ( "libforces.so" );

outputControl timeStep;
timeInterval 1;

log yes;

patches ( cylinder );
pName pd;
UName U;
rhoName rhoInf; // Indicates incompressible
log true;
rhoInf 1000;
}

any help please
niran is offline   Reply With Quote

Old   March 9, 2017, 09:35
Default
  #5
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12
kera is on a distinguished road
Quote:
Originally Posted by niran View Post
--> FOAM FATAL IO ERROR:
keyword origin is undefined in dictionary "/home/user/OpenFOAM/user-2.4.0/run/work/3_waveflume/system/controlDict.functions.forces"

file: /home/user/OpenFOAM/user-2.4.0/run/work/3_waveflume/system/controlDict.functions.forces from line 10 to line 24.

forces
{
type forces;

functionObjectLibs ( "libforces.so" );

outputControl timeStep;
timeInterval 1;

log yes;

patches ( cylinder );
pName pd;
UName U;
rhoName rhoInf; // Indicates incompressible
log true;
rhoInf 1000;
}

any help please
centre of rotation is missing in your forces functionObject.

Code:
CofR (0 0 0) // also depends on your case
niran likes this.
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   March 9, 2017, 10:31
Smile
  #6
New Member
 
Niranjan Prabhu
Join Date: Sep 2016
Location: chennai
Posts: 8
Rep Power: 10
niran is on a distinguished road
thank you KERA now it is running

CofR required ?
In waves2Foam there is no p file i changed to pd which is available in this solver but unit of both p & pd are not same. Is any problem will come because of this?
niran is offline   Reply With Quote

Reply

Tags
coeffs, forces, srfsimplefoam


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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 12:16
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 16:55.