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

UDF to find inlet cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2022, 06:22
Talking UDF to find inlet cells
  #1
New Member
 
Anne
Join Date: Sep 2022
Posts: 1
Rep Power: 0
L1605 is on a distinguished road
Hey everyone,

I am looking for a way to find the inlet cells in order to set the UDMI equal to zero at these cells. Can anybody help me out? I now looked into a way to just use:
if X[0] < 1e-4
{
CUDMI(c,t,0) = 0;
CUDMI(c,t,1) = 0;
}

But this did not work and ofcourse this does not set the specific cells of the inlet to zero but rather an approximation. Can anybody help?

Thanks!
L1605 is offline   Reply With Quote

Old   September 13, 2022, 03:09
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
inlet is a boundary, so it has faces not cells
__________________
best regards


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

Old   September 13, 2022, 04:34
Default
  #3
New Member
 
Liu Wenchao
Join Date: Jan 2021
Posts: 15
Rep Power: 5
ChaoLW is on a distinguished road
Ansys Fluent allows users to set face parameters and use it in Boundary Condition.
Try "Define_Profile" function in here https://www.afs.enea.it/project/nept...f/main_pre.htm
ChaoLW is offline   Reply With Quote

Reply

Tags
cell area, inlet condition, udf code


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
Disappearing mass when using udf inlet profile divergence Fluent UDF and Scheme Programming 5 January 2, 2021 15:56
UDF profile: Fluent method for coupling inlet and outlet I-mech Fluent UDF and Scheme Programming 0 May 10, 2014 11:36
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 04:23
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 20:43


All times are GMT -4. The time now is 13:50.