|
[Sponsors] |
June 23, 2021, 04:30 |
velocity udf file
|
#1 |
New Member
Join Date: Sep 2020
Posts: 1
Rep Power: 0 |
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) } |
|
June 23, 2021, 10:03 |
Variable speed with location or Variable speed with time?
|
#2 |
New Member
Mohammad pirani
Join Date: Jun 2021
Posts: 2
Rep Power: 0 |
what is t. in your F_PROFILE
if u want use Variable speed with time, you must specify time before loop t=CURRENT_TIME; |
|
June 24, 2021, 02:22 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
compile your code, check log and fix errors
__________________
best regards ****************************** press LIKE if this message was helpful |
|
June 24, 2021, 03:40 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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". |
|
|
|
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 |