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

Custom field function in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2021, 07:59
Default Custom field function in UDF
  #1
New Member
 
bagh fay
Join Date: Mar 2017
Posts: 17
Rep Power: 9
baghfay is on a distinguished road
Hi

basically i have created a custom field function within Fluent using the GUI and given it a name

within flent i can use it plot it and even do more calculation with it

however my problem is i want to refer to it within UDF but i do not know the name associated to it

for example pressure on a face can be referred using F_P(f,fthred) so i need something similar like F_custumFunctionName(f,fthred) but using the created custom function name returns error as it is not recognized and hence wondering what is the variable name associated with the created custom field functions and if there is any way to refer o it within a UDF

thanks and best regards
baghfay is offline   Reply With Quote

Old   September 13, 2021, 06:57
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
I don't think, there is a way to use custom fields from UDF.

But any custom field is based on variables available from UDF, so you should make the same custom filed but within UDF. You may store it's value in udmi variable, and plot it later
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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
Custom field function object from wallHeatFlux HorstvanGrass OpenFOAM Post-Processing 1 August 3, 2021 12:28
Writing custom function of flow field at every iteration sap_92 OpenFOAM Running, Solving & CFD 0 June 20, 2020 17:16
Can i take contours from Custom field function i defined ? rahulohlan FLUENT 3 April 18, 2017 13:39
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 15:02.