|
[Sponsors] |
February 22, 2015, 07:10 |
Force calculation
|
#1 |
Member
Join Date: Dec 2009
Posts: 49
Rep Power: 16 |
Hi Niels,
Do you have any experience using the function object to calculate force and moment due to waves? I tried using the following function object Code:
functions { forces { type forces; functionObjectLibs ("libforces.so"); outputControl timeStep; outputInterval 2; patches (cylinder); pName p_rgh; UName U; log true; rhoName rho; rhoInf 1000; nuInf 1e-6; CofR ( 0 0 -1.2 ); } } Code:
--> FOAM FATAL IO ERROR: keyword nu is undefined in dictionary "/Works/WALL_COARSE/constant/transportProperties" file: /Works/WALL_COARSE/constant/transportProperties from line 25 to line 37. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 402. FOAM exiting Code:
FoamFile { version 2.0; format ascii; class dictionary; object 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; } 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; } sigma sigma [1 0 -2 0 0 0 0] 0.07; katakgoreng |
|
February 27, 2015, 06:58 |
|
#2 |
New Member
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13 |
Hello katakgoren,
I believe you have to define nu and rho before phase1 and phase2. Try to add the red lines before phase1 in transporte properties: Code:
transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; phase1 { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; } 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; } |
|
February 27, 2015, 12:04 |
|
#3 |
Member
carlos
Join Date: Apr 2011
Posts: 37
Rep Power: 15 |
Hi katakgoren,
In my case it works and I have only two differences: In transportproperties after sigma transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; In Controldict I do not have reference to nu: forces { type forces; functionObjectLibs ("libforces.so"); patches (hull); rhoName rho; rhoInf 1025; CofR (2.5 0 0.25); outputControl timeStep;//outputTime;// outputInterval 100; log true; } Regards, Carlos. |
|
March 5, 2015, 06:12 |
|
#4 |
Member
Join Date: Dec 2009
Posts: 49
Rep Power: 16 |
Many thanks for the help.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Force Calculation | nofrizal | CFX | 9 | March 28, 2019 07:14 |
Force Calculation in OpenFOAM for Propeller case | bmaldi | OpenFOAM Running, Solving & CFD | 2 | May 2, 2018 05:33 |
Lift force and Drag force calculation | KTJ | STAR-CCM+ | 3 | April 29, 2014 09:38 |
Force report every iteration in unsteady flow calculation | Friso Landstra | FLUENT | 0 | October 23, 2009 08:13 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |