|
[Sponsors] |
May 18, 2020, 23:28 |
Inlet Velocity Profile UDF
|
#1 |
Member
j
Join Date: Apr 2020
Posts: 34
Rep Power: 0 |
Hi, I'm trying to read in a .csv file to transfer velocity components and turbulence settings from a different simulation in another CFD solver. A long time ago I was able to import a .txt file to read in the profile. I'm trying to use a UDF now, with Define_Profile function. I found a template to follow, but the first issue I'm having is reading the array of data from the .csv file. Is there a better way to do this than the way I'm trying to do it? I attached a picture of the start of my code and the .csv file I need to read in.
Thx |
|
May 19, 2020, 03:18 |
Better Way
|
#2 |
Senior Member
|
A better way is not to use UDF. Use the text file as it is with a few minor changes. Put it in profile format and read it in Fluent. To use data in a file for boundaries, UDF is not required.
UDF has errors; it won't even compile because x, y, and z are being re-declared. And though file is being read, it is not being used.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
May 19, 2020, 07:00 |
UDF for slip velocity and temperature jump
|
#3 |
Member
Homayoon sohrabi
Join Date: May 2020
Posts: 56
Rep Power: 6 |
i need a udf for slip wall
i want to use udf for setting this boundary condition: us=B*(du/dy) what should i do? |
|
May 19, 2020, 09:03 |
Slip Velocity
|
#4 |
Senior Member
|
There are at least a couple of posts on Fluent forum where such a UDF is available.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
May 19, 2020, 11:48 |
|
#5 |
Member
Homayoon sohrabi
Join Date: May 2020
Posts: 56
Rep Power: 6 |
can you please send the links for that posts to my mail?
homayoonsohrabi@yahoo.com |
|
May 19, 2020, 12:12 |
Old Posts
|
#6 |
Senior Member
|
I suppose you commented on those posts, so, you should look at your own old posts to find those out. It would be easier to search that way.
Furthermore, you can expect better help if you write a UDF yourself instead of just searching for a pre-written one exactly matching your requirement. Someone might have it but it would take longer to find out who and then its on that person if he or she wants to share it or not.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
May 19, 2020, 14:49 |
|
#7 |
Member
j
Join Date: Apr 2020
Posts: 34
Rep Power: 0 |
Thanks for the advice. I was hoping to import the .csv file without moving it to a text file, but it's not the end of the world to do so. Seems to be the easiest way
|
|
May 19, 2020, 15:57 |
CSV and TXT
|
#8 |
Senior Member
|
.csv and .txt are just extensions; both are text files.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
January 6, 2021, 22:22 |
|
#9 |
New Member
zhangdongjie
Join Date: Jan 2021
Posts: 22
Rep Power: 5 |
||
January 7, 2021, 04:10 |
|
#10 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
if you want to have temperature jump on the wall, you should apply it to the wall, for example using define_profile macro
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF velocity inlet sinusoidal profile | dka14 | Fluent UDF and Scheme Programming | 0 | March 27, 2017 07:58 |
Problem with assigned inlet velocity profile as a boundary condition | Ozgur_ | FLUENT | 5 | August 25, 2015 05:58 |
simpleFoam: Non-uniform mesh near inlet & outlet causes incorrect velocity profile? | Zaphod'sSecondHead | OpenFOAM Running, Solving & CFD | 0 | January 28, 2015 06:17 |
FSI- Pipe- uniform velocity profile inlet | Absy | Main CFD Forum | 0 | April 6, 2010 04:01 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |