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

Name of injection line in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2016, 09:57
Default Name of injection line in UDF
  #1
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
In an injection file, the structure is:
Quote:
Originally Posted by Fluent Manual, 24.3.12. Point Properties for File Injections

(( x y z u v w diameter temperature mass-flow) name )
In a UDF, I know how to access most of these parameters:

Code:
 x: P_INIT_POS(p)[0]
 y: P_INIT_POS(p)[1]
 z: P_INIT_POS(p)[2]
 u: P_INIT_VEL(p)[0]
 v: P_INIT_VEL(p)[1]
 w: P_INIT_VEL(p)[2]
 diameter: P_INIT_DIAM(p)
 temperature: P_INIT_TEMP(p)
 mass-flow: P_FLOW_RATE(p)
 name: ?
Is is possible to use the name in a udf? For example: I want to print the name of a particle stream that reaches a certain surface, so I wrote the UDF:

Code:
DEFINE_DPM_BC(showname,p,t,f,f_normal,dim)
 {
 Message("%s\n",P_NAME(p));
 return PATH_ABORT;
 }
This does not work because P_NAME(p) is not the correct macro here, but what is?

(I also asked this question to Ansys support, if they give a working answer I will post it here.)
pakk is offline   Reply With Quote

Old   December 20, 2016, 11:52
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
I received a quick answer from Ansys support: the "name" in each line of an injection file is optional, and is not used inside Fluent. Therefore it is not possible to use this name in a udf for Fluent.
pakk is offline   Reply With Quote

Old   April 21, 2017, 07:58
Default Hello
  #3
New Member
 
Hayder
Join Date: Mar 2016
Posts: 8
Rep Power: 10
eaxhm1 is on a distinguished road
Hello Pakk,
Hope you are fine,
I read your replying about Attaullah post on the mass transfer for absorption using the UDF.
I really need your help please,
I am trying to do the absorption process (acetone liquid absorbs acetone vapor) but I have no ideas how I do it.
Please, could you help me with the UDF and the set of the model?

I tried to send you a private message, but I couldn't.

Regards,
Hayder
eaxhm1 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
injection problem Mark New FLUENT 0 August 4, 2013 02:30
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 12:37
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19


All times are GMT -4. The time now is 19:43.