|
[Sponsors] |
September 22, 2017, 12:58 |
Describe AVL FIRE formula
|
#1 |
Member
Join Date: Aug 2014
Posts: 31
Rep Power: 11 |
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. |
|
January 20, 2018, 10:35 |
working of FIRE formula
|
#2 |
New Member
Venkatesh V
Join Date: Sep 2009
Posts: 24
Rep Power: 16 |
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 !! |
|
|
|
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 |