CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Understanding a piece of code for source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2017, 23:35
Default Understanding a piece of code for source term
  #1
Member
 
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15
lebc is on a distinguished road
Hi,

I'm working with actuationDiskSource and I'm trying to understand this piece of the code:

Quote:
forAll(cells, i)
{
Usource[cells[i]] += ((Vcells[cells[i]]/V())*T*E) & upU;
}
I suspect that what is being done is: Usource = sum((Volume of each cell/total volume of the region I defined)*Thrust*(something to compute it in x, y and z)*(velocity vector).

Could you help me with this?

Best Regards,
Luis
Attached Files
File Type: c actuationDiskSourceTemplates.C (2.2 KB, 1 views)
lebc is offline   Reply With Quote

Reply


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
Non-Zero exit code of: 2 KUAlex CFX 18 April 12, 2024 07:21
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 12:30
Understanding k-omega SST model source code tmhonka OpenFOAM Programming & Development 1 September 8, 2009 07:33
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10


All times are GMT -4. The time now is 05:57.