CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > AVL FIRE

Describe AVL FIRE formula

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2017, 12:58
Default Describe AVL FIRE formula
  #1
Member
 
Join Date: Aug 2014
Posts: 31
Rep Power: 11
Fluent learner is on a distinguished road
Hi
If anyone can describe a little bit about the following code, i would be thankful:

double dens;
double temp;
$$init
Bind("ElementData:Flow:Temperature:K", temp);
Bind("ElementData:Flowensity:kg/m^3", dens);
print "computing average temperature...";
$$formula
double weight = |n|;
if(weight <= 0.0) weight = vol;
divisor += weight * dens;
return weight * dens * temp;


Thanks a lot

Last edited by Fluent learner; September 24, 2017 at 10:29.
Fluent learner is offline   Reply With Quote

Old   January 20, 2018, 10:35
Default working of FIRE formula
  #2
New Member
 
Venkatesh V
Join Date: Sep 2009
Posts: 24
Rep Power: 16
cfdvenkatesh is on a distinguished road
The understand the working of FIRE formula, it shouldn't be viewed as separate script. Instead you have consider them as set if functions and some other program is going to them in specific order.

The first part (above $$init) will be called once to define the variables, the variables defined here are persistent ( meaning the values set for these variables in time = t) will be available for other time steps (but not in other formula).

The second part (between $$init and $$formula) would be called twice (when it is called first time you can check variable named "init" would be set to 0 i think).

The third part ( below $$formula) is called for each cell or face and program calling this part just added the values returned by this function and divides by value is divisor and send to 2D results or for printing.

Hope this help !!
cfdvenkatesh 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
Exporting files from AVL fire to VisIT shashankvns AVL FIRE 0 September 13, 2013 12:57
Convert CHEMKIN file (.inp or .dat) to .f suffix for AVL FIRE amin_u50 AVL FIRE 3 May 3, 2013 04:00
New AVL FIRE Forum Opened pete Site News & Announcements 0 July 5, 2012 10:19
AVL Fire transonic simulation Ainil Main CFD Forum 1 August 24, 2010 15:53
AVL fire Exhaust manifold Simulation mohsenfjs Main CFD Forum 0 May 15, 2010 11:51


All times are GMT -4. The time now is 11:39.