|
[Sponsors] |
September 5, 2011, 09:14 |
Smoothing Data in Fluent
|
#1 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Hi everyone,
I need to have gradient of a scalar (UDS), so I wrote a UDF which returns gradient of that. Specifically speaking, by using macro 'C_UDSI_G' and 'F_UDSI_G'. By the way, the emerging problem is that because of rough nature of UDS, its gradient becomes very inaccurate. So smoothing data may become a crucial task. I wonder to know whether there is any way to smooth data in Fluent or not. Thank you. |
|
September 6, 2011, 03:18 |
|
#2 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Smoothing may can be accomplished by another program, such as Tecplot or any other problem, but I do not know how this can be done.
As far as know, Techplot can smooth data, but I wonder if it is possible to use Tecplot output as Fluent input. |
|
September 6, 2011, 05:28 |
|
#3 | |
Senior Member
|
Quote:
you're right, you can easily smooth variables in Tecplot; but to export data from Tecplot to fluent you'll need an axillary code. The idea is to use proper .dat file of Tecplot and then by a simple fortran or matlab code change it's format to interpolate file and then read this interpolate file to fluent. I did this procedure few months ago and it worked after many problems encountered; just do it when there won't be any other choices. Bests,
__________________
Amir Last edited by Amir; September 6, 2011 at 06:01. |
||
September 6, 2011, 06:06 |
|
#4 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Hi Amir,
Thank you for your response. I really need to do so, because as long as there is no way to interpolate and smooth data in each cell in Fluent, using another program for smoothing data may work. But as you said, it is an overwhelming job! If I write a code, can it be used for any mesh, or it will vary for mesh to mesh? Another thing that I wanted to ask is do you think that is it possible to write a UDF which smooth data? I mean by performing a weighting average of all adjacent cells of each cell, as an approximate value. |
|
September 6, 2011, 08:23 |
|
#5 | ||
Senior Member
|
Quote:
Quote:
Bests,
__________________
Amir |
|||
September 6, 2011, 08:51 |
|
#6 | |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Quote:
I really appreciate you for concerning and pursuing the conversation. Unfortunately, I did not get the point. My UDS is already is solved by a Laplace equation in 3 dimensions and at steady condition, and I need the in which is the scalar. But it leads to a rough contour. |
||
September 6, 2011, 10:36 |
|
#7 |
Senior Member
|
Hi,
I just wanted to elaborate smoothing algorithm which you can perform in FLUENT for any variable: 1) store it in a UDS variable (e.g. C) 2) solve this equation: 3) Enjoy! Obviously, you can achieve different smoothing results for different D or run time. Bests,
__________________
Amir |
|
September 6, 2011, 13:19 |
|
#8 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Hi Amir,
It seems that the problem has bees solved by using just one unsteady iteration, without an unbearable change in the UDS, and that was never became into reality(!) unless using your trick. Thanks a lot, Bests. |
|
Tags |
fluent, gradient, smoothing, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam to Fluent data conversion Problem | vemps | OpenFOAM | 1 | August 8, 2011 03:30 |
Data import in Fluent?! | Bart Horsten | FLUENT | 3 | February 22, 2010 14:05 |
Importing Gambit data into Fluent | Tyred | ANSYS Meshing & Geometry | 1 | April 18, 2009 14:53 |
About Data File and Solving PDE by Fluent | Sebeci | FLUENT | 2 | March 25, 2003 00:48 |
Tecplot can't read data file from Fluent. | stephen | FLUENT | 8 | November 21, 2001 21:27 |