|
[Sponsors] |
February 25, 2021, 09:29 |
Velocity_inlet profile UDF parallelization
|
#1 |
Member
Nima
Join Date: May 2014
Location: Ireland
Posts: 51
Rep Power: 12 |
Hi everyone!
I've been trying to parallelize the velocity inlet UDF in order to run it on the parallel solver. As it should be running on an HPC cluster it is not possible to use the expression for inlet boundary condition and UDF interpretation doesn't work there. Code:
/***********************************************************************/ /* Velocity.c */ /* UDF for specifying steady-state velocity profile boundary condition */ /***********************************************************************/ #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) = (y/.005); /* it is just an example */ } end_f_loop(f, thread) } https://www.afs.enea.it/project/nept...df/node230.htm I'd appreciate your help. Thanks Last edited by nima_nz; February 25, 2021 at 10:34. |
|
February 25, 2021, 12:22 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
It might just work without any changes, did you try that already?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Parabolic 2D Velocity Profile Issue | chrislyn | FLUENT | 2 | December 11, 2018 13:11 |
Fluent udf "DEFINE_PROFILE" parallelization | uconcorde | Fluent UDF and Scheme Programming | 1 | May 7, 2018 03:47 |
defining temperature profile with UDF | mohammadkm | Fluent UDF and Scheme Programming | 11 | July 3, 2013 01:15 |
Read profile file from UDF | DonQuijote | Fluent UDF and Scheme Programming | 0 | February 18, 2013 12:56 |
Ansys FLUENT UDF - Velocity profile (of known values) across edge / surface | emmkell | Fluent UDF and Scheme Programming | 2 | October 21, 2011 14:12 |