CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

velocity udf file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2021, 04:30
Default velocity udf file
  #1
New Member
 
Join Date: Sep 2020
Posts: 1
Rep Power: 0
caneroqf is on a distinguished road
hi im trying to make a transient solver in different angle of attack 5 10 etc.and i am kind a newbie. have been facing coding this process. I searched but I couldn't understand or find it.
I am leaving my code in here. It gives error.As;
https://www.ozeninc.com/tech-tip-flu...text-file-udf/
for the steps in here.

#Warning: no x, y or z points specified in profile foil.

in addition I tried the path in here and it did not work out.
I may fluent toread my code but it does not show me file on fluent.




Code:
#include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position) 
{
  real x[ND_ND];                /* this will hold the position vector */
  real y;
  face_t f;

  begin_f_loop(f, thread)
    {
      F_CENTROID(x,f,thread);
      y = x[1];
      F_PROFILE(f, thread, position) = 270.0 -22*t.;
    }
  end_f_loop(f, thread)
}
caneroqf is offline   Reply With Quote

Old   June 23, 2021, 10:03
Default Variable speed with location or Variable speed with time?
  #2
New Member
 
Mohammad pirani
Join Date: Jun 2021
Posts: 2
Rep Power: 0
m.pirani95 is on a distinguished road
what is t. in your F_PROFILE
if u want use Variable speed with time, you must specify time before loop

t=CURRENT_TIME;
m.pirani95 is offline   Reply With Quote

Old   June 24, 2021, 02:22
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
compile your code, check log and fix errors
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   June 24, 2021, 03:40
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
The link you posted has title "Tech Tip – Fluent Profiles: A Text File as Your UDF", but that is misleading :it shows you how to do it without UDF.

So, what are you doing? The approach from the link, without UDF, using scheme? Or do you use your UDF? You have to choose...
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk 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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 18:25.