|
[Sponsors] |
July 6, 2018, 08:36 |
Bug in actuationDiskSource????
|
#1 |
New Member
Amadeo Moran
Join Date: Jan 2012
Location: Madrid
Posts: 10
Rep Power: 14 |
Dear community,
I was trying to perform a simulation of an actuator disk and reviewing the source code C++ in "actuationDiskSourceTemplates.C" there is a line with the calculation of T (total thrust). Code:
scalar T = 2.0*upRho*diskArea_*mag(upU)*a*(1 - a); Code:
scalar T = 2.0*upRho*diskArea_*sqr(mag(upU))*a*(1 - a); Thanks and regards from Spain! amg. Last edited by a.morang; July 9, 2018 at 05:06. |
|
July 7, 2018, 06:11 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
I think this is correct since mag calculates the magnitude and not the magnitude squared
see, e.g. http://foam.sourceforge.net/docs/Gui...mmersGuide.pdf |
|
July 9, 2018, 05:13 |
|
#3 | |
New Member
Amadeo Moran
Join Date: Jan 2012
Location: Madrid
Posts: 10
Rep Power: 14 |
Quote:
Code:
sqr(mag(U)) == mag(U)*mag(U) Code:
mag(U) = Ux^2 + Uy^2 + Uz^2 |
||
July 9, 2018, 11:28 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
The units are correct since the complete calculation of the force is:
scalar T = 2.0*upRho*diskArea_*mag(upU)*a*(1 - a); forAll(cells, i){Usource[cells[i]] += ((Vcells[cells[i]]/V())*T*E) & upU;} |
|
July 10, 2018, 05:07 |
|
#5 |
New Member
Amadeo Moran
Join Date: Jan 2012
Location: Madrid
Posts: 10
Rep Power: 14 |
||
July 10, 2018, 07:03 |
|
#6 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
yes. The dot product of two vectors is equal to the magnitude squared:
u & u = ux*ux + uy*uy + uz*uz |
|
July 11, 2018, 14:14 |
|
#7 |
New Member
Amadeo Moran
Join Date: Jan 2012
Location: Madrid
Posts: 10
Rep Power: 14 |
||
Tags |
actuationdisksource |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mapFields major bug | alchem | OpenFOAM Bugs | 14 | September 15, 2023 13:48 |
Bug in Workbench CFX | Pierre1 | CFX | 6 | August 2, 2017 01:18 |
SU2_MSH: Periodic boundary conditions bug | Zef | SU2 | 1 | February 18, 2015 14:28 |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 09:15 |
Bug reports | Mattijs Janssens (Mattijs) | OpenFOAM | 0 | January 10, 2005 11:05 |