|
[Sponsors] |
February 14, 2017, 10:07 |
Regarding slow computation
|
#1 |
New Member
hemant mittal
Join Date: Feb 2016
Posts: 21
Rep Power: 10 |
Hello every one,
I m simulating atmospheric flow around buildings using LES. for this I have created an UDF as attached for fluctuating velocity profile. but using this UDF, computation is getting very slow. as I m quite new user to UDF. so please guide to improve this situation regarding slow computaion. |
|
February 21, 2017, 04:27 |
|
#2 |
Member
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10 |
Hallo,
you have two loops in the code and You are performing many "pow" operations. You can try to save some time putting some repeating math into separate variables, i.e. replace y/y0 with y_prime, where y_prime=y/y0 is computed only once in the begining of the loop. The same is for the parameters B1, B2 and B3 where You can put 70.8/U/U into one variable. You are also using 500 iterations for the inside loop. You may consider to reduce this number to a reasonable value if You want to increase the performance. Also You may compile the UDF (I don't know is it interpreted or compiled). Best regards, Maksim |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
the speed of parallel computation for over 3 million grid is very slow | liujmljm | SU2 | 7 | June 27, 2014 17:45 |
problem in the CFX12.1 parallel computation | BalanceChen | ANSYS | 2 | July 7, 2011 11:26 |
Discussion on the computation of the multi-stage axial compressor | BalanceChen | CFX | 5 | January 5, 2011 03:23 |
Why the parallel computation is slow | ztdep | OpenFOAM Running, Solving & CFD | 1 | May 1, 2008 05:55 |