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

Velocity_inlet profile UDF parallelization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2021, 08:29
Unhappy Velocity_inlet profile UDF parallelization
  #1
Member
 
Nima
Join Date: May 2014
Location: Ireland
Posts: 51
Rep Power: 11
nima_nz is on a distinguished road
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)
}
I've found the UDF manual's example useful but still cannot assign it to the aforementioned UDF.
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 09:34.
nima_nz is offline   Reply With Quote

Old   February 25, 2021, 11:22
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
It might just work without any changes, did you try that already?
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
UDF Parabolic 2D Velocity Profile Issue chrislyn FLUENT 2 December 11, 2018 12:11
Fluent udf "DEFINE_PROFILE" parallelization uconcorde Fluent UDF and Scheme Programming 1 May 7, 2018 02:47
defining temperature profile with UDF mohammadkm Fluent UDF and Scheme Programming 11 July 3, 2013 00:15
Read profile file from UDF DonQuijote Fluent UDF and Scheme Programming 0 February 18, 2013 11:56
Ansys FLUENT UDF - Velocity profile (of known values) across edge / surface emmkell Fluent UDF and Scheme Programming 2 October 21, 2011 13:12


All times are GMT -4. The time now is 01:09.